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
Combined Script triggers trades in the direction of the moving average fan when a pin bar forms, managing positions using an ATR-based stop loss, pip-based profit targets, and optional trailing stops. It plots patterns, target levels, and day-of-week labels directly on the price chart, with integrated PineConnector alert syntax for automated execution.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Plot Day of Week?
bool
true
plotday
Plot Pin Bar?
bool
true
plotPinBar
Plot TP/SL?
bool
true
plotTarget
Plot Label?
bool
true
plotlabel
Label Plotting Distance From bar
int
5
labeldist
=========== Strategy Inputs ===========
bool
false
sep1
Risk Per Trade
float
3
pc_risk
Cancel Entry After X Bars (Period)
int
3
ent_canc
=========== TP/SL Inputs ===========
bool
false
sep2
Profit Target in Pips
int
300
profitPip
Stop Loss (x*ATR, Float)
float
0.5
atr_mult
ATR (Period)
int
14
atr_valu
Show all 24 settings
Setting
Type
Default
Variable
Trailing Stop Loss Trigger Price from entry in pips
int
100
trailtrig
Trailing Stop Loss from entry in pips
int
10
traildist
Trailing Stop Loss step up
int
10
trailstep
=========== MA Inputs ===========
bool
false
sep3
Slow SMA (Period)
int
50
sma_slow
Medm EMA (Period)
int
18
ema_medm
Fast EMA (Period)
int
6
ema_fast
=========== External Alerts Inputs ===========
bool
false
sep4
License ID
string
5510492750007
pc_id
MetaTrader Prefix
string
pc_prefix
MetaTrader Suffix
string
pc_suffix
Use Limit Order?
bool
true
pc_limit
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 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
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 calculates and plots smoothed Heikin-Ashi candles directly onto the main price chart using exponential moving averages of open, high, low, and close prices. It enters a long position after three consecutive bullish smoothed candles with sequentia
This strategy executes trades based on candlestick engulfing patterns aligned with a 200-period exponential moving average trend filter. It enters long positions when a bullish engulfing candle follows three consecutive bearish candles while price trades above
This strategy combines Ichimoku Kinko Hyo components, a Stochastic oscillator, and specific candlestick patterns to generate trade signals. It identifies Kumo twists and range breakouts while evaluating candle body shapes using Fibonacci threshold filters. Tra
This strategy combines candlestick price action with Exponential Moving Average, RSI, and MACD filters to identify short-term trend trades. A long signal occurs when a bullish candle engulfs the previous open while price remains above the EMA, RSI stays below