Equity

1 replies

jdowney

Customer, bbp_participant, community, 12 replies.

Visit profile

9 years ago #112599

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;
 

0

Mark Fric

Administrator, sq-ultimate, 2 replies.

Visit profile

9 years ago #126405

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

 

You should use 0.05 to get 5%.

Mark
StrategyQuant architect

0

Viewing 1 replies (of 1 total)