Indicator · Pine Script v6 · On the chart

Neural Network Buy and Sell Signals

by solskjaeralesithio

This indicator combines a neural network signal grading engine with moving average and trading session filters directly on the price chart.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code1,183
Settings40inputs
LicenceNone stated
Last update1 year ago21 Aug 2025

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

solskjaeralesithio on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

AI / machine learning, Moving averages, Sessions & time, Scalping

Markets

Any symbol

Timeframes

M1-M5, M15-H1

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Enable Scalp Helper Signalsbooltrueenable_scalp_helper
Signal Candle TypestringCandlestickssignalCandleType
Signal Trigger Sensitivityfloat3.0signal_trigger_mult
Stop Loss ATR Multiplierfloat1.5stop_atr_mult
MA Directional FilterstringBothma_directional_filter
Enable Trend Following Distance Filterboolfalseenable_trend_distance_filter
Trend Distance Z-Scorefloat1.0trend_distance_zscore
Enable Counter Trend Distance Filterboolfalseenable_counter_distance_filter
Counter Trend Distance Z-Scorefloat1.0counter_distance_zscore
Enable MA Contact Filterboolfalseenable_ma_contact_filter
MA Contact TypestringEitherma_contact_type
MA Lengthint50ma_length
Show all 40 settings
SettingTypeDefaultVariable
MA TypestringKAMAma_type
ALMA Offsetfloat0.85alma_offset
ALMA Sigmafloat6.0alma_sigma
KAMA Fast Lengthint2kama_fast_length
KAMA Slow Lengthint30kama_slow_length
Show Secondary MAbooltrueenable_secondary_ma
Secondary MA TimeframestringCurrentsecondary_ma_timeframe
Secondary MA Lengthint50secondary_ma_length
Secondary MA TypestringSMAsecondary_ma_type
Secondary ALMA Offsetfloat0.85secondary_alma_offset
Secondary ALMA Sigmafloat6.0secondary_alma_sigma
Secondary KAMA Fast Lengthint2secondary_kama_fast_length
Secondary KAMA Slow Lengthint30secondary_kama_slow_length
Show Trading Sessionsbooltrueshow_sessions
Sydney DSTboolfalsesydney_dst
London DSTbooltruelondon_dst
New York DSTbooltruenewyork_dst
Sydney Session Signalsbooltrueenable_sydney_signals
Tokyo Session Signalsbooltrueenable_tokyo_signals
London Session Signalsbooltrueenable_london_signals
New York Session Signalsbooltrueenable_newyork_signals
Sydney-Tokyo Overlap Signalsbooltrueenable_sydney_tokyo_overlap
London-New York Overlap Signalsbooltrueenable_london_newyork_overlap
Show A+ Signalsbooltrueshow_grade_a_plus
Show A Signalsbooltrueshow_grade_a
Show B Signalsbooltrueshow_grade_b
Show C Signalsbooltrueshow_grade_c
Show D Signalsbooltrueshow_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.

Similar Pine Scripts

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

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup: Vijay Thakare Option Buying Scalping Setup Scanner
257 stars

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

Indicator v5 Moving averagesTrend Repaints
Updated 6 weeks ago · None stated GitHub repository of Donald SPX - Options Trading

Midnight VWAP

by TradersPost
218 stars

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

Indicator v6 Moving averagesSessions & time
Updated 3 months ago · None stated GitHub repository of Midnight VWAP

AI Trend Navigator

by hasnocool
106 stars

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.

Indicator v5 AI / machine learningTrend
Updated 2 years ago · GPL-3.0 GitHub repository of AI Trend Navigator

Moon Dev GEX Walls & Trap

by moondevonyt
92 stars

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

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · Custom licence GitHub repository of Moon Dev GEX Walls & Trap

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers