A Pine version 4 strategy that scores long and short setups by adding weighted votes from many indicator conditions: EMA trend, SuperTrend, Parabolic SAR, Hull moving average, RSI, MACD, WaveTrend, stochastic, Bollinger Bands and ATR.
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
Neural Network trades when the score reaches a strong or weak threshold. Options include trend-only trading, alternating signals and long or short only. The weights are manual settings, not learned. A stop loss percentage is only a warning.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Only Tade with Trend
bool
false
tradetrendoption
Trend EMA Length
int
200
len111
Alternate Signals
bool
true
alternatesignals
Long Positions
bool
true
longpositions
Short Positions
bool
true
shortpositions
Stop Loss Warning (%)
float
-0.9
stoplosspercent
Required Strong LONG Score
int
10
stronglongscore
Required Strong SHORT Score
int
10
strongshortscore
Required Weak LONG Score
int
8
weaklongscore
Required Weak SHORT Score
int
8
weakshortscore
EMA Trend Direction Importance
int
2
emadirectionimportance
EMA Pressure Importance
int
0
emapushpullimportance
Show all 40 settings
Setting
Type
Default
Variable
SuperTrend Direction Importance
int
1
supertrenddirimportance
SuperTrend Reversal Importance
int
1
supertrendrevimportance
Parabolic SAR Direction Importance
int
1
psardirimportance
Parabolic SAR Reversal Importance
int
1
psarrevimportance
HMA Trend Direction Importance
int
1
hmacloseposimportance
HMA Pivot Importance
int
2
hmapivotimportance
RSI Divergence Importance
int
2
rsidivimportance
RSI Level Importance
int
2
rsilevelimportance
RSI Cross 50-Line Importance
int
1
rsidirectionimportance
MACD Divergence Importance
int
1
macddivimportance
MACD Histogram Pivot Importance
int
1
histpivotimportance
MACD Cross Signal Importance
int
1
macdcrosssignalimportance
WaveTrend Divergence Importance
int
0
wtdivimportance
WaveTrend Cross Signal Importance
int
0
wtcrosssignalimportance
Stochastic Divergence Importance
int
3
sdivimportance
Stoch Cross Signal Importance
int
1
scrosssignalimportance
BollingerBands Contact Importance
int
0
bbcontimportance
ATR Reversal Importance
int
0
atrrevimportance
RVI Position Importance
int
0
rviposimportance
RVI Divergence Importance
int
0
rvidivimportance
Support/Resistance Cross Importance
int
0
srcrossimportance
OBV Divergence Importance
int
0
obvdivimportance
CMF Cross 50-Line Importance
int
3
cmfcrossimportance
CMF Level Importance
int
0
cmflevimportance
VWAP Cross HMA Importance
int
3
vwapcrossimportance
VWAP Trend Importance
int
0
vwaptrendimportance
Engulfing Candle Importance
int
2
engulfingcandleimportance
Use BUY Alert
bool
true
usebuyalert
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 executes long positions by combining a 200-period EMA trend filter, Stochastic RSI oversold crosses, and Williams Alligator retracements, supplemented by RSI divergence detection. It triggers long entries when the price trades above the 200 EMA w
This strategy draws on the price chart and manages long and short entries around pivot trendlines. It filters signals with three configurable moving averages, Stochastic RSI, a higher-timeframe Stochastic RSI, and optional RSI divergence. A session window can
This strategy plots a range filter and high and low target bands on the price chart, and colors bars from filter direction. Inputs cover a backtest date window, WaveTrend Cipher B channel and average lengths, overbought and oversold levels, divergence threshol
The TQQQ MA+TSI strategy executes trades based on triple simple moving average alignment combined with True Strength Index (TSI) divergence or momentum filters. Designed primarily for intraday stock trading, it evaluates price accumulation across fast, mid, an
A Pine v4 strategy drawn on the price chart that combines an Ehlers Stochastic CG oscillator, the Williams Alligator with fractals, and divergence detection across several oscillators to produce long and short entries. Its parameters are hard-coded rather than
The TN_CMO_v26 strategy calculates the Chande Momentum Oscillator and applies causal divergence filters against price action within a trend regime defined by a 200-bar EMA. It generates long entries on bullish divergence or CMO crossing above negative extreme