Step VHF adaptive VMA – indicator MetaTrader 5

Step VHF adaptive VMA - indicator for MetaTrader 5
Theory: VMA (Variable Moving Average) is often mistakenly confused with the VIDYA (Volatility Index Dynamic Average) which is not strange since Tushar Chande took part in developing both. But the VMA was preceding the VIDYA and should not be mistaken for it. The formula for original VMA calculation is the following: VMA = (α * … Read more

Trailing Step Function – script MetaTrader 4

Trailing Step Function - script for MetaTrader 4
//+——————————————————————+ //|                                                                  | //+——————————————————————+ void TrailingStep(double trailingStepStartPips, double _trailingStepPips, double initialStopLossInPips=0, bool useSymbol=false, bool useMagicNumber=false, int _magicNumber=0, bool initialStopLossWillBeDone=true) {     for(int i=OrdersTotal()-1; i>=0; i–) {         if(OrderSelect(i,SELECT_BY_POS)) {             bool magic = (useMagicNumber) ? (OrderMagicNumber()==_magicNumber) : true;             bool symbol = (useSymbol) ? (OrderSymbol()==Symbol()) : true;             if(!magic || !symbol) continue;             if(OrderType() == OP_BUY) {                 if(OrderStopLoss() >= NormalizeDouble(OrderOpenPrice() + initialStopLossInPips*_Point*10,_Digits) … Read more

RSI_MAonRSI_Filling Step EA – EA MetaTrader 5

RSI_MAonRSI_Filling Step EA
Trading strategy The EA uses a custom indicator RSI_MAonRSI_Filling – the signal is the intersection of two indicator lines. The indicator is created on the specified timeframe ‘Working timeframe‘ – the same timeframe is used to determine the moment of the birth of a new bar (if it is necessary for the parameters ‘Trailing on …‘ … Read more