That file is for MT4 only. Why would you want it for MT5? Besides, it looks like condition checked correctly by AP and the problem is in its inability to close the trades. Did you read this post of mine?Do you have the new file for MT5? I just tried to compile it and it failed.
Thanks
Lewis
Thank you! The attached log shows the problem with the market being closed. Please check the trading hours for the symbols you are working with.Hi,
Please see this new log.
Thanks
Lewis
I've asked to know where to test to reproduce the problem. AP should work fine in any mode - hedging or netting.
That log doesn't show any problem. Please try running AP recompiled with Account Protector.mqh either from this post (it will help to see if AP detects the condition) or from this (in case the problem is the same as in case of @hounddog, this will show a detailed reason why AP cannot close trades when it detects the condition).@Enivid have you had any luck diagnosing the issue after reviewing the logs I sent you? I assume the conditions are silently resetting after being triggered for the first time. I can see others here are experiencing the same issue
Hi @Enivid , I was exploring further the account protector, the value of slippage was 2. Is there any reason why the value was set to 2 and not any other number. What does value number 2 stands for if you don't mind explaining it to me?
That log doesn't show any problem. Please try running AP recompiled with Account Protector.mqh either from this post (it will help to see if AP detects the condition) or from this (in case the problem is the same as in case of @hounddog, this will show a detailed reason why AP cannot close trades when it detects the condition).
Part 1 is an example of the bug we've been experiencing. The floating profit = value stays at 0.00 right after the action was taken. I was able to work around this issue by closing the chart, restarting the server and then reattaching to the chart. The floating profit = stayed at 0.00 for hours. Until I noticed it and started to turn things on and off until it started working again..
Is this a known bug? Whats going on?
Sorry, but I couldn't reproduce it. It is on MT4, right? Considering what the log shows (part2) the floating profit might really have been zero as the next printout following the reattachment shows only 0.02 profit, which is about one tick away from 0.
If you recompile with the attached .mqh file, it will also log profit on per-order basis - maybe it's skipping orders for some reason?
OK. Please try it with the new .mqh. Hopefully, it will let us understand where profit calculation is failing.Yes, this is on Mt4.
I appreciate that but it really wasnt 0.00. It was stuck on 0.00 from 15:50 to 17:07 ..
Hi there. I just discovered this awesome tool! I have one or two questions though. I would like to run multiple EA's on one account with daily gain goals and a set risk percentage. Then use the AP to close all trades and turn off autotrading for the day when either one or the other is triggered. My question is whether it is possible for AP to restart autotrading automatically at user defined time (say the next day)? If not, would it be possible to add that functionality? And when it starts up Autotrading again it would be great if it automatically took new snapshots.
Thank you for this incredible tool. It is going to help a lot.
I just tested it using the AP on two different charts in the same account. The one has the conditions for closing trades, pending orders, and disabling Autotrader, and then take a snapshot. The second one only enables autotrading based on the timer. The timer however resets and the tick box gets uncheck (reset). Is there a way that this can stay checked and not reset after it has completed it's action? And do you think it will be ok to run this on two seperate charts in 1 account like this? It looked like it is working like I wanted it to at the moment, but I haven't tested it with equity levels being the trigger.