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 indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
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 Buy and Sell Signals plots buy and sell signal labels based on momentum, volatility, and trend conditions evaluated across selectable candle representations. Traders can filter signals through directional moving average alignment, Z-score distance thresholds, and moving average contact rules, as well as a secondary multi-timeframe moving average. It also renders visual trading session boxes with daylight saving adjustments. As an indicator, execution and trade management are manual.
Neural network signal grading engine
Directional and Z-score moving average filters
Multi-timeframe secondary moving average confirmation
Session highlight boxes with daylight saving time adjustment
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Enable Scalp Helper Signals
bool
true
enable_scalp_helper
Signal Candle Type
string
Candlesticks
signalCandleType
Signal Trigger Sensitivity
float
3.0
signal_trigger_mult
Stop Loss ATR Multiplier
float
1.5
stop_atr_mult
MA Directional Filter
string
Both
ma_directional_filter
Enable Trend Following Distance Filter
bool
false
enable_trend_distance_filter
Trend Distance Z-Score
float
1.0
trend_distance_zscore
Enable Counter Trend Distance Filter
bool
false
enable_counter_distance_filter
Counter Trend Distance Z-Score
float
1.0
counter_distance_zscore
Enable MA Contact Filter
bool
false
enable_ma_contact_filter
MA Contact Type
string
Either
ma_contact_type
MA Length
int
50
ma_length
Show all 40 settings
Setting
Type
Default
Variable
MA Type
string
KAMA
ma_type
ALMA Offset
float
0.85
alma_offset
ALMA Sigma
float
6.0
alma_sigma
KAMA Fast Length
int
2
kama_fast_length
KAMA Slow Length
int
30
kama_slow_length
Show Secondary MA
bool
true
enable_secondary_ma
Secondary MA Timeframe
string
Current
secondary_ma_timeframe
Secondary MA Length
int
50
secondary_ma_length
Secondary MA Type
string
SMA
secondary_ma_type
Secondary ALMA Offset
float
0.85
secondary_alma_offset
Secondary ALMA Sigma
float
6.0
secondary_alma_sigma
Secondary KAMA Fast Length
int
2
secondary_kama_fast_length
Secondary KAMA Slow Length
int
30
secondary_kama_slow_length
Show Trading Sessions
bool
true
show_sessions
Sydney DST
bool
false
sydney_dst
London DST
bool
true
london_dst
New York DST
bool
true
newyork_dst
Sydney Session Signals
bool
true
enable_sydney_signals
Tokyo Session Signals
bool
true
enable_tokyo_signals
London Session Signals
bool
true
enable_london_signals
New York Session Signals
bool
true
enable_newyork_signals
Sydney-Tokyo Overlap Signals
bool
true
enable_sydney_tokyo_overlap
London-New York Overlap Signals
bool
true
enable_london_newyork_overlap
Show A+ Signals
bool
true
show_grade_a_plus
Show A Signals
bool
true
show_grade_a
Show B Signals
bool
true
show_grade_b
Show C Signals
bool
true
show_grade_c
Show D Signals
bool
true
show_grade_d
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 scans NSE-listed stocks for momentum signals using Supertrend, multiple EMAs, MACD, and stochastic oscillator. It supports continuous or flip signal modes and displays matching setups in a customizable table at the bottom left of the chart. The
Donald SPX - Options Trading is an overlay indicator designed for intraday SPX analysis. It plots a 200-period Weighted Moving Average (WMA) on the price chart while evaluating multi-timeframe market structure across Daily, 15-minute, 5-minute, and 2-minute ba
The Midnight VWAP indicator calculates and overlays two distinct Volume Weighted Average Price (VWAP) lines on the price chart based on customizable session timeframes. It tracks an overnight or pre-market session alongside regular trading hours, resetting cal
This indicator calculates a locally weighted regression curve alongside a standard linear regression line to detect directional price shifts. It identifies potential buy signals when the weighted line crosses below the linear regression while falling over a de
This indicator calculates a trend direction and smoothed moving average using a k-nearest neighbours (k-NN) classification algorithm directly on the main price chart. Users can select input price types, target values, neighborhood size, and smoothing periods.
This indicator estimates gamma exposure levels and intraday context for index instruments like SPY and ES. It calculates VWAP with standard deviation bands as a gamma flip proxy, highlighting market regimes through background colors. It plots prior day high, l