MACD exit
-
I am having a problem with my EA.1) If the MACD signal is above the main line.2) the 9EMA crosses under the 26EMA. Enter sell trade. Exit trade when the MACD signal line crosses under the main line. Every time I try to make an exit order, mt4 starts messing up on the back test. It will only draw a few bars and then throws a bunch of errors and stops working. If anyone can help, I would really appreciate it. Thank you for your time.
-
The problem I see in your project is here:

This MM option requires some SL.
Without this problem, I see another:

It looks that at this point the signals to sell and to close the sell are both true, and multiple sells are created and immediately deleted. But this is a logical problem.
-
If having no stop-loss is a problem with fxDreema's money management (makes sense) then why let the user even try to set it without at least a warning?
Ten more minutes for the programmer, once in his life, would save potentially hundreds or thousands of hours for users.
fxDreema's purpose is to save users time. The many land-mines like this one work against that goal.
-
Because this situation is too special, I never wrote a code to check whether SL is different than "No Stop-Loss" when this particular MM is selected. This situation is only present in these blocks. For that reason I wrote this text over there, and also I think that the person who decides to use this MM should understand that he needs some SL, because this is the risk. You risk 2% of the money you have, meaning that is the trade is closed by SL, you will lose 2% of the balance. With no stop-loss, what is the risk... it is 100%.
But you are right that this is confusing to people, because few times in the past people had the same problem. But again, I think if someone uses this MM, he should understand that SL is a must.
Or... what did you expected from this MM to do? Because you probably intentionally selected it and then set SL to "No Stop-Loss".
-
no stop loss in macd still try it