Reading the leading Kumo sentiment in Ichimoku Indicator

 

Hi, can someone advise me how to take the values of the leading Kumo in Ichimoku?

I can take the current values but I don't know how to take the values that are shifted 22 periods in the future.

Look at this:

double SSA=iIchimoku(NULL, 0, 7, 22, 44, MODE_SENKOUSPANA, 0);
double SSB=iIchimoku(NULL, 0, 7, 22, 44, MODE_SENKOUSPANB, 0);

The last "0" controls the shift. I can take values of the 22 period back in the past from the current period if I put "22" but nothing happens when I try to put "-22" to indicate that I want a reading from the opposite direction. It seems that despite that the Ichimoku draws on the chart the Senkou Span A and Senkou Span B shifted 22 periods ahead from the current price action, the "shift" value doesn't reflect this shift. Any help?

 
double SSA=iIchimoku(NULL, 0, 7, 22, 44, MODE_SENKOUSPANA, -22);

double SSB=iIchimoku(NULL, 0, 7, 22, 44, MODE_SENKOUSPANB, -22);


This should work just tried on my side, not sure why you can't get it to work