Download MetaTrader 5

Moving Average Current Price as Entry Point

To add comments, please log in or register
ninja13
17
ninja13  

I would like to use my slow MA current price as Entry point after 2 MA cross. 

But my current MA EA, the entry point is either ask or bid after 2 MA cross.  

The coding to open an order in my EA is shown as below:-

1) Buy Order: 

ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,aStopLoss,aTakeProfit,TicketComment,MagicNumber,0,Green); 

 2) Sell order:

 ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,Slippage,bStopLoss,bTakeProfit,TicketComment,MagicNumber,0,Red);

How to amended it in order to use slow MA current price as Entry point?

Please help on this issue.

Thanks! 

whroeder1
15592
whroeder1  
ninja13: How to amended it in order to use slow MA current price as Entry point?
You don't. You have to wait until Bid or Ask is on the correct side of your slow MA, and then open.
ninja13
17
ninja13  
WHRoeder:
ninja13: How to amended it in order to use slow MA current price as Entry point?
You don't. You have to wait until Bid or Ask is on the correct side of your slow MA, and then open.


Will try, Thanks a lot....

To add comments, please log in or register