fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. mr213214
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    mr213214

    @mr213214

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    mr213214 Unfollow Follow

    Latest posts made by mr213214

    • any help ??? Auto lot sizing issue

      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);
      
      posted in Questions & Answers
      M
      mr213214