Equity
1 replies
jdowney
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;
Mark Fric
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
Viewing 1 replies (of 1 total)