I need the previous high point and the one before and possibly before... I rebuilt the zigzag indicator (with the pivotHigh function).
so I use
Code: Select all
m_swingpriceH = new VariableSeries<Double>(this);
My problem is how do I find the previous highs? I get the last one for example
m_swingpriceH[1]
.
With
m_swingpriceH[2]
I would only get the price from 2 bars ago though.
But I don't know how many bars ago the previous high was...
I was thinking of making an array and filling it with northings so I could write [2] for the previous one.
However, I have read that the arrays in multicharts are always filled with 0 if there is no value for a candlestick.
However, I don't know how to include arrays in Multicharts.net either. Is there a simple example here somewhere?
So far I've been using variable objects and series
Now I'm at a loss, I've tried and read a lot, but somehow I couldn't find anything. The solution is probably very simple, but I can't figure it out.
Maybe someone has an idea.