Quadruple Exponential Moving Average
"Quadruple Exponential Moving Average (QEMA)" by everget, MIT. Ported to FloScript by FloSignals; modifications under MPL-2.0. Original: Quadruple Exponential Moving Average (QEMA) (v2.0), read 2026-10-12T15:49:39.793Z; source language v3.
Licence: MIT License (MIT) — full text.
Quadruple Exponential Moving Average (QEMA) by everget, ported from Pine v3. Overlay indicator with 1 plot and 3 inputs.
// Copyright (c) 2010-present, Bruno Pio
// Copyright (c) 2019-present, Alex Orekhov (everget)
// Quadruple Exponential Moving Average script may be freely distributed under the MIT license.
// ------------------------------------------------------------------------------------------------
// Original author: everget
// Original title: Quadruple Exponential Moving Average (QEMA)
// Licence: MIT (the header above is the original notice, kept verbatim)
// Pine version: 3
// 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 v3 source.
indicator("Quadruple Exponential Moving Average", shorttitle="QEMA", overlay=true)
length = input.int(title="Length", defval=20)
highlightMovements = input.bool(title="Highlight Movements ?", defval=true)
src = input.source(title="Source", defval=close)
ema1 = ta.ema(src, length)
ema2 = ta.ema(ema1, length)
ema3 = ta.ema(ema2, length)
ema4 = ta.ema(ema3, length)
ema5 = ta.ema(ema4, length)
qema = 5 * ema1 - 10 * ema2 + 10 * ema3 - 5 * ema4 + ema5
qemaColor = highlightMovements ? (qema > qema[1] ? color.green : color.red) : #6d1e7f
plot(qema, title="QEMA", linewidth=2, color=color.new(qemaColor, 0))
This file is under the MIT License; it is a port of the original by everget, 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.