Indicator · Pine Script v6 · Own pane

ETF Rotation (Daily Momentum)

by AlanGuo

A separate-pane indicator that ranks up to ten user-chosen symbols, preloaded with Chinese-listed ETFs for gold, Nasdaq and other indices, by daily momentum and tracks a rotation into the top few, with the count adjustable.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv6current
Lines of code1,040
Settings40inputs
LicenceNone stated
Last update7 months ago31 Mar 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

An optional market filter compares a benchmark such as the S&P 500 with a 225-day average and can remove selected symbols and force exits next open or same close. Labels are in Chinese. It is a ranking and tracking tool, not an order-placing strategy.

Details

Published by

AlanGuo on GitHub

Type

Indicator, Pine Script v6

Draws

Separate pane below the chart

Category

Oscillators & momentum, Screeners & dashboards

Markets

Stocks, Indices

Timeframes

H4 and above

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
Symbol 1symbolSSE:518880symbol1
Label 1string黄金ETFname1
Symbol 2symbolSSE:513100symbol2
Label 2string纳指ETFname2
Symbol 3symbolSZSE:159915symbol3
Label 3string创业板ETFname3
Symbol 4symbolSSE:588000symbol4
Label 4string科创50name4
Symbol 5symbolSSE:510180symbol5
Label 5string上证180name5
Symbol 6symbolsymbol6
Label 6stringLabel 6name6
Show all 40 settings
SettingTypeDefaultVariable
Symbol 7symbolsymbol7
Label 7stringLabel 7name7
Symbol 8symbolsymbol8
Label 8stringLabel 8name8
Symbol 9symbolsymbol9
Label 9stringLabel 9name9
Symbol 10symbolsymbol10
Label 10stringLabel 10name10
参与轮动资产数量int3rotationCount
价格精确小数位int3pricePrecision
启用基准均线过滤boolfalseuseMarketFilter
均线防摩擦系数(%)float0.0marketFrictionPct
风险过滤直接清仓booltrueforceExitOnFilter
强平成交时点string次日开盘forceExitMode
基准符号symbolSP:SPXmarketFilterSymbol
基准SMA长度 (天)int225marketFilterLen
基准跌破均线时停用Symbol1boolfalseexclude1OnDown
基准跌破均线时停用Symbol2booltrueexclude2OnDown
基准跌破均线时停用Symbol3booltrueexclude3OnDown
基准跌破均线时停用Symbol4booltrueexclude4OnDown
基准跌破均线时停用Symbol5booltrueexclude5OnDown
基准跌破均线时停用Symbol6booltrueexclude6OnDown
基准跌破均线时停用Symbol7booltrueexclude7OnDown
基准跌破均线时停用Symbol8booltrueexclude8OnDown
基准跌破均线时停用Symbol9booltrueexclude9OnDown
基准跌破均线时停用Symbol10booltrueexclude10OnDown
动量回顾(交易日)int20lookbackDays
波动率调整方式stringSUBsignalVolAdjust
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 a pasted list of symbols for RSI directional momentum and shows matching long and short signals in a table in a separate pane. The user chooses continuous break, continuous retracement, flip break, flip retracement, divergence, or hidden d

Indicator v6 Oscillators & momentumDivergence
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup - RSI Directional Momentum Scanner
261 stars

This indicator plots the RSI oscillator on the main chart and displays its value distribution in a table positioned at the top right. The script calculates the relative strength index using the input source and length, then plots horizontal lines at 0, 50, and

Indicator v4 Oscillators & momentumScreeners & dashboards
Updated 4 years ago · None stated GitHub repository of Tables-003 Oscillator Distribution

Market Speedometer

by TradersPost
218 stars

Market Speedometer plots a 0-100 market speed reading in a separate pane. It measures movement by bar-to-bar change, true range, or a short average of recent bars, then ranks that movement against ATR and a percentile lookback. An EMA smooths the reading, and

Indicator v6 Volatility & bandsOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Market Speedometer

KamaFama

by Mastaaa1987
141 stars

KamaFama is an indicator that translates a Freqtrade trading strategy into Pine Script for visualization. It combines Kaufman Adaptive Moving Average (KAMA), MAMA/FAMA calculations derived via Hilbert Transform, Williams %R, and correlation trend filters to ev

Indicator v6 Moving averagesOscillators & momentum
Updated 6 weeks ago · MIT GitHub repository of KamaFama
114 stars

Calculates normalized reversal metrics across up to ten Forex currency pairs using user-selected moving average methods, including HarmonicMA, EMA, SMA, or WMA. The indicator identifies overbought, oversold, and mean-crossing conditions using a configurable th

Indicator v4 Screeners & dashboardsMean reversion
Updated 1 year ago · None stated GitHub repository of Multi-Pair Trend Reversal Widget

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