bustabrunoo: I cant see why it wont display this though.
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.
To define the indexing direction in the time[], open[], high[], low[], close[], tick_volume[], volume[] and spread[] arrays, call the ArrayGetAsSeries() function. In order not to depend on defaults, call the ArraySetAsSeries() function for the arrays to work with.
Event Handling / OnCalculate - Reference on algorithmic/automated trading language for MetaTrader 5
Event Handling / OnCalculate - Reference on algorithmic/automated trading language for MetaTrader 5
William Roeder:
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.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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,