Failed to display anything
You are indexing i=[0 … Bars-1] (as non-series). You haven't set your arrays and buffers to match.
In MT5, you must set the direction.
Event Handling / OnCalculate - Reference on algorithmic/automated trading language for MetaTrader 5
You are indexing i=[0 … Bars-1] (as non-series). You haven't set your arrays and buffers to match.
In MT5, you must set the direction.
Thanks for the reply,
I tried that and also changed the direction so that it plots from ratestotal-1 to the former candle and it works sorta!
Whats happening is now its plotting the first 30 values(from the left ie ratestotal) and the last(rightmost) 32 values but it plots none of the values in between the two extremes.
Hi Guys, need some help please.
So I'm trying to build this indicator to show me(a histogram) the ratio between volume of a candle and its body size(Length of candle without the wicks).
So how it works(the way it should anyways) is it takes the difference(absolute value) between the open and close of the former candle, and then divides the volume of that candle with that value.
And what it should do is print(in a separate window) a histogram of this value with a different color depending on whether it is more or less than the former ratio.
I cant see why it wont display this though.
Any help is appreciated,