I'm new to Jforex here. I'm altering the zigzag indicator and found the place I am interested in putting the calculation and chart drawing. I've already got the code working perfectly in MQL4. I attempted to copy the wiki chart drawing objects at:
https://www.dukascopy.com/wiki/#Indicator_draws_chart_objectsbut ran into this problem. Here's the code from the example below...
IBar barFrom = inputs[0][maxIdx];
IBar barTo = inputs[0][inputs[0].length - 1];
I think I need this info to plot text, rectangles etc so I can tell jforex from what bar and to which bar to plot etc. But the Zigzag indy already has the following input:
private double[][][] inputs = new double[1][][];
I tried adding the correct code from the example indy which is:
private IBar[][] inputs = new IBar[1][];
When I put both of them in, they conflict. I don't fully understand everything here so any help is appreciated. If I could figure out how to get this triangle and text in the same indy as the zigzag I could figure out the rest of how to convert my mql into jforex.
Thank you!!!!
TBB