Skip to content

Instantly share code, notes, and snippets.

View CryptoMF's full-sized avatar

CryptoMF CryptoMF

View GitHub Profile
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © CryptoMF
//@version=4
study("MF_S&R", overlay=true)
// Inputs
ln = input(7, title="Pivot Length", type=input.integer) // Number of bars to use to calculate pivot
mb = input(3, title="Max Breaks", type=input.integer) // Maximum number of times a line can be broken before it's invalidated