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
TnSovereignMarketStructureV20 stores confirmed pivot highs and lows, then looks for a close beyond the last pivot in the direction of an exponential moving average. A thermodynamic check must also pass, with free energy above a minimum and fractal entropy below a maximum. Long and short entries are allowed only on a confirmed bar while the position is flat, using ten percent of equity by default. ATR stop and reward-ratio inputs are defined, but the shown code does not include the exit orders.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Pivot Lookback
int
5
pivot_len
Trend EMA Filter
int
50
trend_len
Min Free Energy
float
1.5
min_energy
Max Fractal Entropy (D)
float
1.4
max_entropy
SL ATR Multiple
float
1.5
sl_atr_mult
Target R:R Ratio
float
3.0
tp_rr
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 identifies bullish and bearish order blocks using an average true range impulse filter and plots corresponding boxes on the price chart. It enters positions on price retests of the order block zones, optionally filtered by an exponential moving a
This strategy tracks GBP/USD market structure by storing confirmed pivot highs and lows. It enters long when price crosses above the last pivot high while above a trend EMA, and short when price crosses below the last pivot low while below that EMA. Entries oc
This strategy operates directly on the price chart to generate trading signals across four switchable modules: trend following, mean reversion, momentum breakout, and smart money concepts. It triggers trade entries when a user-defined minimum number of modules
This strategy executes trades based on a combination of Smart Money Concepts, including Inverse Fair Value Gaps (IFVG) and Change in State of Delivery (CISD) structure breaks. Entries require confluence between IFVG flips, structural CISD breaks, a 20-period e
Qtus SMC-Sniper AutoTrader v2 is an automated trading strategy plotted on the price chart that combines Smart Money Concepts (SMC), ICT frameworks, price action patterns, and technical indicators into a multi-factor scoring engine. It enters long or short posi
This Pine Script strategy detects pivot liquidity sweeps on the price chart. It identifies swing highs and lows using ta.pivothigh and ta.pivotlow with user-defined left and right bar counts. The script maintains state for the last confirmed pivot and flags a