Risk Management
Stoploss, trailing stoploss, target, capital, daily limits, and trading sessions.
Per-trade protection: Stoploss & Target
These settings live in the (Stoploss & Target) / Trade section and apply to every trade the strategy takes.
Default Stop Loss
| Direction | Default SL level |
|---|---|
| Buy | The entry candle's Low |
| Sell | The entry candle's High |
A structural stop based on the candle that triggered the trade. Toggle on/off independently of the initial SL.
Initial Stop Loss
| Field | Options | Meaning |
|---|---|---|
| Value | number | Distance from entry price. |
| Type | % / pts | Percentage of entry price, or absolute points. |
# Example: Buy at 61101 with Initial SL 1%
SL price = 61101 × (1 − 0.01) = 60490
Target
| Field | Options | Meaning |
|---|---|---|
| Value | number | Profit distance from entry. |
| Type | % / pts | Percentage or points. |
When price reaches the target, the position is closed at market.
Trailing Stoploss (PERCENT_TRAIL)
Enabling Trailing Stop Loss reveals the advanced trailing fields. CandleStrike uses percent-based trailing (PERCENT_TRAIL):
| Field | Meaning |
|---|---|
| Initial Move Stock % | How far price must move in your favor before the first SL adjustment. |
| Initial SL Move % | How much the SL moves on that first adjustment. |
| Move Stock % | Additional favorable move required for each subsequent SL adjustment (measured from new highs/lows). |
| Move SL % | How much the SL moves on each subsequent adjustment. |
| Max SL Moves | Maximum number of trail steps (default 10). |
Step-by-step example
Buy at 1000, Initial SL 1% (990), Initial Move Stock 2%, Initial SL Move 1%, Move Stock 1%, Move SL 0.5%, Max moves 10:
- Entry. SL sits at 990 (1% below 1000).
- Price reaches 1020 (+2% = Initial Move Stock). First trail: SL moves up 1% → 999.9. The trade is now nearly breakeven-protected.
- Price reaches 1030.2 (another +1% from the new high). SL moves up another 0.5% → ~1004.9.
- Each further +1% high moves SL up another 0.5%, up to 10 total moves.
- Exit. Price falls back to the current SL → position closed.
Capital
| Field | Notes |
|---|---|
| Capital (Rs) | The money allocated per symbol. Quantity is derived from capital and the instrument's price/lot size. Must be > 0 to save. |
| Lots mode | Visible in the UI but currently disabled — capital mode is the supported option. |
Daily limits
Hard caps evaluated per trading day. When one is hit, the strategy stops taking trades for the day (open trades are managed to close).
| Limit | Type options | Meaning |
|---|---|---|
| Max Loss / Day | % (of capital) or Rs | Total realized loss cap for the day. |
| Max Profit / Day | % or Rs | Lock in the day once profit reaches this level. |
| Max Trade / Day | count | Maximum number of trades per day. |
Trade sessions
Entries are only allowed while the candle time falls inside one of your sessions. Add multiple windows with the + button (e.g. trade the open and the close, skip midday).
| Exchange | Default session | Rules |
|---|---|---|
| NSE | 09:15 – 15:30 | Start must be ≥ 09:15 and end ≤ 15:30 (validated at save). |
| CRYPTO | 00:00 – 23:59 | 24/7 market; any window allowed. |
Square-off time
| Exchange | Behavior |
|---|---|
| NSE | Required (default 15:15). Any open position is force-exited at/after this time, regardless of conditions. |
| CRYPTO | Field hidden — no forced intraday square-off for the 24/7 market. |
Trade type
Currently Intraday is the only selectable trade type. Positions are intended to open and close within the session (enforced by square-off on NSE).
How exits stack up
While a trade is open, whichever fires first wins:
- Exit pattern/condition (your rules)
- Stoploss — default, initial, or trailed level
- Target
- Square-off time (NSE)
- Daily limit reached (max loss / profit / trades)