onBar() question

Created at 12 Jul 2013, 18:38
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
BA

Balena

Joined 17.12.2012

onBar() question
12 Jul 2013, 18:38


my robot checks a condition using onBar()

ie

 

protected override void OnBar()
        
        
        { 
        
        if(Account.Equity >  X

 

I set the chart to 1hr using the Instance dropdown

is there a way to set/change the onBar from h1 to say m5 based on a condition within the robot code (vs manually and rerunning the backtest)?

 

Thanks!


@Balena
Replies

TradingDeveloper
15 Jul 2013, 17:52

They will tell you that this will be implemented in the future and you will wait forever :-)

But I heard about  some software that may be helpful:

http://www.scyware.com/

Good luck

 


@TradingDeveloper

gorin
16 Jul 2013, 14:28

I read another post where it is mentioned that multitime frames will be implemented in 3 months but I'm assuming it will not be like what you described.
I think you can use a Timer to accomplish this. 


@gorin

cAlgo_Fanatic
16 Jul 2013, 15:57

That is correct it will be implemented in about 2-3 months from now. There will functionality for different timeframes for the OnBar event.


@cAlgo_Fanatic