Skip to main content

Update risk manager

Feature Request: Refine Stop Loss Counting & Daily Drawdown Logic in Risk Manager

1. Differentiate True Loss Stops from Breakeven / Trailing Stops

  • Current Issue: The Risk Manager counts any triggered Stop Loss toward the daily "Max Stop Loss Hits" limit, even if the stop was moved to Breakeven (BE) or locked in profit via a Trailing Stop.

  • Proposed Solution: A trade should only be counted as a "Stop Loss" if it closes at a net financial loss (exit price worse than entry price). Trades closed via BE or Trailing Stops in profit/neutral should not trigger or count toward the maximum loss limits.

2. Daily Drawdown Trigger Logic (Realized vs. Floating Drawdown)

  • Current Issue: Temporary floating drawdown during an open trade can trigger the daily drawdown limit, locking the account even if the trade ultimately recovers and closes in profit.

  • Proposed Solution:

    • Evaluate Daily Drawdown based on Realized P&L (closed account balance) rather than temporary floating price spikes, OR

    • Only keep the account locked while an open trade's floating loss actively exceeds the threshold. If the trade recovers and closes above the drawdown threshold (or in profit), the account should not remain locked for the rest of the day.

Example Scenario:

  • Max Daily Drawdown: -$300

  • Trade Path: An open trade temporarily dips into -$350 floating drawdown, but price recovers, and the trade is closed at a +$100 profit.

  • Expected Result: Since the final realized balance did not exceed the -$300 daily limit, the account should remain active for trading.

Log in to comment and vote

No comments yet

Be the first to share your thoughts.