Indicator · Pine Script v6 · On the chart

Trade Signal Indicator

by ashishgkwd· code credited to Custom Trading Signal Indicator

Trade Signal Indicator is an overlay script that combines three tools: an EMA crossover (13 and 48 by default), an adaptive trend finder channel and a Nadaraya-Watson envelope.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv6current
Lines of code495
Settings22inputs
LicenceNone stated
Last update4 months ago17 Jun 2026

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

Each can be enabled separately, and colours, deviation multiplier, bandwidth and source are adjustable. Buy and sell signals and labels are drawn on the price chart. The envelope has a repainting smoothing option that is on by default, so past envelope values and signals can change as new bars arrive.

Details

Published by

ashishgkwd on GitHub

Code credit

Custom Trading Signal Indicator, as written in the script's header

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Trend, Moving averages, Mean reversion

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)

Settings

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

SettingTypeDefaultVariable
Enable EMA Cross StrategybooltrueenableEMA
Enable Adaptive Trend FinderbooltrueenableATF
Enable Nadaraya-Watson EnvelopebooltrueenableNWE
Fast EMAint13emaFast
Slow EMAint48emaSlow
Fast EMA Colorcolorcolor.orangeemaFastColor
Slow EMA Colorcolorcolor.blueemaSlowColor
SourcesourcecloseatfSourceInput
Use Long-Term ChannelboolfalseatfPeriodMode
Deviation Multiplierfloat2.0atfDevMultiplier
Channel Colorcolorcolor.grayatfColor
Fill Transpint93atfFillTransp
Show all 22 settings
SettingTypeDefaultVariable
Line Transpint40atfLineTransp
Bandwidthfloat8.0nweBandwidth
Multiplierfloat3.0nweMultiplier
SourcesourceclosenweSource
Repainting SmoothingbooltruenweRepaint
Up Colorcolorcolor.tealnweUpColor
Down Colorcolorcolor.rednweDnColor
Show Buy SignalsbooltrueshowBuySignals
Show Sell SignalsbooltrueshowSellSignals
Show Signal LabelsbooltrueshowLabels
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

6 stars

This indicator classifies price action into four distinct market regimes: Trend, Expansion, Compression, or Mean Reversion. It determines states using a simplified Hurst exponent estimate, ADX slope thresholds, and realized volatility measurements. Based on th

Indicator v6 TrendVolatility & bands
Updated 8 weeks ago · MIT GitHub repository of Capital41 Regime Matrix v3
1 stars

This indicator plots the original simple moving average, a symmetric moving average calculated from the highest and lowest moving averages over the window length, and a dynamic midline. It generates buy signals when the deviation from the symmetric moving aver

Indicator v5 Moving averagesTrend
Updated 7 weeks ago · None stated GitHub repository of Symmetric MA Reversal Signals

A price-chart overlay that combines several tools. It draws a Nadaraya-Watson kernel envelope with a repainting smoothing option, a Hull moving average band in three variants that can optionally come from a higher timeframe, and an ATR trailing stop in the sty

Indicator v5 TrendMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of UT Bot, Nadaraya-Watson, Hull Suite and Reversal Combo

MACD x RSI Study

by jerryinyang
5 stars

This indicator combines MACD and RSI to generate pullback signals on forex pairs. It plots MACD line, signal line and histogram alongside RSI and Wave Trend oscillator. Higher-timeframe MACD provides trend bias while RSI identifies overbought and oversold zone

Indicator v4 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of MACD x RSI Study
948 stars

The Adaptive Laguerre Filter calculates a smoothed, dynamically adjusted trendline plotted directly on the main price chart. It dynamically adjusts its damping factor (alpha) based on recent price range variations and median percentile calculations over a spec

Indicator v4 TrendMoving averages
Updated 11 days ago · GPL-3.0 GitHub repository of Adaptive Laguerre Filter
330 stars

This script plots three moving averages on the price chart: a fast EMA or SMA with 10 periods, a slow EMA or SMA with 20 periods, and a trend EMA or SMA with 100 periods. It signals trend changes by drawing a white cross when the fast moving average crosses ab

Indicator v4 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of 3 EMA/SMA + Cross [Alorse]

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