Indicator · Pine Script v5 · On the chart

Algo Trend System TG

by Focal-QuantAI

An indicator on the price chart that follows an ATR-based trend line with a factor setting, plus a fast and slow EMA cloud, and prints signals with fixed dollar stop loss and three take profit distances.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code294
Settings29inputs
LicenceNone stated
Last update6 months ago11 Apr 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 can be limited to two time sessions in a chosen timezone. A dashboard tracks outcomes over a date range, with a selectable final target. Alerts can be sent as JSON messages for up to five Telegram chat IDs. Distances are in price units, not percentages.

Details

Published by

Focal-QuantAI on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Trend, Sessions & time

Markets

Gold

Timeframes

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
ATR Period for Trend Calculationint10atrPeriod
Trend Sensitivity Factorfloat3.0factor
Cloud Fast EMAint50cloudFast
Cloud Slow EMAint150cloudSlow
Stop Loss Distance ($)float20.0sl_dist
TP 1 Distance ($)float10.0tp1_dist
TP 2 Distance ($)float20.0tp2_dist
TP 3 Distance ($)float30.0tp3_dist
Use Chat 1 (Optional)boolfalseuseChat1
Telegram Chat ID 1stringchatID1
Use Chat 2 (Optional)boolfalseuseChat2
Telegram Chat ID 2stringchatID2
Show all 29 settings
SettingTypeDefaultVariable
Use Chat 3 (Optional)boolfalseuseChat3
Telegram Chat ID 3stringchatID3
Use Chat 4 (Optional)boolfalseuseChat4
Telegram Chat ID 4stringchatID4
Use Chat 5 (Optional)boolfalseuseChat5
Telegram Chat ID 5stringchatID5
Use Time Filters for TradingbooltrueuseTimeFilter
Trading Session 1session2100-0700session1
Trading Session 2session0925-1255session2
Timezone (America/New_York handles UTC-4/UTC-5)stringAmerica/New_Yorktz
Use Date Filter for Dashboard StatsbooltrueuseDateFilter
Start Datetimetimestamp("2022-01-01T00:00:00")startDate
End Datetimetimestamp("2030-01-01T00:00:00")endDate
Final Take Profit (Win Condition)stringTP3closing_tp
Show TP1 on Chartbooltrueshow_tp1
Show TP2 on Chartbooltrueshow_tp2
Show TP3 on Chartbooltrueshow_tp3
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

257 stars

This indicator plots auto trade signals for E-mini S&P 500 futures on the price chart. It computes an EMA200 filter along with day ETH RTH session levels and percentage-based entry zones. Signals trigger CALL or PUT cases when price crosses defined thresholds

Indicator v6 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Auto Trade Futures ES
92 stars

This indicator classifies the market into gamma regime types (negative gamma trend, positive gamma mean-reversion, or transition) by calculating a composite score based on daily ATR ratios, session VWAP crossover frequencies, and opening range displacement. It

Indicator v5 Volatility & bandsTrend
Updated 2 months ago · Custom licence GitHub repository of Moon Dev GEX Regime & Trap

Equity Intraday Analyst

by chris-c-thomas
14 stars

Equity Intraday Analyst is a comprehensive intraday overlay indicator for US equities and ETFs. It evaluates multi-EMA ribbons, session-anchored VWAP bands, OBV trends, momentum oscillators, TTM Squeeze, and optional market breadth indicators like NYSE TICK an

Indicator v6 TrendVolume
Updated 6 months ago · MIT GitHub repository of Equity Intraday Analyst
7 stars

This script combines Smart Money Concepts including Break of Structure, Optimal Trade Entry Fibonacci levels, Fair Value Gaps, and Order Blocks to identify setup entries on the price chart. It tracks 15-minute higher timeframe structure, restricts trades to th

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of 15m BOS + OTE + FVG + OB (Prop Firm)

714AutoM8trDST

by alboogycOdR
6 stars

Calculates Smart Money Concepts market structure elements including internal and swing breaks of structure, change of character, and order blocks directly on the price chart. It highlights bullish and bearish structures, customizable internal and swing order b

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of 714AutoM8trDST

42H Map

by aurorascarlet1102
4 stars

42H Map calculates custom time cycle structures and session ranges directly on the price chart. It partitions market action into forty-two-hour cycles, ten-and-a-half-hour micro-sessions, half-week periods, and quarter-month segments to track highs, lows, and

Indicator v5 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of 42H Map

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