Vanilla ABCD Pattern
"Vanilla ABCD Pattern" by alexgrover, MPL-2.0. Ported to FloScript by FloSignals; modifications under MPL-2.0. Original: Vanilla ABCD Pattern (v1.0), read 2026-10-12T15:57:26.901Z; source language v4.
Licence: Mozilla Public License 2.0 (MPL-2.0) — full text. The source is published with it, modifications included, under the same licence.
Vanilla ABCD Pattern by alexgrover, ported from Pine v4. Overlay indicator with 2 marker series and 3 inputs.
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © alexgrover
// ------------------------------------------------------------------------------------------------
// Original author: alexgrover
// Original title: Vanilla ABCD Pattern
// Licence: MPL-2.0 (the header above is the original notice, kept verbatim)
// Pine version: 4
// Fetched: 2026-10-12
// Ported to FloScript by FloSignals; modifications under MPL-2.0.
// Converter: @flosignals/floscript 0.1.0, strict mode, score 100/100
// ------------------------------------------------------------------------------------------------
//@floscript=1
//@version=5
// Converted by the FloScript converter from a Pine-compatible v4 source.
indicator("Vanilla ABCD Pattern", overlay=true)
src = input(close)
cnd = input(false, "Confirmation")
bar = input(true, "Last Bar Repaint")
//----
up = src[3] > src[2] and src[1] > src[2] and src < src[2]
dn = src[3] < src[2] and src[1] < src[2] and src > src[2]
os = 0
os := up ? 1 : dn ? 0 : os[1]
f = 0
f := os == 1 and close > open ? 1 : os == 0 and close < open ? 0 : f[1]
d = cnd ? ta.change(f) : ta.change(os)
//----
plotshape(d == 1, "Up", shape.labelup, location.belowbar, color.new(#2196f3, 0), bar ? 0 : 1, text="↗", textcolor=color.white)
plotshape(d == -1, "dn", shape.labeldown, location.abovebar, color.new(#ff1100, 0), bar ? 0 : 1, text="↘", textcolor=color.white)
This file is under the Mozilla Public License 2.0; it is a port of the original by alexgrover, with the original licence header kept and the changes made for FloScript noted in the file.
- v2
Library refresh 2026-10-14
- v1
Library refresh 2026-10-12
Disclaimer. Scripts are written and published by members, or ported by FloSignals from open-source originals, and are their authors' own work and opinion. FloSignals does not review them for correctness and nothing in a script is financial advice or a recommendation to buy or sell anything — read the Risk Disclaimer. Posting here is under the Community Rules; a script that is not the poster's to post can be reported as the Copyright & Takedowns page says.

Comments (0)
No comments yet. Members can leave one.