Indicator wrongly plots line into sub-window while calculations are correct
int OnInit() { //--- indicator buffers mapping SetIndexBuffer(0,SellGapBuffer,INDICATOR_DATA); ArraySetAsSeries(SellGapBuffer,true);
Thank you Ernst Van Der Merwe Indeed quite a silly mistake. Some times you just need another pair of eyes. Thanks again!
Hi All,
I'm experiencing quite strange behavior from the indicator I'm working on. While the calculations and the values in the indicator buffer are correct - the indicator itself plots absolutely fantastic values out of the blue.
The logs are showing that the buffer has values that are correct, however indicator plots them wrongly. The code is below if you'd like to try it out.