Indicator · Pine Script v6 · On the chart

NO.1 Perfect Buy/Sell v2

by vedkanani123

A price-chart indicator for lower timeframes that draws EMA 9, 21, 50 and SMA 200 clouds and prints always-in buy and sell flips.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv6current
Lines of code446
Settings29inputs
LicenceNone stated
Last update2 months ago23 Aug 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

Signals combine EMA stack or cross, RSI, ADX and DI, relative volume and a lock that blocks tiny sideways ranges. The higher-timeframe Supertrend filter is soft on M1 to M5 and hard on M15 and above, or can be set manually. It also draws stop and R-multiple boxes, a dashboard and bar colours.

Details

Published by

vedkanani123 on GitHub

Draws

On the price chart

Markets

Any symbol

Timeframes

M1-M5, M15-H1

Risk Notes

  • Reads higher-timeframe data with lookahead on, so the history can show signals that were not there in real time

Settings

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

SettingTypeDefaultVariable
Fast EMAint9len9
Mid EMAint21len21
Slow EMAint50len50
SMA 200int200len200
9/21 cloudbooltrueshowC1
21/50 cloudbooltrueshowC2
50/200 cloudbooltrueshowC3
Use RSIbooltrueuseRSI
RSI lengthint14rsiLen
BUY RSI (low-TF uses this as a soft floor)float50.0buyRSI
SELL RSIfloat50.0sellRSI
Use ADX / DIbooltrueuseADX
Show all 29 settings
SettingTypeDefaultVariable
DI lengthint14diLen
ADX smoothint14adxSmooth
Min ADX (0 = auto)float0.0minADXIn
Use volume when the symbol has itbooltrueuseVol
Volume SMAint20volLen
Relative volumefloat1.00volMult
Block tiny sideways boxesbooltrueuseRange
ATRint14atrLen
HTF modestringAutohtfMode
Auto-select HTFbooltrueautoHtf
Manual HTFtimeframe15manualHtf
HTF Supertrend factorfloat3.00htfFactor
SL / 1R / 2R / 3R boxesbooltrueshowBoxes
BUY / SELL labelsbooltrueshowLabs
Shade tiny rangebooltrueshowBg
DashboardbooltrueshowDash
Color bars by statebooltruecolorBars
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

947 stars

The Adaptive RSI Moving Average (ARSIMA) is an overlay indicator that dynamically adjusts its smoothing factor based on the Relative Strength Index (RSI). When the RSI moves toward extreme overbought or oversold conditions, the smoothing factor increases to ma

Indicator v4 Moving averagesOscillators & momentum
Updated 11 days ago · GPL-3.0 GitHub repository of Adaptive RSI Moving Average
228 stars

TradersPost Trading Checklist is an overlay indicator that evaluates a suite of popular technical conditions for long and short trade setups. It checks session-anchored VWAP, fast and slow EMA alignments and crosses, 200 SMA, RSI overbought or oversold conditi

Indicator v6 Screeners & dashboardsTrend
Updated 3 months ago · None stated GitHub repository of TradersPost Trading Checklist

Daily Trend Filter

by agutinbaigo28
147 stars

Calculates market regime conditions by combining RSI, MACD, and ADX/DMI indicators. It evaluates whether the market is in a strong bullish, strong bearish, neutral, or non-trending regime. The script plots a colored line overlaying the close price to reflect t

Indicator v5 TrendOscillators & momentum
Updated 6 weeks ago · MIT GitHub repository of Daily Trend Filter

AAPP

by capissimo
114 stars

This indicator plots an adaptive moving average or scaled RSI divergence line directly on the price chart. It calculates dual RSI series to measure momentum divergence, scales the values to the chart's price range, and constructs an adaptive average filtered b

Indicator v4 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of AAPP

Signal Strategy 15m

by tripolskypetr
72 stars

This indicator generates trend-following trade signals on the price chart by combining moving average crossovers with multi-factor filters. It triggers entry alerts when fast and slow EMAs cross in the direction of a baseline trend EMA, confirmed by non-extrem

Indicator v5 TrendMoving averages
Updated 4 days ago · MIT GitHub repository of Signal Strategy 15m
56 stars

Double Screened Decision is a multi-timeframe trend and momentum indicator overlaid directly on the price chart. It dynamically selects a higher timeframe based on the active chart resolution to evaluate higher-timeframe MACD, Bollinger Bands, RSI, and Stochas

Indicator v5 TrendMoving averages Repaints
Updated 4 months ago · None stated GitHub repository of Double Screened Decision

More Trend scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

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

Compare brokers