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
Sapphire FiboBands Strategy generates buy and sell signals based on selected Fibonacci ratios (1.618, 2.618, or 4.236) combined with Bollinger Band calculations using a configurable source and length. Trades enter on matching buy and sell signals with optional profit targets or stop losses in percentage terms. Main settings adjust the Fibonacci level used for signals, signal offset, and optional time-of-day filters to close positions. It defaults to one contract per trade on the price chart.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Length
int
20
length
Source
source
close
src
Offset
int
0
offset
Fibonacci Ratio 1
float
1.618
fibo1
Fibonacci Ratio 2
float
2.618
fibo2
Fibonacci Ratio 3
float
4.236
fibo3
Fibonacci Buy
string
Fibo 1
fiboBuy
Fibonacci Sell
string
Fibo 1
fiboSell
Show Signals
bool
true
showSignals
Signal Vertical Offset
int
5
signalOffset
Enable Profit Target
bool
false
useProfitPerc
Take Profit (%)
float
1.0
takeProfitPerc
Show all 20 settings
Setting
Type
Default
Variable
Enable Stop Loss
bool
false
useStopLossPerc
Stop Loss (%)
float
1.0
stopLossPerc
Enable Time Filter 1
bool
false
useTimeFilter1
Start Hour (24-hour format)
int
0
startHour1
Start Minute
int
0
startMinute1
End Hour (24-hour format)
int
23
endHour1
End Minute
int
45
endMinute1
Close Trades at End of Time Window
bool
false
closeAtEndTimeWindow
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 plots VWMA-based Bollinger bands on the 1-minute ES futures price chart for volatility analysis and potential breakout identification. It calculates dynamic long and short stop loss and take profit levels using percentage inputs relative to entry
This strategy uses multiple VWAP anchors and a custom Lull indicator to generate buy and sell signals on the Nasdaq price chart. It plots the VWAP trend line and three VWAP anchors with customizable colors and mitigation methods. The Lull indicator produces si
This overlay strategy plots a two-timeframe Ichimoku setup on the price chart, with Tenkan, Kijun, Chikou, and Kumo from a base higher timeframe and an optional highest-timeframe cloud. It allows two entries in the same direction and uses ATR-based trailing st
This strategy implements a multi-stage trend following system inspired by John W. Seykota. It generates long and short entries when price breaks above or below Donchian channels of specified length. Each entry adds a unit sized to risk a fixed percentage of cu
Calculates upper and lower Donchian Channel bands over a customizable lookback length and plots them on the main price chart. At a specified exchange hour, the strategy places a long buy stop order at the upper Donchian Channel level. Unfilled pending orders a
Smooth Trend Radar Strategy calculates a double-smoothed Supertrend baseline using WMA and EMA to identify trend direction and sideway regimes. It plots baseline rejection signals on flips, trend slope filters, and statistical overextension highlights with can