Never mind, stupid me didn't follow instructions. I only copied the .mq4 files when I'm supposed to copy the whole Account Protector folder into the Experts folder.I just re-compiled the .mq4 file and it has 101 errors and 8 warnings. I don't know how to correct the code errors, do have a working code you can share with me?
Try compiling the Account Protector.mq5 file with your MetaEditor. Does it produce any errors? If not, can you attach it now in MT5?My apologies for beeing stupid.
How do I install the advisor in MT5?
I downloaded the files from here or GITHUB: https://www.earnforex.com/metatrader-expert-advisors/Account-Protector/#Usage
and then I just pasted in the MT5 folder:
C:\Users\vps-user\AppData\Roaming\MetaQuotes\Terminal\xxxxxx\MQL5\Experts\Advisors
but MT5 does not recognize it as MQL5 program.
What am I doing wrong?
Looks like a bug. I'll fix it in the next release of the Account Protector.Hi, I am testing this EA and it appears the emergency button is not working as it should.
When pressed, the only thing it does is to disable autotrading and close pending orders
It does not close any trades.
The expert tab says all positions closed, pending orders deleted, autotrading disabled.
but the trades stay open, but pending orders get deleted and autotrading is disabled.
Is there any setting i am missing?
First, please make sure that you are compiling the right file - AccountProtector.mq4, NOT AccountProtector.mqh.I missed the mq4 file - now I get 12 errors
Would you help me, please?
My fault! I forgot to replace all lowercase instances of "pips" in MT5. I have now updated the files for MT5 (should be version 1.061) to fix this.for mt5 still using pips or mistypo on 1.06 ?
Thanks.. emergency button works perfectly now.Looks like a bug. I'll fix it in the next release of the Account Protector.
The equity trailing stop should be fixed now in 1.07, which I have just released. As for the conditions, please check if you have any filters set or if you are setting up the conditions correctly. I've tested them and they seem to work fine.Thanks.. emergency button works perfectly now.
However, all equity related functions still not working.
or perhaps there is a setting i didn't enable.
for example, equity trailing stop (hidden) gives the correct equtiy SL to close but doesn't actually close any trades
Also, for the conditions, the equity related functions do not trigger
Hey Enivid,Thank you for your suggestion, but there is already a Timer trigger for that.
You need to launch four instances of Account Protector and use filter by symbol to limit each one to a single currency pair.Hi, I'm trying to set this up with the following scenario.
I want to trade four different instruments.
Let's say I trade Eurusd, GbpUsd, UsdCad and UsdJpy.
I'd like to monitor my positions on each pair separately and if the positions on each pair and only that pair exceed a 1% drawdown on my equity I'd like to close that pair positions.
So for example EurUsd goes into 1% drawdown but the other three pairs are fine, EurUsd closes out but the other three remain.
Can I do this?
You can use a separate instance of Account Protector to enable autotrading at specific time, but you cannot use to enable autotrading after "specific period from another instance's triggering has passed".Hey Enivid,
Many thanks for your good work..i already use your position size calculator and i love it.Just added your account protector and trying to figure out whether for example...if my floating loss rises to 100 and action disable auto trading is triggered..can i set a specific time to enable it again...lets say i want autotrading to be disabled for 12 hours and thereafter auto trading can be enabled again
When working with floating profit/loss conditions, it closes positions in an order based on profit/loss. For profit conditions, it will close the most profitable trades first. For loss conditions, it will close the most losing trades first.Great Tool people.
Can I make a suggestion for an additional feature?
When closing a position could we have a option to close (or partially close) the position which is the further distance from the current price first, then move to the next distant and so on?
(currently from my testing it seems to average all positions - forgive me if this is not the case)
This option would assist many EA's in managing an account.
Many Thanks