fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. leander
    L
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 5
    • Best 0
    • Controversial 0
    • Groups 0

    leander

    @leander

    0
    Reputation
    179
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    leander Unfollow Follow

    Latest posts made by leander

    • RE: Zero Divide Error

      Quick update: I’ve found miros’ fix and after doing this I got another error instead: tester cannot calculate price;
      Turns out the plem was because my live accoubt uses cad but the tester only works using usd -> fix in ther tester options switching to the main currency of your broker, USD, found the info here: https://www.mql5.com/en/forum/154449

      posted in Bug Reports
      L
      leander
    • RE: Zero Divide Error

      I have almost the same problem. In a demo account things work fine, once I use a live account to backtest - zero divide error in the money management

      posted in Bug Reports
      L
      leander
    • RE: EA crash zero divide by money management

      Hello! Thanks for your reply. I could get rid of the problem, by switching from Price Level to Price Fraction and then adding some buffer (e.g. spread or a factor*ATR). Originally, I tried to follow a MA as base curve and then add an offset, but the problem was when the price was running away quickly from the MA, causing the SL (in price level) to be on the wrong side, creating 0, resulting in a crash. With doing price fraction and then adding it to the open-price and adding up a bunch of small factors, the whole calculation ended up being way more robust.

      The crash is actually not a too bad thing, on multiple times testing it sometimes didn’t crash and then somehow opened many tiny trades, resulting in a way too big risk.
      Also tried Miror’s fix, but this seeme to resulted in trades without a SL at all, which was way too risky.

      So all good, no real money lost.

      Fix => avoiding price-levels and using fractions or pips instead for SL/TP

      Thank you! 🙂

      posted in Questions & Answers
      L
      leander
    • RE: EA crash zero divide by money management

      Hmmm seems to be caused by a SL of 0, but why is it 0.

      It’s a duplicate bug of https://fxdreema.com/forum/topic/4871/zero-divide-error-and-risk-of-balance-volume-size-depending-on-stop-loss/5

      posted in Questions & Answers
      L
      leander
    • EA crash zero divide by money management

      Hello, I seem to get a ea crash on zero divide. On mq4 debug it points me to this line: else if (mode=="balanceRisk") {size=((value/100)AccountBalance())/(sl((TickValue/ticksize)*point)*PipValue(symbol));}
      �
      I am using build100 of the standalone exe version.

      Thank you!

      posted in Questions & Answers
      L
      leander