1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.
Source Code
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
alpyvix enters long positions when the oscillator enters lower percentile zones and short positions in upper percentile zones, with optional filters for a 200 EMA trend, adaptive ADX regime, volume spikes, and RSI. Exits use adaptive ATR-based stop-loss and take-profit levels scaled by rolling volatility rank. The strategy operates as an overlay directly on the price chart.
Dynamic WaveTrend entry thresholds based on rolling percentiles
Adaptive ATR stop loss and take profit scaling
Optional adaptive ADX trend regime filter
Configurable EMA, volume, and RSI confirmation filters
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
From Year
int
2023
fromYear
From Month
int
10
fromMonth
From Day
int
1
fromDay
Thru Year
int
3000
thruYear
Thru Month
int
1
thruMonth
Thru Day
int
1
thruDay
Channel Length
int
10
n1
Average Length
int
21
n2
WT2 Smoothing
int
4
wt_smooth
Overbought L1
float
60
obL1
Overbought L2
float
53
obL2
Oversold L2
float
-53
osL2
Show all 34 settings
Setting
Type
Default
Variable
Oversold L1
float
-60
osL1
Percentile Lookback (bars)
int
100
adapt_lookback
Long Entry Percentile (0-49)
float
20
long_pct
Short Entry Percentile (51-99)
float
80
short_pct
Enable EMA Trend Filter
bool
false
use_trend_filter
Trend EMA Length
int
200
trend_ema_len
Enable Adaptive ADX Filter
bool
false
use_adx
ADX Length
int
14
adx_len
ADX Median Lookback
int
50
adx_lookback
Enable Volume Filter
bool
false
use_vol_filter
Volume MA Length
int
20
vol_ma_len
Volume Spike Multiplier
float
1.2
vol_mult
Enable RSI Filter
bool
false
use_rsi_filter
RSI Length
int
14
rsi_len
RSI Long Max (< value)
int
50
rsi_long_max
RSI Short Min (> value)
int
50
rsi_short_min
ATR Length
int
14
atr_len
Base SL Multiplier (ATR)
float
1.5
atr_sl_mult
Base TP Multiplier (ATR)
float
3.0
atr_tp_mult
ATR Rank Lookback
int
50
atr_lookback
Risk % Per Trade
float
1.0
risk_pct
Max Drawdown Circuit-Breaker (%)
float
15.0
max_dd_pct
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 strategy overlays a trend moving average and Supertrend bands directly on the price chart while calculating Stochastic RSI values internally. Long positions trigger when price exceeds the moving average, Supertrend signals bullish momentum, and the StochR
This trading strategy combines three Exponential Moving Averages (8, 14, and 50 periods by default) with Stochastic RSI and Average True Range (ATR). It enters a long position when EMA 1 is above EMA 2, EMA 2 is above EMA 3, and the Stochastic RSI %K line cros
This strategy combines exponential moving averages (EMA 9, 21, 50), RSI, MACD, and Supertrend indicators to enter long positions. It triggers trades using six dynamic setups based on momentum breakouts, EMA crossovers, and pullbacks. Position sizing is compute
This strategy identifies trend reversals through market structure changes (CHoCH) filtered by MACD momentum. It initiates long positions on bullish structure breaks when MACD is positive and above its signal line, and short positions on bearish breaks when MAC
CombinedBinHAndClucV6 is a trading strategy based on the popular BinHV45 and ClucMay72018 algorithms. It calculates dual Bollinger Bands, Exponential Moving Averages, Relative Strength Index, Average True Range, and volume metrics across primary and one-hour h
LuxAlgo Hybrid Gold Scalper is a price-chart strategy aimed at gold. It stacks a fast, slow, trend and 200-period bias EMA to mark trend direction, then filters strength with RSI, ADX and an intraday VWAP. Swing highs and lows are marked from pivot length. Set