need help

 

is the highlighted 0 in the below code referring to the candle id?

0 for the current candle and if i replace it with the value 1 then should take previous candle's atr value right?



MathMax(iATR(NULL, ATR_TimeFrame, ATR1_period, 0), iATR(NULL, ATR_TimeFrame, ATR2_period, 0)) / pip_size

thanks in advance

 
  1. Why did you post your MT4 question in the Root / MT5 General section instead of the MQL4 section, (bottom of the Root page?)
              General rules and best pratices of the Forum. - General - MQL5 programming forum
    Next time post in the correct place. The moderators will likely move this thread there soon.

  2. yes
Reason: