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 indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
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
Turtle Trading Rules calculates price breakout channels using configurable entry and exit lengths (defaulting to 20 and 10 periods). The script overlays the upper and lower channel boundaries, a main trend line, and an exit line directly on the price chart. Users can adjust order type, price offset, and investment amounts to customize automated signal alerts transmitted via TradingView webhooks.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Entry Length
int
20
entryLength
Exit Length
int
10
exitLength
Show Entry/Exit Signals ?
bool
true
showSignals
Highlighter On/Off ?
bool
true
highlighting
Signal Token
string
signalToken
Order Type
string
market
enterOrderType
Order Price Offset
float
0
enterOrderPriceOffset
Investment Type
string
percentage_balance
enterInvestmentType
Amount
float
100
enterAmount
Order Type
string
market
exitOrderType
Order Price Offset
float
0
exitOrderPriceOffset
Investment Type
string
percentage_position
exitInvestmentType
Show all 13 settings
Setting
Type
Default
Variable
Amount
float
100
exitAmount
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.
Sideway Zones Live is an overlay indicator that estimates inner and outer sideways bands from recent highs and lows with a rational quadratic kernel. It tracks swing pivots over a loopback period and counts bars that remain between the outer high and low. Afte
This indicator calculates dynamic upper and lower trendlines from pivot highs and pivot lows across a specified bar length. Trendline slopes are derived using ATR, standard deviation, or linear regression methods. It plots trendlines and breakout signal labels
This indicator detects inside candles inside larger parent candles on the price chart. It plots colored boxes around inside and parent candles, fills them with user-adjustable transparency, draws Fibonacci retracement lines and mother candle range lines, and d
This indicator maps Smart Money Concepts (SMC) market structure directly onto the price chart. It detects internal and swing structure breaks (BOS and CHoCH), tracks bullish and bearish order blocks, identifies fair value gaps (FVG), highlights equal highs and
The Market Tradability Engine calculates multi-factor tradability, balance, compression, and direction scores to evaluate market regime quality. It classifies market conditions into eight distinct states, including Balance, Compression, Ready, Breakout, Trend,
This indicator tracks swing highs and swing lows to generate trend-following trailing stop levels on the price chart. When the closing price breaks above the previous swing high, the system establishes a bullish state using the recent swing low as a trailing s