Specification
im reday to start now
Details explanation
Goal:
Build a strategy that trades breakouts off a user-defined high/low range with configurable risk management, take profits, and optional pullback entries.
Requirements:
1. Range Breakout:
-
Build high/low range from user-defined start/stop time (e.g., 09:30–09:31). Stop updating after stop time.
-
Entry options:
-
Candle close beyond range (BreakoutClose)
-
Stop order at range high/low (BreakoutStop)
-
-
Direction filter: Long / Short / Both
-
Max trade attempts per day
2. Risk Management:
-
Stop loss: opposite range side OR percent of price movement from entry
-
Max risk per trade defined in $
-
Contracts calculated based on stop loss and max risk
3. Take Profit:
-
TP1: user-defined % move, user-defined % of contracts
-
TP2: remaining contracts at user-defined % move
4. Optional Pullback Entry:
-
Wait for price to pull back a user-defined % after candle closes beyond range
-
Place limit order at pullback price
-
Apply same stop loss and TP logic
5. Settings to Expose:
-
Direction, entry mode, max risk, max attempts, range start/stop, stop loss mode & percent, TP1/TP2 percent move & size, active days, pullback enable & percent
6. Notes:
-
Time inputs in HH:mm format
-
Contracts always rounded to nearest whole number
-
Trades and range drawn on chart for review