- Credits
- 0
Thanks for all Your effort . God bless youI have checked indicator code.
This indicator compare ADX DI+ DI- value current bar with previous bar.
That is why, on current bar, ADX value is not established yet, because always the value is changing and once ADX value is fixed, then signal is made in next candle stick.
I have tried to change code and tried to read current bar data but it is always changing and could not get fix value and I gave up it.
Code:ADX0 = iADX(NULL, 0, ADXPeriod, PRICE_CLOSE, MODE_MAIN, i); ADX1 = iADX(NULL, 0, ADXPeriod, PRICE_CLOSE, MODE_PLUSDI, i); ADX2 = iADX(NULL, 0, ADXPeriod, PRICE_CLOSE, MODE_MINUSDI, i); //---- if(ADX1 >= ADX2) Then ==GREEN BAR