PROTECTED SOURCE SCRIPT

Trade Size Calculator By Skapez

33
Trade Size Calculator By Skapez — ARM it, Drag & Trade!

A simple, position-sizing calculator for easy trader sizing.

It plots Entry / Stop / TP lines, sizes your trade to a fixed % risk (e.g., 2%), calculates leverage, and shows clean labels (Risk $, TP $, Position $, Leverage ×). You can ARM a setup, drag the lines to fine-tune, and (optionally) trigger alerts for webhooks.

What it does:

Fixed-fractional risk: sizes position so SL equals your chosen % of account (e.g., 2%).

Leverage cap & lot rounding: respects your max leverage and exchange lot step.

Drag-to-edit: move Entry/Stop; TP and sizing update automatically.

Swing-stop helper (optional): snap SL to recent swing low/high or nearest pivot. (Auto stop loss finder)

Valid-until window: auto-expires stale setups (e.g., after 120 minutes).

Alerts-ready: add your own JSON in the alert to send to a bot/webhook.

Quick start (60 seconds)

Add to chart and open Settings.

In Risk, set:
Account Balance (USD) and Risk % (e.g., 2.0).
Side (Long/Short).

In Levels:
Put an Entry price (or leave 0 to use current price when you ARM).
Choose Stop: type it manually or toggle Swing stop helper.
Pick your Target R multiple (e.g., 3.0 for 3:1).

In Leverage, set:
Leverage Cap (e.g., 10×) and Min/Step Size (e.g., 0.001 BTC).

Toggle ARM on. Three lines appear. Drag the blue/red lines if needed; the green TP and all numbers update.

Tip: Pin the indicator to the Right Price Scale (format icon → “Pin to scale”) so everything lines up perfectly.

On-chart visuals

Blue = Entry (label shows Position $ and Leverage × to the far right).

Red = Stop (label shows Risk $).

Green = TP (label shows TP P&L $).

Works on any symbol/timeframe; prices are rounded to the symbol’s tick size.


That’s it—arm, drag, and go.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.