This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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") |