Account Protector

Discussion in 'MetaTrader Expert Advisors' started by Enivid, Feb 6, 2017.

  1. Enivid

    Enivid Administrator Staff Member

    9,770
    346
    114
    First, you need to check if .ex4 file can really be found in the folder shown on your screenshot.
    If it is there, you need to make sure, your MT4 app has access to read that folder. Try running it in Administrator mode.
    If the .ex4 isn't there, then it either does not compile or it compiles in some other folder. In both cases, you need to run MetaEditor, compile the .mq4 file and look at the output.
     
  2. Florida Trader

    Florida Trader Trader

    4
    0
    22
    I set up the Account Protector EA, saved the entire file folder to the C:\MetaQuotes\Terminal\MQL4\Experts, compiled the Account Protector.mq4 (no error/no warnings), checked my terminal .dll settings, allowed .dll in the EA, the Equity Trail Stop works great, Actions Tab: Close all Positions works / Disable AutoTrading does not work. No errors in the Expert Journal. The EAs re-open and lose money until I manually disable Auto Trade. Any suggestions? Thanks - you guys do a great job!
     
  3. Enivid

    Enivid Administrator Staff Member

    9,770
    346
    114
    For me to help you with this, I would need the copy of the log file created by the Account Protector ("log.txt" by default; should be in /MQL4/Files/) and the log of the Experts tab of your terminal. Thanks!
     
    Florida Trader likes this.
  4. Charles Phillips

    Charles Phillips Trader

    3
    1
    8
    Thanks for Account protector.
    I have been looking for a way to stop Auto trading for quite a while.
    I am using MT5 build 1940 hedging account and Account Protector does not seem able to close trades.
    I get the following error message in the Experts tab.
    2019.02.11 11:07:36.483 Experts automated trading is enabled
    2019.02.11 11:07:38.116 Account Protector (EURUSD,H1) Emergency button pressed!
    2019.02.11 11:07:38.118 Account Protector (EURUSD,H1) Account Protector: PositionClose Sell failed. Error #4756
    2019.02.11 11:07:38.120 Account Protector (EURUSD,H1) Account Protector: PositionClose Buy failed. Error #4756
    2019.02.11 11:07:38.128 Account Protector (EURUSD,H1) All positions closed, pending orders deleted, autotrading disabled.
    2019.02.11 11:07:38.136 Experts automated trading is disabled

    Thanks
     
    Enivid likes this.
  5. Enivid

    Enivid Administrator Staff Member

    9,770
    346
    114
    @Charles Phillips I cannot reproduce this issue, but I believe it might be caused by the difference in order filling policies among brokers. Please tell me, which broker and account type you are trying this on, so I could test there and possibly fix this. Thank you!
     
  6. Charles Phillips

    Charles Phillips Trader

    3
    1
    8
    Thanks for your reply.
    I am using Pepperstone as a Broker and I have been testing Account Protector on MT5 demo account.
     
  7. Enivid

    Enivid Administrator Staff Member

    9,770
    346
    114
    The new version of Account Protector is out - 1.02. It fixes the issue with the error 4756 due to incorrectly set order filling type in MetaTrader 5 version of the expert advisor. There is no need to update from 1.01 if you are using the MT4 version of the EA.
     
  8. Charles Phillips

    Charles Phillips Trader

    3
    1
    8
    Thank you for the prompt update to 1.02. It works perfectly on Pepperstone MT5 account.
     

Share This Page