Ichimoku kumo coding

 

Hi!

This question is for Ichimoku coders.. When I want to specify the Senkao A and Senkao B values of 1 candle back, do I refer to it as candle 1 or as candle 27 like so:


  SenkouA1 = iIchimoku(NULL,0,9,26,52,MODE_SENKOUSPANA,1);
  SenkouB1 = iIchimoku(NULL,0,9,26,52,MODE_SENKOUSPANB,1);


  SenkouA1 = iIchimoku(NULL,0,9,26,52,MODE_SENKOUSPANA,27);
  SenkouB1 = iIchimoku(NULL,0,9,26,52,MODE_SENKOUSPANB,27);


Because the current Senkaos are actually future ones...
I want to say later "if close of candle 1 (1 candle back) is above senkao a and b (or below it)...to do something..
I am a little bit confused please advice.

 
anyone?
 
t0mbfunk:
anyone?

make test EA and check it the answer will easily be found if you print the values and check with Ctrl+D