I have a dataseries variable that I am getting very odd behavior with. I looked at it using the Visual Studio debugger and doing a quick watch looked at the series.
Not only am I getting odd results, it appears that somehow this variable is associated with an ADX indicator. This is stand alone code, has no indicators and I have never used ADX in my life.
The declaration
private DataSeries xOpen;
xOpen = new DataSeries(this);
I have obviously done something wrong but any ideas as to where I can even start?
Unfortunately this is proprietary code and the above is all I am can share. This code was copied from an indicator I developed and with the exception of the adjustment to the index to work in FirstTickOfBar nothing is changed (famous last words).
An additional question - I put a test in OnMarketData to return if the tick was associated from BarsInProgress = 1 (a different timeframe of the same symbol), is that necessary to avoid processing the same tick twice (once for each series)?
Thanks,
Scott
Comment