1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
192 lines of Pine Script v6 from strategies/swarm_modular_executor_v6.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
TN Swarm Modular Executor calculates individual member signals and aggregates their votes to determine overall market directional bias and consensus strength. Traders can select different execution regimes (Balanced, Sovereign, Aggressive) and adjust underlying indicator parameters. Output signals and an optional consensus summary panel display directly on the price chart.
Multi-agent swarm consensus voting engine
Sub-strategy signals based on CCI, RSI, Bollinger Bands, and ATR
Configurable execution regimes and risk parameters
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
執行規訓
enum
ExecutionRegime.Balanced
regime
動能深度 (Mom)
int
14
momLen
RSI 深度 (MeanRev)
int
14
rsiLen
布林帶長度 (Breakout)
int
20
bbLen
布林帶倍數
float
2.0
bbMult
ATR 長度 (Vol)
int
14
atrLen
ATR 乘數
float
1.5
atrMult
主權停損倍數
float
2.0
sovereignStopMult
主權停利倍數
float
3.0
sovereignTakeMult
顯示共識面板
bool
true
showConsensusPanel
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.
This overlay indicator plots a Supertrend from an ATR length and factor, four exponential moving averages, and a selectable VWAP or TWAP taken from a chosen timeframe on the price chart. It also shows MACD and stochastic with adjustable lengths, smoothing, ver
This multi-symbol indicator evaluates a combined trading condition across up to 40 user-defined symbols. It processes MACD bullish crossovers, RSI thresholds, Bollinger Band boundaries, and DMI/ADX trend filters using security calls. When buy or sell criteria
This overlay indicator marks Linda Raschke short-term bar setups on the price chart. It flags Turtle Soup and Turtle Soup plus one false breakouts of a prior extreme, 80-20 bars, inside bars, failed inside-bar breakouts, outside up and down bars, NR4 and NR7 c
The 8zz Contrarian Indicator plots reverse sentiment trading signals directly on the price chart based on tracked retail post activity. It generates bullish signals during retail panic and bearish signals during market euphoria. The indicator features adjustab
This indicator identifies standard deviation breakout signals by comparing standard deviation against its simple moving average. A long signal triggers when standard deviation crosses above its moving average during a bullish candle, while a short signal occur
This indicator displays a customizable dashboard table on the price chart. It combines Market Action Pulse state, McClellan breadth z-score, VIX Mood Ring status, and Risk Assessment Model hazard score. Users select symbols such as NASDAQ:QQQE or VIX, toggle c