fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    backtesting

    Questions & Answers
    2
    3
    561
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      NonciAzzecco last edited by

      I am backtesting the EA: EMA con FRMM on alpari EURUSD H4.
      The idea is to explore the Fixed risk (money).
      Everything seems working unless in 13 August 2013 a huge size position is opened and the trade lose more than 400€, while the maximum acceptable risk is set to 60€. I can not understand the reason: is a risk fissed algorithm issue, backtesting, ...
      The mistake seems to be that wrong lot opened but I can not undertsnd why I have visually backtested but I did not get any further information.

      Thank you in advance

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        Wow, this was old and dangerous bug, I wonder how it was not reported long ago 😮
        I think I fixed it, it was only for some MM ("Risk" ones) and only for pending orders. At some place in the code I was using ask/bid instead of the open price, and this caused wrong calculations for the lot size.

        You can try it now, is it ok?

        1 Reply Last reply Reply Quote 0
        • N
          NonciAzzecco last edited by

          __Wow, this was old and dangerous bug, I wonder how it was not reported long ago 😮
          I think I fixed it, it was only for some MM ("Risk" ones) and only for pending orders. At some place in the code I was using ask/bid instead of the open price, and this caused wrong calculations for the lot size.

          You can try it now, is it ok?[/quote:f16fg3fz]

          Yes its ok. I deserve a gift for my bug finding skills 🙂

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          Online Users

          M
          C
          M
          J
          E
          M

          10
          Online

          146.8k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors