Position Size Calculator processes user-specified account balance, risk percentage, entry price, stop loss, and profit target to compute the position size, risk percentage, and risk-to-reward ratio. The indicator draws shaded target and stop loss zones directly on the price chart alongside customizable labels displaying the complete trade setup. Users can adjust display offsets, text colors, and label visibility.
Position size calculation from account balance and risk percentage
Risk-to-reward ratio computation
Visual target and stop loss shaded chart zones
Customizable on-chart trade summary and level labels
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Account Balance
float
1000.00
accbalance
Risk Percentage
float
2.0
riskper
Entry
float
0.0
entry
Stop Loss
float
0.0
sl
Target Price
float
0.0
tp
Show Position Size Label
bool
true
showscr
Position Size Label x-axis
int
30
posscrX
Text Color
color
color.white
col
Show R/R box labels
bool
true
showLabel
R/R Label x-axis
int
10
poslblX
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
The Adaptive Laguerre Filter calculates a smoothed, dynamically adjusted trendline plotted directly on the main price chart. It dynamically adjusts its damping factor (alpha) based on recent price range variations and median percentile calculations over a spec
The indicator plots ICT displacement candles on the price chart and can switch to retracement scanning. Displacement requires a move larger than a set share of the 14-bar average high-low range, lasting at least a chosen number of bars, with optional close, pr
This indicator classifies each bar as bull, bear, or sideways from a rolling log return compared with adjustable percentage thresholds. It paints a regime ribbon on the price chart, shows a current-regime banner, and labels state changes after a minimum hold.
This script plots three moving averages on the price chart: a fast EMA or SMA with 10 periods, a slow EMA or SMA with 20 periods, and a trend EMA or SMA with 100 periods. It signals trend changes by drawing a white cross when the fast moving average crosses ab
This indicator calculates an ATR trailing stop line derived from the highest high minus an average true range multiple over a specified lookback period. It plots the trailing stop line directly on the price chart and colors price bars based on whether the clos
Calculates swing highs and swing lows on the price chart using pivot high and pivot low detection over a specified length. It places labels above pivot highs and below pivot lows to highlight key structural swing points. The indicator measures and displays the