Function to execute OnTick of a lower timeframe

To add comments, please log in or register
Icham Aidibe
11610
Icham Aidibe  

Hi,

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

Anyway to do that ?

Rodrigo Malacarne
Moderator
11155
Rodrigo 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 ?

Hello blouf,

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

Regards,
Malacarne 

Alain Verleyen
38980
Alain Verleyen  
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 ?
Lorentzos Roussos
32683
Lorentzos Roussos  
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.
Icham Aidibe
11610
Icham Aidibe  
LoRio:
Ticks are the same whether on M1 or H1.
Well, it appears that the function is executed only when the new candle appears.
Lorentzos Roussos
32683
Lorentzos Roussos  
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?
Icham Aidibe
11610
Icham Aidibe  
LoRio:
is there an "if(prevTime!=Time[1])" kind of a command within your code?

Nope there's no.

Just the ontick + function call

Lorentzos Roussos
32683
Lorentzos Roussos  
blouf:

Nope there's no.

Just the ontick + function call

Are you reading from High[1] Low[1] Open[1] etc?
Icham Aidibe
11610
Icham Aidibe  
LoRio:
Are you reading from High[1] Low[1] Open[1] etc?
Neither. As I told you, OnTick + function
Icham Aidibe
11610
Icham Aidibe  
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 :/
To add comments, please log in or register