fxDreema

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

    MT4 Testing Gives Wrong S/L £Amount

    Questions & Answers
    2
    5
    699
    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.
    • S
      steveukrm last edited by

      Hi FxDreema,

      If you could cast your eye over my EA & screenshot I would appreciate it. Basically the attached EA is set to to risk 0.5% on the £2,000 balance which should show a loss of £10 when the S/L is triggered.

      When run through MT4 Strategy Tester the trades Entry Price (1.76131), S/L Price (1.76378) and Amount/Point (£0.40) is correct. This should equal my risk amount of £10 ((1.76378 - 1.76131) * £0.40 = £9.88. This is close to my intended risk amount which is fine.

      What actually happens is that MT4 Strategy Tester shows a loss of £56.02 which is 5x larger than it should be.

      If you could let me know what the problem is and how to solve it I would greatly appreciate it.

      Kind regards,
      Steve.

      0_1481140200605_Screenshot.PNG 0_1481140211863_Steve_v4.mq4

      S 1 Reply Last reply Reply Quote 0
      • S
        steveukrm @steveukrm last edited by

        Hi FxDreema,

        I forgot to mention that the test was to trade short on GBPAUD 5min chart starting on 16 September 2016. All the other parameters are set in the constants in the EA I attached to my previous post.

        Kind regards,
        Steve.

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

          I can see you are doing your own calculations for lot size, SL and TP. I don't know why, because there are many Money Management options available anyway, but what can say... It's probably something that is not calculated properly in all these Formula blocks.

          1 Reply Last reply Reply Quote 0
          • S
            steveukrm last edited by

            Hi FxDreema,

            Thanks, but the lot size, entry price and S/L price are all correct (as shown on the screenshot) so the EA is calculating it correctly. It just looks like MT4 is calculating the loss amount incorrectly.

            If you look on the screenshot you will see that the levels are all correct but the loss amount shouldn't be the figure that it is.

            Do you have any idea what would cause that?

            Kind regards,
            Steve.

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

              Well, the EA only says to MetaTrader "please, open this many lots with such SL and such TP" and then MetaTrader does the rest. And when your account currency is different than any of the second part of the currency pair, then don't expect direct connection between pips and money.

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

              Online Users

              B
              Y
              T
              S
              T
              E

              11
              Online

              146.8k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors