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 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
194 lines of Pine Script v6 from SMC_Long_Dip_Strategy.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
SMC Long-Dip Strategy enters positions based on selectable execution stages when quality score and regime criteria are met. Risk management uses an invalidation price for stop loss and an optional take profit defined in R multiples. Main settings configure execution stages, quality thresholds, universe restrictions, and an isolated backtest mode. A notable limitation is that historical backtests apply static single-day library data unless backtest mode is enabled.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Execution Stage
string
Strict
entry_mode
Minimum Quality Score
float
0.0
min_quality_score
Respect Regime Gate
bool
true
use_regime_gate
Backtest Mode (Ignore Library)
bool
false
backtest_mode
Strict Universe Mode
bool
false
strict_universe_entries
Use Take Profit
bool
true
use_take_profit
Take Profit (R)
float
2.0
take_profit_r
BUS Armed
source
close
src_armed
BUS Confirmed
source
close
src_confirmed
BUS Ready
source
close
src_ready
BUS EntryBest
source
close
src_entry_best
BUS EntryStrict
source
close
src_entry_strict
Show all 16 settings
Setting
Type
Default
Variable
BUS Trigger
source
close
src_trigger
BUS Invalidation
source
close
src_invalidation
BUS QualityScore
source
close
src_quality_score
Show Performance Table
bool
true
show_performance
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.
Donald - AI Futures 5M 15M Timeframe is an overlay trading strategy designed for intraday futures trading. It utilizes rational quadratic kernel regression to construct dynamic momentum zones and smoothed price boundaries on the main price chart. The strategy
This overlay strategy plots previous-day high and low, the daily open, and fair value gap zones on the price chart. It takes entries on a selectable timeframe when the FVG requirement and an optional session window allow them, then uses an ATR or fixed pip sto
Gold Scalping BOS & CHoCH is an overlay strategy designed for detecting market structure shifts. It calculates rolling swing highs and lows to identify Break of Structure (BOS) and Change of Character (CHoCH) events. Long signals trigger when bullish BOS and C
This strategy identifies trend reversals through market structure changes (CHoCH) filtered by MACD momentum. It initiates long positions on bullish structure breaks when MACD is positive and above its signal line, and short positions on bearish breaks when MAC
Gold Scalping BOS & CHoCH with MA Filter is a strategy that identifies market structure shifts using Break of Structure (BOS) and Change of Character (CHoCH) signals alongside exponential moving average trend filters. Long trades enter when bullish BOS, bullis
Donald - AI Futures is a price-chart strategy that estimates inner and outer high-low zones and a smoothed close with rational quadratic kernel regression. It builds bullish and bearish momentum signals, optionally compares volume with a volume-weighted moving