fxDreema

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

    Position Sizin

    Questions & Answers
    2
    3
    16
    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.
    • L
      lucag last edited by

      I have a problem with the position size calculation, specifically the lot size. It works fine everywhere; however, with one broker the indices have 10 contracts instead of 1 contract.

      I know it’s an anomaly, but when I open a position risking €50, it actually opens a position with a €500 risk (50x10)

      I also tried writing a custom MQL script, but I’m experiencing the same behavior.

      spread = SymbolInfoInteger(_Symbol, SYMBOL_SPREAD);
      double CurrentPoint = SymbolInfoDouble(_Symbol, SYMBOL_POINT);

      // determino il rischio
      double RiskAmount = rischio_currency;
      // calcolo la differenza in punti tra i prezzi
      double Point_SL = MathAbs(prezzo1-prezzo2)/CurrentPoint;

      double Trade_Lot = RiskAmount /((Point_SL+spread)*tick_value);
      // in caso sia su un indice funded next
      if (contract_size == 10) Trade_Lot =Trade_Lot /10;
      lot_size =NormalizeDouble(Trade_Lot,2);

      if(lot_size<=min_lot) lot_size=min_lot;

      There is way to fix this ?

      I'm thinking to make some custom mql and divide for 10 my risk on this exception.

      thank's

      1 Reply Last reply Reply Quote 0
      • L
        lucag last edited by

        For now, I’ve solved it by using OnCalcProfit, and everything is working very well.

        It might be useful for FXDreema’s position size calculation functions to use this method instead of the classic one.
        Thank's

        1 Reply Last reply Reply Quote 1
        • l'andorrà
          l'andorrà last edited by

          I agree. 😉

          (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

          (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

          (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

          Online Users

          E
          D
          E
          M
          H
          C
          I
          I

          22
          Online

          146.6k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors