This thread is just a thread that I am starting to avoid hijacking the Matrix Grid thread however I expect this to be a rather inactive thread. This will be used for explanations and questions of the MaxDd ea. The original version simply took a measurement of the dd and then closed out all orders as it reach the max. This update adds a few features.
First, I noticed that I was having trouble keeping track of which eas needed to have their lot sizes changed based on profit or loss so now there is a way to set lower and upper limits of balance. If it reaches the limit then you get an alert and/or notification.
Secondly, I noticed a much bigger problem especially on higher risk setups. What happened was the ea would close out all trades at a certain level but the matrix eas didn't know to change the lot size and so it just continued with the same lot size. As an example, let's say the max dd was 40% and the balance was 5,000. Now if the max dd was reached then in a perfect world (no slippage) we would have only 3,000 left. If your settings called for 0.01 lot for each 500 then you had your lot size at 0.10 however after the loss it should be at 0.06. The lot size is now 80% larger than it should be. Before, I would notice this and then I would change it but the move happened overnight and in the morning I didn't have time for it and then I saw that most draw-downs got hit twice. Maybe it would have happened anyways but just to be on the safe side, I have now added an option to have the platform close itself after the trades are closed. It will send an alert/notification with the account number if you have enabled it and then close itself. This can be disabled but I encourage you to use it. For the record, I wanted to just disable eas like you can do manually by clicking the button at the top but I didn't see any way to do this so the next option was just to close the platform which does the same thing. If anyone knows how to do this then let me know how and I will make the change.
Once again I will not be publicly releasing the mq4 as it also requires an include and I think it will just confuse people but anyone needing the source code can pm me and I will gladly send it to them. There are no dlls so you don't have to worry about me playing any funny games.
First, I noticed that I was having trouble keeping track of which eas needed to have their lot sizes changed based on profit or loss so now there is a way to set lower and upper limits of balance. If it reaches the limit then you get an alert and/or notification.
Secondly, I noticed a much bigger problem especially on higher risk setups. What happened was the ea would close out all trades at a certain level but the matrix eas didn't know to change the lot size and so it just continued with the same lot size. As an example, let's say the max dd was 40% and the balance was 5,000. Now if the max dd was reached then in a perfect world (no slippage) we would have only 3,000 left. If your settings called for 0.01 lot for each 500 then you had your lot size at 0.10 however after the loss it should be at 0.06. The lot size is now 80% larger than it should be. Before, I would notice this and then I would change it but the move happened overnight and in the morning I didn't have time for it and then I saw that most draw-downs got hit twice. Maybe it would have happened anyways but just to be on the safe side, I have now added an option to have the platform close itself after the trades are closed. It will send an alert/notification with the account number if you have enabled it and then close itself. This can be disabled but I encourage you to use it. For the record, I wanted to just disable eas like you can do manually by clicking the button at the top but I didn't see any way to do this so the next option was just to close the platform which does the same thing. If anyone knows how to do this then let me know how and I will make the change.
Once again I will not be publicly releasing the mq4 as it also requires an include and I think it will just confuse people but anyone needing the source code can pm me and I will gladly send it to them. There are no dlls so you don't have to worry about me playing any funny games.
Attached File(s)
Max DD.ex4
10 KB
|
1,197 downloads