TN Sovereign Market Structure v6 is an overlay strategy that identifies market structure breaks and trends using pivot points, a 50-period Exponential Moving Average (EMA), and the Ichimoku Cloud.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.
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
TN Sovereign Market Structure v6 detects Break of Structure (BOS) signals when price closes past recent pivot highs or lows, provided price aligns with the EMA and Ichimoku Cloud boundaries. Long and short entries are sized dynamically based on account equity risk. Exits are managed via ATR-based stop loss and take profit targets. Pivots require right-bar confirmation, creating a structural lag before levels update.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Pivot Left Bars
int
5
leftBars
Pivot Right Bars
int
3
rightBars
Enable BOS Filter
bool
true
useBOS
Enable EMA Filter (50)
bool
true
useEMA
EMA Length
int
50
emaLen
Enable Ichimoku Cloud
bool
true
useIchimoku
Risk % Per Trade
float
1.0
riskPct
ATR Length
int
14
atrLen
Stop Loss (ATR Mult)
float
1.5
slMult
Take Profit (ATR Mult)
float
3.0
tpMult
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 strategy enters trades in the opposite direction of filled value gaps, operating under the assumption that price action will resume the primary trend after filling a recent gap. It plots directly on the main price chart and supports MA-based trend filters
This strategy identifies reversal opportunities based on liquidity sweeps and multi-gate confluence scoring. It evaluates setups using mandatory conditions such as swing sweeps, body and ATR filters, and dual EMA higher-timeframe trend alignment, alongside opt
This multi-timeframe scalping strategy plots moving averages alongside Smart Money Concepts elements on the price chart. It calculates trend signals using configurable moving average types like ALMA, Hull MA, or TEMA across alternate timeframes. It also plots
Calculates three-bar Fair Value Gaps (FVG) and filters them using Average True Range. When price mitigates the FVG midpoint, the strategy enters a position in the direction of the gap, provided an optional EMA trend filter is satisfied. Exits are defined by an
This ICT-based strategy trades during the 9:45 AM to 10:15 AM New York session window. It calculates a daily bias using a 20-period daily EMA and tracks previous day highs and lows to identify liquidity sweeps. The script refines order block entry levels and m
This strategy detects liquidity sweeps and market structure shifts by computing swing highs and lows on a base timeframe then drawing zones around them. On a confirmation timeframe it identifies sweeps when price exceeds zone boundaries followed by rejection c