@vhagwie You need to copy all three files into Experts folder. You need to compile either AccountProtector.mq4 or AccountProtector.mq5 depending on which MetaTrader you are using. You will have one compiled file as a result - you will need to attach it to the chart.
Do i need to attach it to all the charts opened? Or jus one chart?
You would have to refresh the snapshot manually.1) under the condition tab, if i choose the "equity>= % of snapshot", does the equity snapshot refresh itself after condition is met/trades are closed? Or do i need to manually press the snapshot everytime trades are closed?
Only open trades.2)still under the condition tab, if i choose the "floating profit reaches % of balance", does this profit % includes both the open and the closed trades? Or just the open trades only?
No, you would need to re-enable it manually.3) if i set the AP to disable ea on a friday, does it automatically, re-enable the running ea after that day? Or do i need to toggle off the "set timer" before it will resume/activate other ea
If you don't set any filters it will apply to the entire account. If you set up a filter to work only with the specific currency pair, it will work only with it.4) lastly, with regards to trailing stop loss, does this apply to the entire equity? Or just on the chart where AP is attached to.
If you set DoNotResetConditions and DoNotResetActions to true, the EA will continue working with new positions even if you don't do anything. It will show "Triggered" state, but it will continue looking for new trigger situations as long as there is some condition and action set.Hi Enivid,
Many thanks for this EA. I browsed this forum to find if there was a possibility that the AP EA will reset automatically after being triggered, but I read that when triggered the EA will stay in that status. Is it an idea to make this a setting (choice)? Because I am running a scalper EA and every time the losses exceeds a certain amount of USD (Floating loss reaching currency units) I choose to close every trade in that instrument. But after that it is ok with me that the AP will come out of the triggered state and monitor this rule again, because the scalping EA will continue as well.
Thanks for your excellent work.
Hi Enivid,If you set DoNotResetConditions and DoNotResetActions to true, the EA will continue working with new positions even if you don't do anything. It will show "Triggered" state, but it will continue looking for new trigger situations as long as there is some condition and action set.
Your equity is probably 100% of the snapshot equity if you just made the snapshot. If you set a condition for equity to be >= 1% of snapshot, of course it will get triggered immediately.3) fill in 1.00 in Equity >= % of snapshot
Ah right... Thank you for also answering less intelligent questionsYour equity is probably 100% of the snapshot equity if you just made the snapshot. If you set a condition for equity to be >= 1% of snapshot, of course it will get triggered immediately.
Yes, it will apply only to orders with specified Magic number.1) if I set a filter to include a specific magic, will all partial close apply only to this specific magic ( as I would guess this beeing the expected way of action) ?
It will partially close positions. So, if you have two trades for 1 lot each, it will try to close 0.3 lot in each of them.2 )if I want a partial close of, say 30%, will each position be partially closed ( from ... to ...) or will the system try to close the positions entirely untill the percentage of the volume is reached ?
MT4 doesn’t allow adding more than one EA on a single chart.When i have other EA open on a chart, seems I can't add AP. Should the AP be added on any chart without other EA?
Once opened (as I understand) it can control all Expert Advisors orders on any other charts with EAs. Only 1 EA can be open on a particular chart, right?
AP is also asking to cancel autotrade.