Ichimuko Senkou Span- how to shift leading values to the present

 

Good day all,

I hope someone can help me please.

How can I compare the current bid price to the leading "Senkou Span".

The "Senkou Span" is 26 candle ahead in the future of the current candle, but how can I shift the "Senkou Span" 26 candles back so that I can compare it to the current bid price?


Kind regards,

 
Stefanus7:

Good day all,

I hope someone can help me please.

How can I compare the current bid price to the leading "Senkou Span".

The "Senkou Span" is 26 candle ahead in the future of the current candle, but how can I shift the "Senkou Span" 26 candles back so that I can compare it to the current bid price?


Kind regards,

I found the answer thanks.

Sorry it was not 26, it was 17.

double SenkouSpanA[];
double SenkouSpanB[];

ArraySetAsSeries(SenkouSpanA,true);
ArraySetAsSeries(SenkouSpanB,true);

int ichimokuDef = iIchimoku(_Symbol,_Period,9,26,52);

CopyBuffer(ichimokuDef,2,-17,3,SenkouSpanA);

CopyBuffer(ichimokuDef,3,-17,3,SenkouSpanB);