fxDreema

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

    any help ??? Auto lot sizing issue

    Questions & Answers
    2
    2
    40
    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.
    • M
      mr213214 last edited by

      I want to use auto lot sizing like this :
      balance 1000 - 1999 lot 0.01
      balance 2000 - 2999 lot 0.02
      balance 3000 - 3999 lot 0.03

      I am already used " % of balance => lot 100% "
      and it gives me lot 0.01 on balance 1000 .. but when the balance exceed 1500 the lot becomes 0.02
      and when balance becomes 2500 the lot turns to 0.03
      but this is not what i want .. as i said .. i want the auto lot like that :

      balance 1000 - 1999 lot 0.01
      balance 2000 - 2999 lot 0.02
      balance 3000 - 3999 lot 0.03
      and so on ....

      any help ???**

      if(DynamicLotSize==true)
              {
               double RiskAmount= AccountEquity() *(EquityPercent/100);
               double TickValue = MarketInfo(Symbol(),MODE_TICKVALUE);
               if(Point==0.001 || Point==0.00001) TickValue*=10;
               double CalcLots=(RiskAmount/StopLoss)/TickValue;
               LotSize=CalcLots;
              }
            else LotSize=FixedLotSize;
            // Lot size verification
            if(LotSize<MarketInfo(Symbol(),MODE_MINLOT))
              {
               LotSize=MarketInfo(Symbol(),MODE_MINLOT);
              }
            else if(LotSize>MarketInfo(Symbol(),MODE_MAXLOT))
              {
               LotSize=MarketInfo(Symbol(),MODE_MAXLOT);
              }
            if(MarketInfo(Symbol(),MODE_LOTSTEP)==0.1)
              {
               LotSize=NormalizeDouble(LotSize,1);
              }
            else LotSize=NormalizeDouble(LotSize,2);
      
      l'andorrà 1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà @mr213214 last edited by

        @mr213214 You will need a variable to store the lot size value conditioned by the balance value this way:

        01.png

        (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
        N
        Y
        J
        S

        12
        Online

        147.0k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors