Indicators: StepUpDown

 

StepUpDown:

Price Direction movement Step Up and Down Forex Indicator for MetaTrader 5 with arrow and alert.

StepUpDown: Settings

Author: Roberto Jacobs

 

Are you sure this indicator is for MT5?

Moderators! Where are you looking?

 
Sergey Chalyshev:

Are you sure this indicator is for MT5?

Moderators! Where are you looking?

If you think this indicator is MT4, please download and use in your MT4. ^_^
 
Roberto Jacobs:
If you think this MT4 indicator , please download and use in your MT4. ^_^


Indeed, there is some nonsense in OnCalculate():

     for(i=wbar-1; i>=0; i--)
       {
         if(iMA(_Symbol,PERIOD_CURRENT,periodturn,0,MODE_EMA,PRICE_TYPICAL,i)>mahi) 
           {mahi=iMA(_Symbol,PERIOD_CURRENT,periodturn,0,MODE_EMA,PRICE_TYPICAL,i); mlhi=i;}
         if(iMA(_Symbol,PERIOD_CURRENT,periodturn,0,MODE_EMA,PRICE_TYPICAL,i)<malo) 
           {malo=iMA(_Symbol,PERIOD_CURRENT,periodturn,0,MODE_EMA,PRICE_TYPICAL,i); mllo=i;}
         divma0=iMA(_Symbol,PERIOD_CURRENT,periodturn,0,MODE_EMA,PRICE_TYPICAL,i)-iMA(_Symbol,PERIOD_CURRENT,slowperiod,0,MODE_SMMA,PRICE_TYPICAL,i);
         divma1=iMA(_Symbol,PERIOD_CURRENT,periodturn,0,MODE_EMA,PRICE_TYPICAL,i+1)-iMA(_Symbol,PERIOD_CURRENT,slowperiod,0,MODE_SMMA,PRICE_TYPICAL,i+1);
       }
 
Roberto Jacobs:
If you think this MT4 indicator , please download and use in your MT4. ^_^


Yeah, didn't see it right away. But it's terrible, no credit (

---

 
Vladimir Karputov:


Indeed, there is some nonsense in OnCalculate():


It turns out that the author creates a new indicator handle on each tick to make it look like in MT4. Horror!
 
Vladimir Karputov:


Indeed, there is some nonsense in OnCalculate():

Up to you to tell me how. ^_^
 
Sergey Chalyshev:

It turns out that the author creates a new indicator handle on each tick to make it look like in MT4. Terrible!
can also ... ^_^