Skip to content

Tools

Check the arithmetic of a trade plan.

Free calculators for position size, reward-to-risk after costs, options expiry payoff and Heikin-Ashi conversion. Each shows its formula and assumptions.

Position-size calculator

Works out the largest whole quantity whose loss at the stop stays within a chosen share of capital.

Your own choice; up to two decimals.
Below entry for long, above for short.
Direction
Long (stop below entry)
Risk budget
₹5,000.00
Risk per unit
₹10.00
Quantity
500 units (500 lots)
Limited by
Risk budget
Loss at stop
₹5,000.00 (1.00% of capital)
Position value
₹2,50,000.00
Formula and assumptions

Formula

  1. Risk budget = floor(capital × risk % ÷ 100), in paise.
  2. Risk per unit = |entry − stop|.
  3. Quantity by risk = floor(risk budget ÷ risk per unit), rounded down to a whole lot.
  4. Quantity by capital = floor(capital ÷ entry), rounded down to a whole lot (no leverage).
  5. Quantity = the smaller of the two. Rupee risk at the stop = quantity × risk per unit.

Assumptions

  • The stop is filled exactly at the stop price. Real exits can be worse (gaps, slippage, circuit limits).
  • Brokerage, taxes, exchange charges and other costs are not included.
  • No margin or leverage is assumed: the position value never exceeds the capital entered.
  • Lot size is whatever you enter; AlgoStok does not look up exchange lot sizes here.

No recommendation. Educational calculation only. It is not investment advice or a recommendation to buy, sell or hold anything. Calculated in your browser from the values you enter. No market data is fetched, so nothing here is live or current.

Reward-to-risk and breakeven after costs

Compares the planned gain at the target with the planned loss at the stop, before and after the costs you enter.

Your estimate; charged on entry and exit.
Your estimate; 0% to 5%.
Direction
Long
Gross risk / reward
₹500.00 / ₹1,000.00
Gross reward-to-risk
2.00 : 1
Costs at target / at stop
₹61.00 / ₹59.50
Net risk / reward
₹559.50 / ₹939.00
Net reward-to-risk
1.68 : 1
Breakeven exit
₹100.61
Formula and assumptions

Formula

  1. Gross risk = quantity × |entry − stop|; gross reward = quantity × |target − entry|.
  2. Round-trip cost at an exit price = 2 × fixed cost per order + ceil(cost % × (entry + exit) × quantity ÷ 100).
  3. Net reward = gross reward − cost at target; net risk = gross risk + cost at stop.
  4. Reward-to-risk = reward ÷ risk, shown to two decimals.
  5. Breakeven exit = the first whole-paise exit price where (exit − entry) × quantity − cost ≥ 0 (long), or (entry − exit) × quantity − cost ≥ 0 (short).

Assumptions

  • Costs are only the fixed and percentage amounts you enter. Actual brokerage, STT, exchange, SEBI, stamp duty and GST charges vary by broker, segment and order; check your broker's contract note.
  • Percentage costs are charged on both the entry and the exit turnover. Percentage cost amounts are rounded up to the paise.
  • Fills happen exactly at the prices entered; slippage and gaps are not modelled.
  • Reward-to-risk describes the arithmetic of your plan only. It says nothing about how likely the target or stop is.

No recommendation. Educational calculation only. It is not investment advice or a recommendation to buy, sell or hold anything. Calculated in your browser from the values you enter. No market data is fetched, so nothing here is live or current.

Options expiry payoff

Expiry profit or loss for up to 4 legs with one common expiry, using premiums you enter.

Legs
Net premium
₹40.00 debit
Maximum profit at expiry
₹60.00 at ₹110.00
Maximum loss at expiry
−₹40.00 at ₹0.00
Breakevens at expiry
₹104.00
Total profit or loss at expiry by underlying price
Underlying at expiryTotal P&L
₹50.00−₹40.00
₹52.88−₹40.00
₹55.76−₹40.00
₹58.64−₹40.00
₹61.52−₹40.00
₹64.40−₹40.00
₹67.28−₹40.00
₹70.16−₹40.00
₹73.04−₹40.00
₹75.92−₹40.00
₹78.80−₹40.00
₹81.68−₹40.00
₹84.56−₹40.00
₹87.44−₹40.00
₹90.32−₹40.00
₹93.20−₹40.00
₹96.08−₹40.00
₹98.96−₹40.00
₹100.00−₹40.00
₹101.84−₹21.60
₹104.72₹7.20
₹107.60₹36.00
₹110.00₹60.00
₹110.48₹60.00
₹113.36₹60.00
₹116.24₹60.00
₹119.12₹60.00
₹122.00₹60.00
₹124.88₹60.00
₹127.76₹60.00
₹130.64₹60.00
₹133.52₹60.00
₹136.40₹60.00
₹139.28₹60.00
₹142.16₹60.00
₹145.04₹60.00
₹147.92₹60.00
₹150.80₹60.00
₹153.68₹60.00
₹156.56₹60.00
₹159.44₹60.00
₹162.32₹60.00
₹165.00₹60.00
Formula and assumptions

Formula

  1. Call value at expiry = max(0, S − K); put value at expiry = max(0, K − S); future value = S.
  2. Leg P&L = (value at expiry − premium) × quantity for BUY, and (premium − value at expiry) × quantity for SELL.
  3. Total P&L = sum of leg P&L. Breakevens are where the total crosses zero, rounded to the nearest paise.
  4. Maximum profit or loss is unbounded when the payoff keeps rising or falling above the highest strike.

Assumptions

  • Payoff at a single common expiry only: no time value, implied volatility or Greeks before expiry.
  • Premiums and the future entry price are what you type. AlgoStok does not fetch option chains or prices here.
  • Margin, brokerage, taxes, early exercise, settlement-price methods and slippage are not included.
  • Quantity means units (lots × lot size). Check the current lot size with the exchange or your broker.

No recommendation. Educational calculation only. It is not investment advice or a recommendation to buy, sell or hold anything. Calculated in your browser from the values you enter. No market data is fetched, so nothing here is live or current.

Heikin-Ashi converter

Paste standard OHLC rows (label, open, high, low, close), oldest first, to see the matching Heikin-Ashi candles.

Up to 2,000 rows. A header line is optional. Nothing is uploaded.
Heikin-Ashi candles (3 rows)
RowHA openHA highHA lowHA closeCandle
day-1102.50110.0095.00102.50Flat
day-2102.50112.00102.50107.75Up
day-3105.13111.00101.00106.25Up
Formula and assumptions

Formula

  1. HA close = (open + high + low + close) ÷ 4.
  2. HA open = (previous HA open + previous HA close) ÷ 2; for the first row, (open + close) ÷ 2.
  3. HA high = max(high, HA open, HA close); HA low = min(low, HA open, HA close).

Assumptions

  • Rows must be in time order, oldest first. The first row has no earlier Heikin-Ashi candle, so early rows can differ from a chart that has more history.
  • Results are rounded to two decimals for display and export; the calculation itself uses unrounded values.
  • Heikin-Ashi prices are averages, not traded prices. Orders and accounting must use actual broker prices.

No recommendation. Educational calculation only. It is not investment advice or a recommendation to buy, sell or hold anything. Calculated in your browser from the values you enter. No market data is fetched, so nothing here is live or current.

Screeners

Unavailable. Stock and options screeners need licensed exchange instrument and market data, which AlgoStok does not currently provide on public pages. No sample or delayed results are shown in their place.