Chart Question

 
  I want to draw, on a chart, a series of arrows, that will show me the relationship between price and the Ichimoku cloud, for each time frame ( 5m, 15m, 1h, 4h, 1d, 1w, 1m ). That way no matter what chart / timeframe that I'm on, I can see the relationship of the others.    Problem is, depending on what chart / timeframe your on; the state of the other timeframes are based on the values of the cloud of the current chart and give incorrect states of the other timeframes. My question is; if I'm on the hour chart, and want to bring the values of the cloud of a 5 minute chart to the hour chart, so that I can see that the 5 min chart is above, below or within the cloud, on a 1 hour chart; how can I accomplish this?
 
Yellowbeard:   other timeframes are based on the values of the cloud of the current chart
False. The second parameter of your calls must be the other timeframes. The last parameter must be the iBarshift of Time of the chart bar. Post your code.
 
O.k.  Give me a little bit. 
 

So then, my problem is probably my miss use of iCustom:

        double ExtSpanA = iCustom("NZDUSD",0,"Ichimoku",2,0); 
        double ExtSpanB = iCustom("NZDUSD",0,"Ichimoku",3,0);
probably should be  
        double ExtSpanA = iCustom("NZDUSD",5,"Ichimoku",2,0); 
        double ExtSpanB = iCustom("NZDUSD",5,"Ichimoku",3,0);
Reason: