Download MetaTrader 5

Timeframe and iIchimoku

To add comments, please log in or register
Sign up for MQL5.community to leave your comments!
natsirte
360
natsirte 2016.04.12 11:41 

Hi everybody!


I've got a problem , when I try to see the difference between Buy1_current and Buy2_5mn, I've got the same value while the second indicator has a PERIOD_M5 !

Is it normal?

   double Buy1_current    = iIchimoku(NULL, 0, 9, 26, 52, MODE_CHIKOUSPAN, 26);
   double Buy2_5mn       = iIchimoku(NULL, PERIOD_M5 , 9, 26, 52, MODE_CHIKOUSPAN, 26);

  


Alert(Buy1_current  + "      " + Buy2_5mn);


Best regards

Keith Watford
Moderator
9597
Keith Watford 2016.04.12 11:46  
What is the current time-frame?
natsirte
360
natsirte 2016.04.12 11:53  

Hi!


PERIOD_M1

Keith Watford
Moderator
9597
Keith Watford 2016.04.12 11:58  

Oh hang on,

chicouspan is just the current price shifted back 26, so any timeframe will give the same value for index 26 as the current price is the same in all time-frames

natsirte
360
natsirte 2016.04.12 11:59  

ok


Thank you for the quick reply!!
To add comments, please log in or register