what my code 's error
zdj231: the indicator run have a error,just display two line,why
- Why do you expect upper and lower to be different when you ask for ZERO deviations?
-
No need for decrement counted. Always count down. Don't look past starting values.
int counted_bars=IndicatorCounted(); if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(int i=0;i<limit;i++)
int counted_bars=IndicatorCounted(), maxLookBack = MathMax(MaxPeriod, MinPeriod); if(counted_bars < maxLookBack) counted_bars = maxLookBack; for(int i=Bars-1-counted_bars;i>=0;i--)
the indicator run have a error ,just display two line,why