Indicators: Dsl - DMI oscillator

 

Dsl - DMI oscillator:

DSL - DMI oscillator.

Author: Mladen Rakic

Dsl - DMI oscillator
Dsl - DMI oscillator
  • 2017.03.13
  • Mladen Rakic
  • www.mql5.com
DSL - DMI oscillator
 
I appreciate the indicators you have coded. I am having trouble with  Dsl- DMI oscillator not appearing on my chart. Is there a way i can fix this? 
 
mikemanire:
I appreciate the indicators you have coded. I am having trouble with  Dsl- DMI oscillator not appearing on my chart. Is there a way i can fix this? 

No issue on my side (example from that file downloaded and attached to my chart)


 
Please can you check for bugs?
Files:
 
Devonish:
Please can you check for bugs?

Using the indicator from the original post with default parameters


So I am guessing that you are trying to use very short DMI period. In any case you can change lines 121 and 122 to this 

         double plusDI     = (atr!=0) ? 100*iCustomMa(DmiMaMethod,plusDM ,DmiPeriod,i,rates_total,1)/atr : 0;
         double minusDI    = (atr!=0) ? 100*iCustomMa(DmiMaMethod,minusDM,DmiPeriod,i,rates_total,2)/atr : 0;
 

I was using default settings, it appears to be working ok; so should I still make the changes above?

Thanks for replying.

 
Is this indicator still ok for the latest release of MT5? 
Reason: