I want to import the GomMp indicator into my own strategy. The goal is to plot horizontal lines in WEEKLY POC, VAH and VAL levels regardless the chart timeframe. I have recoded the GomMP indicator in order to expose POC,VAH and VAL values. Then, reading these values from the indicator through the exposed methods that I have recoded, I want to plot the POC and VA lines in my strategy.
I have tried with this:
Add(GomMP(x,y,z));
...where x is an iDataSeries input, y and z are integer values.
The problem is that I don't know how to pass the iDataSeries parameter to the indicator.
What values should I use as iDataSeries?
is this correct?
DataSeries mydata = new DataSeries(this);
Add(GomMP(mydata,0,0));