question on start()

 

Hi

i know that start() is called on a custom indicator on every new tick.

What i want to do is to run the contents of start()  every time a new candle opens, no matters on what timeframe we are.

How is this possible?

Thanks

 

Athan 

 
athanfx:

Hi

i know that start() is called on a custom indicator on every new tick.

What i want to do is to run the contents of start()  every time a new candle opens, no matters on what timeframe we are.

How is this possible?

Just look for the first tick of a new candle.
 
RaptorUK:
Just look for the first tick of a new candle.


and how do i check for that? :)
 
athanfx:

and how do i check for that? :)
Take a look at this:  https://www.mql5.com/en/forum/143838