Indicator · Pine Script v5 · On the chart

[Sapphire] Fibonacci Strategies Indicators

by sapphire-edge

This indicator plots entry signals and moving average lines for three Fibonacci-period strategies directly on the price chart: Momentum Breakout, Mean Reversion, and Fibonacci Retracement.

View on GitHub

GitHub stars3on the repository
Pine versionv5runs as is
Lines of code137
Settings15inputs
LicenceNone stated
Last update1 year ago10 Jan 2025

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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

Each strategy uses combinations of Fibonacci-length moving averages (such as 13, 21, 34, 55, and 144 periods) to evaluate price crosses and moving average alignment. Inputs allow toggling long and short signals independently, choosing between SMA and EMA calculations for each setup, showing or hiding specific plots, and restricting signal generation to a custom intraday trading session window.

Details

Published by

sapphire-edge on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Moving averages, Breakout, Mean reversion, Sessions & time

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Enable Long SignalsbooltrueenableMomentumLong
Enable Short SignalsbooltrueenableMomentumShort
Use EMA? (Off: SMA,On: EMA)boolfalseuseEMAMomentum
Show Plots?booltrueshowMomentumPlots
Enable Long SignalsbooltrueenableMeanReversionLong
Enable Short SignalsbooltrueenableMeanReversionShort
Use EMA? (Off: SMA,On: EMA)boolfalseuseEMAMeanReversion
Show Plots?booltrueshowMeanReversionPlots
Enable Long SignalsbooltrueenableFibonacciLong
Enable Short SignalsbooltrueenableFibonacciShort
Use EMA? (Off: SMA,On: EMA)boolfalseuseEMAFibonacci
Show Plots?booltrueshowFibonacciPlots
Show all 15 settings
SettingTypeDefaultVariable
Enable Trading Window (EST)booltrueuseTradingWindowFilter
Show Background FillbooltrueshowBackgroundFill
Trading Windowsession0930-1600:1234567tradingWindow
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.

Similar Pine Scripts

Bollinger Bands Signals

by techteam92
1 stars

This indicator calculates custom Bollinger Bands using one of four selectable moving averages, defaulting to VIDYA. It plots the upper band, lower band, and basis line directly on the price chart, with a filled background between the outer bands. Buy and sell

Indicator v5 Volatility & bandsMoving averages
Updated 1 year ago · None stated GitHub repository of Bollinger Bands Signals
1 stars

This indicator assists intraday breakout execution on KLSE stocks. It plots VWAP, EMA 9, EMA 21 on the price chart along with an opening range from the first 30 minutes of the session and a buy zone band above the daily pivot price. Settings control the pivot

Indicator v5 Moving averagesSupport & resistance
Updated 4 months ago · None stated GitHub repository of KLSE Intraday Execution Helper

This indicator plots trade entry and exit signals on the price chart by combining Bollinger Bands with optional filter conditions. It calculates standard Bollinger Bands along with RSI, Aroon, and moving average filters. Reversal signals trigger when price bre

Indicator v4 Volatility & bandsOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Bollinger Bands Winner IND [Alorse]
285 stars

Mean Reversion Study is an indicator that identifies trade setups combining exponential moving averages, RSI extremes, and engulfing candlestick patterns. It highlights bullish setups when a bullish engulfing candle forms below the EMA while RSI is oversold, a

Indicator v4 Mean reversionCandlestick patterns
Updated 3 years ago · None stated GitHub repository of Mean Reversion Study
257 stars

This indicator plots auto trade signals for E-mini S&P 500 futures on the price chart. It computes an EMA200 filter along with day ETH RTH session levels and percentage-based entry zones. Signals trigger CALL or PUT cases when price crosses defined thresholds

Indicator v6 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Auto Trade Futures ES

Midnight VWAP

by TradersPost
218 stars

The Midnight VWAP indicator calculates and overlays two distinct Volume Weighted Average Price (VWAP) lines on the price chart based on customizable session timeframes. It tracks an overnight or pre-market session alongside regular trading hours, resetting cal

Indicator v6 Moving averagesSessions & time
Updated 3 months ago · None stated GitHub repository of Midnight VWAP

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers