EA with microlot
Results 1 to 6 of 6

Thread: EA with microlot

  1. #1
    My Ea does not open lot. It stops at 0.1 lot. Everyone understands why

  2. #2
    Hey bridge.... Seems like your ea has a minimum lot dimensions coded in.... That's common....

    Hunt the ea for 0.1, ought to be related to lots.... You'll probably need to reduce the minimal value....

    When the ea is posted somewhere , let us know and we could tell for certain, otherwise it's simply an edued guess...h

    Inserted Code if(lotlt;0.1) lot = 0.1; //-- if(lotlt;0.01) lot = 0.01;

  3. #3
    Quote Originally Posted by ;
    My Ea does not receptive micro lot. It stops at 0.1 lot. Everyone understands why
    Can't tell you. But my FXCM Micro Demo lets me exchange micro lots and then I can not do smaller than .1 in my EA. I confirmed that this was deliberate by checking the Minlot setting. Didn't check every pair, but it was accurate for EURUSD and GBPUSD.

    double lots = MarketInfo(Symbol(), MODE_MINLOT);

  4. #4
    Ive notice this to and Ive alter it for
    if(lotlt;0.01) lot = 0.01;

    However there is no lot size in beetween... The EA opens 0.01 lot or it switch to 0.1, cant get 0.02 or 0.03... I would also prefer to have 0.12 0.14 or 0.36. Do you know how to do this.

    Here's the part of the code associated with the lot size

    Calculate best lot size |
    // ------------------------------------------------------------------
    dual LotsOptimized()
    {
    double lot=Lots;
    int orders=HistoryTotal(); // history orders total
    int losses=0; // amount of losses orders without a fracture
    //-- select lot size
    lot=NormalizeDouble(AccountFreeMargin()*MaximumRis k/1000.0,1);
    //-- yield lot size
    if(lotlt;0.01) lot=0.01;
    yield(lot);
    Quote Originally Posted by ;
    hey bridge.... Seems like your ea includes a minimum lot size coded in.... That's common....

    Search the ea for 0.1, ought to be related to lots.... You're likely going to have to lower the minimum value....

    If the ea is posted somewhere , let us know and we can tell for certain, otherwise it's simply an edued guess...h

    Inserted Code if(lotlt;0.1) lot = 0.1; //-- if(lotlt;0.01) lot = 0.01;

  5. #5
    Try , and I say try ,to alter :
    lot=NormalizeDouble(AccountFreeMarg in()*MaximumRisk/1000.0,1);
    into:
    lot=NormalizeDouble(AccountFreeMarg in()*MaximumRisk/1000.0,2);

    It should work , because number of digits after decimal point have changed from 1 (xx,y) to two (xx,yy).

    Hope this help and sorry for my english

  6. #6
    yOU KNOW WHAT!!! Ilt;t try it and it functioned Thanks Doctor I feel much better now!!!
    Quote Originally Posted by ;
    Strive , and that I say attempt ,to alter :
    lot=NormalizeDouble(AccountFreeMarg in()*MaximumRisk/1000.0,1);
    into:
    lot=NormalizeDouble(AccountFreeMarg in()*MaximumRisk/1000.0,2);

    It should work , because amount of digits after decimal point have changed from 1 (xx,y) to 2 (xx,yy).

    Hope this help and sorry for my english

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.