Strategy · Pine Script v6 · On the chart

1m Spot Fib Scalper

by MuhammadMuhamid

A long-only strategy for one-minute spot charts that waits for a bullish break of structure above a swing high, then parks an entry at a Fibonacci retracement of the impulse leg, defaulting to the 0.618 level inside a 0.5 to 0.618 zone.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code576
Settings40inputs
LicenceNone stated
Last update12 days ago17 Oct 2026

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 strategy, select all of the template text and paste. Press Save and give it a name.
  4. 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

The stop goes below the anchor swing low with a buffer and the target is a reward-to-risk multiple. Optional EMA and ADX filters, session limits and a date window are available. Setups expire if price does not retrace in time.

Details

Published by

MuhammadMuhamid on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

SMC / ICT / price action, Support & resistance, Scalping

Markets

Crypto

Timeframes

M1-M5

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
Pivot Left Barsint5leftBars
Pivot Right Barsint5rightBars
BOS Trigger SourcestringClosebosSrcMode
Require a Higher Low before BOSbooltruerequireHigherLow
Abandon Setup if No Retrace Within (bars)int60maxImpulseBars
Gold Zone Start (shallow retracement)float0.500fibZoneA
Gold Zone End (deep retracement)float0.618fibZoneB
Entry Retracement Levelfloat0.618fibEntry
Entry ExecutionstringLimit at Entry FibentryMode
Min Impulse Leg Size (%)float0.15minImpulsePct
Cancel Unfilled Order After (bars)int45maxWaitBars
Stop Buffer ModestringPercentslMode
Show all 40 settings
SettingTypeDefaultVariable
Stop Buffer (%)float0.05slBufPct
Stop Buffer (ticks)int10slBufTicks
Take Profit ModestringRisk:RewardtpMode
Risk : Reward Ratiofloat1.5rrTarget
Reject Setup Below This R:Rfloat1.0minRR
Require Close Above EMAbooltrueuseEma
EMA Lengthint200emaLen
Require ADX Above ThresholdbooltrueuseAdx
ADX / DI Lengthint14adxLen
Min ADXfloat20.0adxMin
Limit Backtest to Date RangeboolfalseuseWindow
Starttimetimestamp("01 Jan 2024 00:00 +0000")startTime
Endtimetimestamp("01 Jan 2030 00:00 +0000")endTime
Enable Session FilterboolfalseuseSession
Session (exchange time)session0000-2400sessSpec
Show Gold Zone BoxbooltrueshowZone
Show Entry / SL / TP LinesbooltrueshowLevels
Show BOS Level + LabelbooltrueshowBosViz
Show Confirmed PivotsbooltrueshowPivots
Show Bias EMAbooltrueshowEma
Show Status PanelbooltrueshowTable
Keep Historical DrawingsbooltruekeepHistory
Gold Zone Fillcolorcolor.new(color.orange, 82)colZoneFill
Gold Zone Bordercolorcolor.new(color.orange, 35)colZoneEdge
BOS Levelcolorcolor.new(#2962ff, 0)colBos
Entry Levelcolorcolor.new(#ff9800, 0)colEntry
Stop Losscolorcolor.new(#ef5350, 0)colSl
Take Profitcolorcolor.new(#26a69a, 0)colTp
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

105 stars

Gold Scalping BOS & CHoCH is an overlay strategy designed for detecting market structure shifts. It calculates rolling swing highs and lows to identify Break of Structure (BOS) and Change of Character (CHoCH) events. Long signals trigger when bullish BOS and C

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of Gold Scalping BOS & CHoCH
6 stars

This trading strategy detects key support and resistance zones on the price chart by identifying candle rejection wicks over a customizable lookback period. It filters potential trades using an Exponential Moving Average (EMA), Change in Status/Direction (CISD

Strategy v5 Support & resistanceTrend
Updated 7 months ago · None stated GitHub repository of Wick Rejection S/R Strategy

Daily Bias + FVG Strategy

by TradersPost
218 stars

This overlay strategy plots previous-day high and low, the daily open, and fair value gap zones on the price chart. It takes entries on a selectable timeframe when the FVG requirement and an optional session window allow them, then uses an ATR or fixed pip sto

Strategy v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Daily Bias + FVG Strategy

This strategy plots the previous daily high and low on the price chart and calculates the Andean oscillator bull and bear components with an exponential moving average signal. It looks for a bull or bear cross of that signal, then confirms the setup against re

Strategy v5 Oscillators & momentumSupport & resistance Repaints
Updated 3 years ago · MIT GitHub repository of Daily High/Low and Andean Oscillator Strategy

ATOM 1m scalp HK

by dearvn
43 stars

This overlay strategy targets one-minute ATOM scalps. It tracks pivot highs and lows as resistance and support, compares a three-period EMA with a multi-stage smoothed close, and flags long or short when price crosses that curve in the matching direction. Dail

Strategy v5 ScalpingSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of ATOM 1m scalp HK

More strategys

Trade Your Charts With a Regulated Broker

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

Compare brokers