Обновлено

cephxs / Risk Calculator [Pro +]

3 765
Risk Calculator [Pro +]
Type your stop in ticks and the dollars you accept to lose. The table tells you how many contracts fit, and what those contracts actually risk.


WHAT IT DOES
Position sizing is the one calculation that decides whether a losing streak is survivable, and it is the one most people do in their head, wrong, on the way into a trade.

This is a manual sizer. Two inputs, one small table, nothing else on your chart. No signals, no boxes, no arrows, no alerts. It reads the symbol you are on, converts your stop from ticks into dollars, and reports how many contracts fit inside the risk you set.

It reports both the standard contract and its micro sibling, side by side, every time. There is no micro toggle to remember, because the choice between one mini and twelve micros is a trading decision, not a setting. This tool is calibrated specifically to Futures contracts, Updates will follow soon for support for Forex CFD Lots and instructions on how to understand them and speed up your trading for cross platform trading (externl execution and TradingView charting for example.)

HOW IT WORKS
Three ideas, and the third is the one that gets sizers wrong.

1. Ticks, not points. You think in ticks, because that is what your stop is measured in on the DOM. Contract specifications are quoted per point. The script converts between them using the symbol's own tick size, so a 50-tick stop on RTY1! (0.1 tick) and a 50-tick stop on ES1! (0.25 tick) are correctly priced as different distances instead of being treated as the same number.

2. A contract pair, not a contract. The script carries a lookup of index, metal, energy and FX futures. Each entry stores the dollar value of a one-point move for the standard contract and for its micro. The same pair resolves whichever side of it you are charting: load NQ1! or load MNQ1! and you get the same two columns, in the same order. Micro tickers are matched before their standard root, so MNQ1! is never mistaken for the NQ1! entry.

3. Floor division, and no rounding up. Contract counts come from your risk budget divided by the dollar cost of one contract at your stop, rounded down. A partial contract is not a contract. This means the reported figures are never the budget read back at you — they are what the position genuinely risks, which is at or under the budget by the size of the remainder.

HOW TO READ THE TABLE
Four stacked rows. The example below is a 25-tick stop with a $400 budget on ES1! (Same as the publication Screenshot):

[code]
ES1!
25 ticks
$313 / $375
1 mini / 12 micros
[/code]

  • Row 1 — Asset. The symbol the numbers were computed for. Confirms the script resolved what you think it resolved.
  • Row 2 — Stop. Your stop, as typed.
  • Row 3 — Risk. What each position actually loses if the stop is hit.
  • Row 4 — Size. What to place.


Rows 3 and 4 are a pair and read column for column. Standard contract on the left, micro on the right. $313 is what that 1 mini risks. $375 is what those 12 micros risk. Both sit under the $400 budget. Neither is the budget itself.

The colors are the warnings.
  • Grey — normal. Both sides are tradeable.
  • Amber — one standard contract already exceeds your budget. Its count reads 0. Only the micro column is tradeable.
  • Red — even one micro exceeds your budget. Row 4 reads "Risk too big", and row 3 switches to showing what one of each contract would cost, so you can see how far over you are.


Every cell carries a tooltip with the full arithmetic: ticks, dollars per tick, dollars per contract, and the budget the counts were divided by. Hover it when a number surprises you.

HOW TO USE
  1. Load it on the futures contract you trade.
  2. Set Preferred Risk once. This is your per-trade loss limit in dollars, and it should not change trade to trade.
  3. Before each entry, set Stop Size to where your stop actually goes — below the swing, past the level, wherever your method puts it. Do not pick the stop that makes the size convenient.
  4. Read row 4 and place that size.
  5. If the block turns red, the trade is not untradeable — the stop is too wide for your account at this risk. Wait for a tighter structure rather than moving the stop in.


The order matters. Risk is fixed, stop is dictated by the chart, and size is the output of those two. Sizing first and then hunting for a stop that fits is the habit this table exists to break.

INPUTS
  • Stop Size (ticks): 25. Distance to your stop, in ticks. Drives everything. Fully customizable.
  • Preferred Risk (USD): 400. Maximum dollars you accept to lose. Both contract counts stay at or below it. Add a small leeway $50 if you're willing to get even closer to your preferred risk.
  • Table Position: Bottom Left. Any of the nine pane anchors.
  • Layout: Values Only, or Labeled (adds a dimmed caption column).
  • Text Align: Left, Center, Right. Applies to the value column.
  • Edge Padding (rows): 2. Blank rows between the block and the pane edge it hugs. Inert on the three Middle positions, which have no edge to lift off.
  • Text / Warn / Error colors: the three states above, in that order.
  • Table Text Size: Standard. Compact through Extra Large, or Auto.


The table draws as plain text with no background and no border, so it sits on the chart without covering price.

SYMBOLS COVERED
Indices: NQ1! · MNQ1! · ES1! · MES1! · YM1! · MYM1! · RTY1! · M2K1!
Metals: GC1! · MGC1! · SI1! · SIL1! · HG1! · MHG1!
Energy: CL1! · MCL1! · RB1! · HO1!
FX: 6E1! · M6E1! · 6B1! · M6B1! · 6C1! ·

RB1! and HO1! have no micro, so they report a single column. Every other symbol reports the pair.

LIMITS — read these
  • It does not know your account. There is no balance, no margin check, no daily loss limit. If your broker's day-trade margin will not carry 12 micros, the table will still say 12. That number is what your risk allows, not what your buying power allows.
  • It does not know your position. It is a pre-trade calculator, not a position tracker. It never reads open orders or fills.
  • Commissions and fees are excluded. Twelve micros cost meaningfully more in round-turn fees than one mini for the same risk. That gap is real and this table does not show it.
  • Off-list symbols degrade, they do not fail. On anything outside the list above, the script falls back to the symbol's own point value, finds no sibling, and collapses to a single column labeled in plain "contracts". Stocks, crypto and forex spot will produce a number this way. Confirm it against your broker before you trade it.
  • Futures-first by design. The tick-to-dollar chain assumes a contract with a fixed point value. It is not a share sizer.
  • No performance claim is made or implied. Correct sizing controls the size of a loss. It does not make a losing setup profitable.


FAQ
why does it show both minis and micros instead of picking one?
Because the right answer depends on what you are doing, not on the arithmetic. Twelve micros let you scale out in twelve pieces and cost more in fees. One mini is cheaper and all-or-nothing. The table gives you both and stays out of the decision.

why is the risk figure lower than my preferred risk?
Rounding down. If one contract costs $400 and your budget is $500, one contract fits and $100 goes unused, because 1.25 contracts do not exist. The figure shown is the real risk of the real position.

it says "Risk too big" — is something broken?
No. One micro at your current stop costs more than your entire budget. Either the stop is wider than your account can carry at that risk, or the risk input is set low. Row 3 shows what one of each contract would cost, so you can see the gap.

does it repaint?
There is nothing to repaint. The table is computed on the last bar from your two inputs and the symbol's specification. It uses no history, no higher timeframe requests and no future data.

my broker's contract value differs from the table.
Trust your broker. Contract specifications change and exchanges list variants. The tooltip shows the exact dollars-per-tick used, so you can compare in one look.

DISCLAIMER
This script is a calculator. It gives no trade signals and makes no forecast. Contract specifications are hardcoded and can become out of date, and off-list symbols use a fallback value — always confirm the numbers against your broker before you place an order. Trading futures involves substantial risk of loss and is not suitable for every investor. Nothing here is financial advice.


Open source under the Mozilla Public License 2.0. Read the code, fork it, change the contract table to suit your instruments.
Информация о релизе
dropped the calc count even lower to 1 to maximize performance.
no calculations needed whatsoever. it's all constants and simple arithmetic.

Отказ от ответственности

Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.