Expert Advisors: Simple MA EA - page 2

 
bdwezensky:

I was happy to find your code example as it solved my problem of buffering the MA and making it appear on a chart.  Thanks for posting it.

The one question that I have is how does it make the decision to close the open order? 

 

Thanks 

Only with SL and TP.
 
I tested this EA in the strategy tester, the stoploss doesn't seem to function properly and there's a big gap between the balance curve and the equity curve indicating that the trades are not closed even if the price already reached the stoploss level. Anybody knows why? Thanks in advance!
 
polymath:
I tested this EA in the strategy tester, the stoploss doesn't seem to function properly and there's a big gap between the balance curve and the equity curve indicating that the trades are not closed even if the price already reached the stoploss level. Anybody knows why? Thanks in advance!
on trading is not enough using only MA is depending same on MFI, RSI, stochastic. The MA not include this information. but there exist no one including controls to booth  indicators right now. most time to identificating the best SL (stoploss) is neccessari to have information of RSI, stochastic, MFI. for example : if MA 200 is getting and RSI anc stochastic is again high most time would go again up or down ( dipending of trade direction). same is for dayli economic calendar information there can move a pair over 100 pips and is not calculated in the EA's. look friday EUR USD there was a big move but eur has getting the way again ( this move can broke an little SL).
 

Hi,


I'm facing some issues with the code. It's showing error order filling type. Please look into the screenshots attached. Screenshot for error: Strategy tester settings mt5 editor with same code as provided above Strategy tester showing the error generated10030 error caught

 
prajwalrao2013:

Hi,


I'm facing some issues with the code. It's showing error order filling type. Please look into the screenshots attached.10030 error caught

You've testing an old EA, it would be strange if it didn't had any errors after so many years.