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
1M Scalp Spot Strategy (100 EMA + HA Doji) looks for a pullback in an uptrend above a 100-period EMA, with doji candles whose bodies are small relative to their range and flat tops, then enters on the breakout. Stop loss and take profit are set at a configurable reward-to-risk ratio. An optional session filter and entry, stop and target lines are included.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
EMA Length (on HA close)
int
100
emaLen
Max Doji Body (% of candle range)
float
30.0
dojiBodyPct
Flat-top Wick Tolerance (ticks)
float
0.0
wickTolTicks
Risk : Reward
float
1.0
rrRatio
Enable Session Filter
bool
false
useTimeFilter
Session Start Hour (exchange time)
int
0
sessStartHour
Session End Hour (exchange time)
int
24
sessEndHour
Draw Entry / SL / TP lines
bool
true
showLines
Show BUY markers
bool
true
showSignals
Overlay Heikin-Ashi candles
bool
false
showHaPlot
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 strategy marks short-term turning points on the price chart and enters SPY option-style trades from them. It plots simple moving averages of highs and lows, draws up and down reversal arrows, and colors bars when a short-term extreme coincides wit
This strategy trades bullish and bearish body engulfing patterns on the price chart. It allows longs only when price is above the 200-period exponential moving average and shorts only when price is below it. A long needs three consecutive red candles followed
This strategy shorts the ES three-minute chart when three consecutive down candles form a triple-red pattern and price is above a Tillson-style T3 average. The average is six nested EMAs of close, combined with fixed coefficients and a user length defaulting t
This short-only scalping strategy combines multi-timeframe analysis to identify panic selling opportunities. It uses higher-timeframe data (15-minute by default) to establish a downtrend context characterized by strong bearish candles with minimal lower wicks.
This strategy trades price action pin bar patterns aligned with moving average trend alignment on the main price chart. It defines uptrends or downtrends using a fan arrangement of three moving averages (6 EMA, 18 EMA, and 50 SMA). Entry conditions require a b
Mean Reversion Strategy is an overlay strategy that identifies pullbacks using a long-term EMA, RSI, and candlestick patterns. It generates long signals when a bullish engulfing candle forms below the EMA while RSI is oversold, and short signals when a bearish