Skip to content

Instantly share code, notes, and snippets.

View srajbr's full-sized avatar

Samiran Raj Boro srajbr

View GitHub Profile
@srajbr
srajbr / SL_Sweep_Reversal.pine
Created December 17, 2025 08:25
TradingView Pine Script SL Sweep Reversal Strategy
// This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © srajbr
//@version=6
strategy("SL Sweep Reversal Strategy", overlay=true, use_bar_magnifier = true)
// Input settings
max_range = input.float(20, title="Max Range (%)", minval=0.1, maxval=100.0, step=0.1,
tooltip="Percentage close from previous range to trigger entry")