Experts: Crossing Moving Average

 

Crossing Moving Average:

The EA is based on two iMAs (Moving Average, MA) and iMomentum (Momentum) filter crossing.

Crossing Moving Average Algorithm

Author: Vladimir Karputov

 
I backtested it on several timeframes and several currencies. I didn't even open an order on any of them
 
Cassio Fernando Pereira De Lima Bezelga :
I backtested it on several timeframes and several currencies. None of them even opened an order

Read the log (log file) carefully. Think about when you set the lot size and the trading account size (the amount of money).

 

Can you explain how this robot identifies an entry? I didn't understand the relationship between the averages and the momentum indicator.

Thank you

 

The back is a bit vague since for mini index trades, for example, it loads the contract for the next day.

You could put in the times to finish the trade.

 
Sensational algorithm! On a demo account, it tripled the value of the account. Of course, there is always interference when it comes to closing the trade, but it still proved its effectiveness. I'd like to try your MT4 version, but I haven't found it yet.
 
Paulo Campozana :
Sensational algorithm! On a demo account, it tripled the value of the account. Of course, there is always interference when it comes to closing the trade, but it still proved its effectiveness. I'd like to try your MT4 version, but I haven't found it yet.

And you won't find it. The old terminal hasn't been in development for a long time. Work on MetaTarder 5.

 
Hi Vladimir,
What exactly is controlled by the parameter "MOM_Filter = 0.1"?
The standard momentum indicator on MT5 does not have such a level as "0.1" because (?)
Momentum - Oscillators - MetaTrader 5 Help
Momentum - Oscillators - MetaTrader 5 Help
  • www.metatrader5.com
The Momentum Technical Indicator measures the change of price of a financial instrument over a given time span. There are basically two ways to use...
 
Edviao:
Hi Vladimir,
What exactly is controlled by the parameter "MOM_Filter = 0.1"?
The standard momentum indicator on MT5 doesn't have a level like "0.1" because (?)

This is kind of like a minimum indentation. It is applied when a signal is detected:

//--- Buy Signal
   if(MA_First[1]>MA_Second[1]+ExtMA_MinimumDistance && MA_First[2]<MA_Second[2]-ExtMA_MinimumDistance)
      if(curMom>InpMOM_Filter && curMom>prevMom)
        {
         ClosePositions(POSITION_TYPE_SELL);
         double sl=(InpStopLoss==0)?0.0:m_symbol.Ask()-ExtStopLoss;
         if(sl>=m_symbol.Bid()) // incident: the position isn't opened yet, and has to be already closed
           {
            PrevBars=0;
            return;
           }
         double tp=(InpTakeProfit==0)?0.0:m_symbol.Ask()+ExtTakeProfit;
         OpenBuy(sl,tp);
        }
//--- Sell signal
   if(MA_First[1]<MA_Second[1]-ExtMA_MinimumDistance && MA_First[2]>MA_Second[2]+ExtMA_MinimumDistance)
      if(curMom<-InpMOM_Filter && curMom<prevMom)
        {
         ClosePositions(POSITION_TYPE_BUY);
         double sl=(InpStopLoss==0)?0.0:m_symbol.Bid()+ExtStopLoss;
         if(sl<=m_symbol.Ask()) // incident: the position isn't opened yet, and has to be already closed
           {
            PrevBars=0;
            return;
           }
         double tp=(InpTakeProfit==0)?0.0:m_symbol.Bid()-ExtTakeProfit;
         OpenSell(sl,tp);
        }
 

Mr Vladimir. I'm interested on this.

May I ask you a favor? Can you add a risk percentage lotting?

Best regards!

 
Dimcortesca #:

Mr Vladimir. I'm interested on this.

May I ask you a favor? Can you add a risk percentage lotting?

Best regards!

iMA crossover august