When I went to plot the CCI directly, I got only a single red line at 0
When I calculated the CCI and assigned to a double, and then plotted the double, all was fine.
I printed the values of Input, CCI(Input,10)[0] and ccivalue (a double)
What I found was that CCI(Inpute,10)[0] had a value of 0, while the computed double and Input values were what I'd expect.
Here's the code I was using:
double cciout = CCI(Input,10)[0];
// Always works
//Plot0.Set(cciout);
// Sometimes works
Plot0.Set(CCI(Input,10)[0]);
// always prints values
Print("cciout : " + cciout);
Print("Input[0] : " + Input[0]);
// Sometimes just prints 0 for entire history
Print("Input(CCI): " + CCI(Input,10)[0]);
It does seem to finally start producing values if I open another indicator and come back to it....
I don't see any error's in the log window. Is there an actual log file I can check into?
I can't reproduce it all the time, but I wanted to document for future reference, and see if anyone else has seen this.
Matt

Comment