Function to execute OnTick of a lower timeframe

 

Hi,

I'd like a function to be executed on the ontick event but the ontick of a lower timeframe ?

Anyway to do that ?

 
blouf:

Hi,

I'd like a function to be executed on the ontick event but the ontick of a lower timeframe ?

Anyway to do that ?

Hello blouf,

what you want makes no sense, as the tick is always the same, independently of the timeframe.

Regards,
Malacarne 

 
blouf:

Hi,

I'd like a function to be executed on the ontick event but the ontick of a lower timeframe ?

Anyway to do that ?

OnTick() is timeframe's independent. What do you mean ?
 
blouf:

Hi,

I'd like a function to be executed on the ontick event but the ontick of a lower timeframe ?

Anyway to do that ?

Ticks are the same whether on M1 or H1.
 
LoRio:
Ticks are the same whether on M1 or H1.
Well, it appears that the function is executed only when the new candle appears.
 
blouf:
Well, it appears that the function is executed only when the new candle appears.
is there an "if(prevTime!=Time[1])" kind of a command within your code?
 
LoRio:
is there an "if(prevTime!=Time[1])" kind of a command within your code?

Nope there's no.

Just the ontick + function call

 
blouf:

Nope there's no.

Just the ontick + function call

Are you reading from High[1] Low[1] Open[1] etc?
 
LoRio:
Are you reading from High[1] Low[1] Open[1] etc?
Neither. As I told you, OnTick + function
 
blouf:
Neither. As I told you, OnTick + function
Definitively not. The OnTick(), is a OnCandle(). Good too, but on higher timeframe, it may take ... 4H :/
Reason: