Have any of you experienced unexplained immediate closures of positions just opened? There's sufficient equity and there's nothing in the code I can discern which should cause an immediate closure.
My broker, IBFX, looked into the tickets (on my live account) in question and they claim they were closed by my computer. I viewed the log file in the experts directory and don't see anything unusual and there's no specified error code or indication why the position was closed. I was able to manually open an order with the same number of lots in the same direction and as stated earlier I did get the EA to properly open and hold onto an order if the lot size was reduced below 20 minis (at 10 or 1 mini).
Any clues on how to troubleshoot this are much appreciated.
            - Questions from Beginners MQL5 MT5 MetaTrader 5
 - Indicator dump by Dserg
 - SimpleDailyRangeBreakExpert
 
You are missing trading opportunities:
        - Free trading apps
 - Over 8,000 signals for copying
 - Economic news for exploring financial markets
 
          Registration
          Log in
        
        You agree to website policy and terms of use
    If you do not have an account, please register