Not logged in
Viewing 2 posts - 1 through 2 (of 2 total)
  • #112599 |
    Customer
    8 Posts

    Hi Support,

     

    Is this code correct if my account equity draws down 5%???????????

     

    Regards John.

     

    // Alert

    IF  (IsBarOpen is True) && ((Account Equity < (Account Balance * 0.5)))
    THEN
       // Action #1
          Close order with Magic Number: S1;

     

    END IF;
     

    #126405
    Mark Fric
    Administrator
    1182 Posts

    no, 0.5 * Account balance is 50% of balance, not 5%.

     

    You should use 0.05 to get 5%.

    Mark
    StrategyQuant architect

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.