Chart Question

Back to topics list To post a new topic, please log in or register
avatar
186
Yellowbeard 2015.02.18 21:12
 
  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?
avatar
13009
WHRoeder 2015.02.19 00:00 #
 
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.
avatar
186
Yellowbeard 2015.02.19 03:07 #
 
O.k.  Give me a little bit. 
avatar
186
Yellowbeard 2015.02.19 03:14 #
 

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);
Back to topics list  

To add comments, please log in or register