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

DirectionDefault SL level
BuyThe entry candle's Low
SellThe 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

FieldOptionsMeaning
ValuenumberDistance from entry price.
Type% / ptsPercentage of entry price, or absolute points.
# Example: Buy at 61101 with Initial SL 1%
SL price = 61101 × (1 − 0.01) = 60490

Target

FieldOptionsMeaning
ValuenumberProfit distance from entry.
Type% / ptsPercentage 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):

FieldMeaning
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 MovesMaximum 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:

  1. Entry. SL sits at 990 (1% below 1000).
  2. Price reaches 1020 (+2% = Initial Move Stock). First trail: SL moves up 1% → 999.9. The trade is now nearly breakeven-protected.
  3. Price reaches 1030.2 (another +1% from the new high). SL moves up another 0.5% → ~1004.9.
  4. Each further +1% high moves SL up another 0.5%, up to 10 total moves.
  5. Exit. Price falls back to the current SL → position closed.
Trailing only exits after it has moved The trailing stop becomes an active exit only after the first trail step has occurred. Before that, your initial/default SL is the protection.
For Sell strategies Everything mirrors: price must move down by Move Stock % (new lows), and the SL trails downward above price.

Capital

FieldNotes
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 modeVisible 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).

LimitType optionsMeaning
Max Loss / Day% (of capital) or RsTotal realized loss cap for the day.
Max Profit / Day% or RsLock in the day once profit reaches this level.
Max Trade / DaycountMaximum number of trades per day.
Set all three Even a great entry signal has bad days. A loss cap (e.g. 2–5% of capital), a profit lock, and a trade cap (e.g. 2–5) keep one session from undoing a week.

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).

ExchangeDefault sessionRules
NSE09:15 – 15:30Start must be ≥ 09:15 and end ≤ 15:30 (validated at save).
CRYPTO00:00 – 23:5924/7 market; any window allowed.

Square-off time

ExchangeBehavior
NSERequired (default 15:15). Any open position is force-exited at/after this time, regardless of conditions.
CRYPTOField 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:

  1. Exit pattern/condition (your rules)
  2. Stoploss — default, initial, or trailed level
  3. Target
  4. Square-off time (NSE)
  5. Daily limit reached (max loss / profit / trades)