An indicator in a separate pane that simulates trades from a chosen signal source (MACD with RSI, breakout, mean reversion or an external series), each with an ATR stop, an R-multiple target and a time exit.
KLDS v2 Kelly Position Sizer collects the results over a window and converts them into a fractional Kelly risk percentage, using a lower confidence bound on the hit rate and a cap, then into position units for a given equity. It is a sizing aid, not a trading system.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Signal source
string
MACD+RSI
sigMode
External series (>0 long, <0 short; fires on 0-cross)
source
close
extSrc
Stop (ATR mult)
float
1.5
stopATR
Target (R mult)
float
2.0
targetR
Time exit (bars)
int
20
maxBars
Max simultaneous simulated trades
int
5
maxOpen
Results window (trades)
int
40
sampleN
Min trades for sizing
int
15
minN
Kelly fraction
float
0.5
kFrac
Max risk per trade (%)
float
5.0
kCap
Use Wilson lower bound for win rate
bool
true
useWilson
Account equity
float
10000
equity
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.
This indicator calculates the distribution of close-to-close percentage changes using rate of change on closing prices. It bins percentage changes into intervals of 0.25 percent increments from negative to positive values and plots a normalized cumulative hist
This indicator plots a Supertrend-based trend-following setup in a separate pane and skips conditions it treats as a sideways market. A volatility range is built from an ATR value, with RMA, SMA, EMA, or WMA smoothing, or from a fixed point distance. Optional
This indicator plots candle range and open-to-close movement as percentages in a separate pane. Range is the high-low difference divided by the low, and change is the close-open difference divided by the open. Both series draw as columns. Teal columns show ran
The Mojito v3 Strategy indicator evaluates volatility term structure by calculating the ratio between front-month and second-month VIX futures contracts. It smooths this ratio using a configurable median filter and compares the result against user-defined uppe
Calculates dynamic modeling values by applying a mathematical logistic differential equation to price change over a specified lookback length. It measures price momentum relative to the recent high-low price range. The script plots positive and negative logist
This indicator detects a Bollinger Band squeeze when the bands sit inside Keltner Channels, marking low volatility. It plots red dots during a squeeze and green dots when the bands are outside, in a separate pane. An optional histogram shows momentum as the cl