The Playbook

Your method, written as rules.

Primitives are the building blocks. Rules join them into a condition and an action. A strategy gathers your buy and sell rules, and you apply it to the positions you hold.

  1. 01PrimitivesThe building blocksgain_pct · tranche_count · w_ema_9
  2. 02RulesA condition and an actiontranche_count > 3 AND gain_pct < 10 → Sell
  3. 03StrategiesRules, gathered into a methodWeekly Stocks Management · 6 rules
01 Primitives

The building blocks.

Every rule is written from these.

Position fields

  • Computed from your tradebook and the latest prices. Read-only.
  • Gain %, tranche count, gain from the last tranche, days since the last tranche, drawdown from peak, average cost, and more.
  • Each field carries a plain description of how it is calculated.

Your settings

  • Your own numbers, held as primitives: the most any one position may take of your capital, a default stop below average cost, a gain threshold for booking profit.
  • Rules compare against them, so changing a setting changes every rule that uses it.

Indicators

  • EMA, RSI, ADX, Donchian channels, ATR, volume and more, on daily, weekly or monthly candles.
  • Your own parameters, and several variants of the same indicator side by side.
  • Each variant gets a readable name for use in rules: the 9-week EMA is w_ema_9.
Primitives · a few samples
Position fields read-only · computed from your tradebook and prices
gain_pctPosition
Gain %

(cmp − avg_cost) / avg_cost × 100. Positive in profit, negative in loss.

tranche_countPosition
Tranche count

Buy tranches in this position. Same-day buys from one broker count as one.

gain_from_last_tranche_pctPosition
Gain from last tranche %

Profit or loss against the most recent tranche’s price, not the blended average.

days_since_last_tranchePosition
Days since last tranche

Calendar days since the most recent addition. Useful for cooling-off rules.

Settings your numbers · used on the right side of a condition
max_position_pctMax position %

Cap per stock as % of capital

10%
sl_pctDefault SL %

Hard stop below average cost

8%
trim_pctGain Threshold %

Book profit when unrealised gain exceeds this

50%
Indicators your parameters · daily, weekly or monthly
WeeklyEMAExponential Moving Average of close prices
period95–200w_ema_9
WeeklyRSIRelative Strength Index (Wilder)
period142–100w_rsi_14
WeeklyDonchianHighest high and lowest low over N periods
period205–100w_donchian_20_highw_donchian_20_is_new_high
02 Rules

A condition and an action.

Conditions built from primitives. Actions limited to add, trim or sell.

The rule editor
Edit Rule
Rule nameProtect gains after 3 tranches
EnabledON
Edit as:VisualTextJSON
ANDOR
Tranche count>3
Gain %<10
+ Add condition
Action
TypeSELL
Reason (shown in dashboard)Gains below 10% after three tranches
CancelSave Rule
The same rule, as texttranche_count > 3 AND gain_pct < 10
Where each action sits in a strategy
EntryAdd
ExitTrimSell
GuardrailTrimSell

Conditions

  • A primitive compared with a number, another primitive, or an expression.
  • Several conditions joined with AND or OR.
  • Three ways to edit: a visual builder, plain text, or JSON.

Actions

  • Add, trim or sell, with a reason shown on your dashboard.
  • Additions under entry; trims and sells under exit or guardrail.
  • A name for every rule, and a switch to turn it on or off.
03 Strategies

Rules, gathered into a method.

Entry rules and exit rules, in one place, with a name and a one-line summary.

Your strategies
4 stocks
Weekly Stocks Management

Weekly trend following with progressive pyramiding.

SellHard stop — loss > 8% on only tranche
Sell9 Week EMA getting breached
TrimBook Profit on Week RSI/ADX
AddWeekly Momentum Trigger
+ 2 more rules
⎘ forked2 stocks
Monthly Momentum Pyramid

Adds on new monthly highs, exits on a 20-week EMA breach.

SellHard stop — 6% below average
Sell20 Week EMA getting breached
AddNew monthly high
Swing with Tight Stops

Daily cadence, two tranches, hard stop at 5%.

SellHard stop — 5% below average
TrimGain above 15%
AddDaily breakout on volume

Applied stock by stock

Each position shows the action its rules call for.

See the actions

Start anywhere

From your own rules, or from a strategy another member has shared.

Test first

A strategy on the chart, before you apply it.

See the backtest
04 Actions

The action on every position

Strategy applied to your chosen stocks converts to actions.

Current positions
SymbolTranchesPriceP&L %Strategy SLNext T@Action
CDSLWeekly Stocks ManagementT1 › T2 (2)1,723.25+22.0%1,560.001,712.00Add
+ Weekly Momentum Trigger
KAYNESWeekly Stocks ManagementT1 › T3 (3)6,386.00+55.0%5,840.006,520.00Trim
IRCTCWeekly Stocks ManagementT1 (1)698.30−14.0%—877.00Sell
HAVELLSMonthly Momentum PyramidT1 › T2 (2)1,747.20+12.0%1,602.001,820.00Hold
TITANMonthly Momentum PyramidT1 (1)3,615.00+6.0%3,205.403,700.00Hold
DIXON—T1 (1)16,756.00+18.0%——No strategy
Hold

No rule calls for a change. The strategy's default.

Add

An entry rule is met.

Trim

An exit or guardrail rule calls for booking part of the position.

Sell

An exit rule, a guardrail or your own stop loss calls for closing the position.

  • See in positions table: See the actions with the reason next to your positions in the current positions table.

Tradestory does not place trades. Every action comes from a rule you wrote or adopted, applied to a position you hold.

Tradestory forms no view on any stock. It applies your own rules to the positions you already hold.

“I can build my own playbook for entries, additions, exits, holds and trims, and see the action when my predefined conditions are met. The flexibility to customize, test and backtest my own strategies has made my investing process much more structured and efficient.”
Jeegnesh Soni
Early access

Build a more disciplined practice from the trades you already make.

Tradestory is currently available by invitation.

Request access