fxDreema

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

    Money Management Formula

    Questions & Answers
    3
    3
    1839
    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.
    • J
      josecortesllobat last edited by

      Re: Help with money management formula

      Hi @fxDreema

      I am very interested on the formula you gave in the link above.

      Please, could you be so kind helping me to get the values for each variable in the formula?

      value -> Risk In Percent (as a constant/variable)

      AccountBalance -> Account Balance
      0_1516216424809_fa4cea81-461d-4b75-a92f-381bce73b8c0-image.png

      sl -> StopLoss in PIPS (as a constant/variable)

      TickValue -> Market Properties -> Money per Tick

      0_1516216571928_8502f987-c83d-4267-9a25-510802df62b7-image.png

      Ticksize -> Market Properties -> Tick Size

      0_1516216657466_8854b83d-9365-4c39-a418-c8dcf78f3775-image.png

      Point -> Market Properties -> Point Size

      0_1516216878748_6ef3f9d8-021e-41ca-8711-b2c60eb61efb-image.png

      PipValue, from where I can get this value?

      Thanks a lot for your help.

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

        The row of code that I posted in the other topic is part of one function that i wrote, in which those calculations take place. I posted this to show the person how the calculation is done.

        PipValue() is also a custom function that I wrote. But its contents is kinda crazy and I don't recommend to use it anywhere. There is a reason for it to exist, but it's not to be used from the people.

        TickValue equals to this - MarketInfo(symbol,MODE_TICKVALUE), which is also that "Money per tick" option.

        Tick size is this code: SymbolInfoDouble(SYMBOL,SYMBOL_TRADE_TICK_SIZE)

        But I think that the function PipValue() is nothing like these. I'm very bad with numbers, believe me, and I need to spend hours learning about these pips and values and ticks in order to explain them to you. Somehow I made them to work, but these values are one of these things that I immediately forget after use 🙂

        1 Reply Last reply Reply Quote 1
        • Q
          QuantEngineer last edited by

          In the Current version of MQL5, there is a function called OrderCalcProfit() that does this job of calculating potential profits or losses for hypothetical scenarios.
          Here is the link, in case someone else is interested https://www.mql5.com/en/docs/trading/ordercalcprofit

          Quant Engineer
          www.abfs.tech

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

          Online Users

          E
          H
          R

          11
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors