Download MetaTrader 5

Timeframe and iIchimoku

To add comments, please log in or register
natsirte
380
natsirte  

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
10566
Keith Watford  
What is the current time-frame?
natsirte
380
natsirte  

Hi!


PERIOD_M1

Keith Watford
Moderator
10566
Keith Watford  

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
380
natsirte  

ok


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