MACD-V (Volatility Normalized MACD)
"MACD-V (Volatility Normalized MACD)" by KivancOzbilgic, MPL-2.0. Ported to FloScript by FloSignals; modifications under MPL-2.0. Original: MACD-V (Volatility Normalized MACD) (v1.0), read 2026-11-15T18:41:18.002Z; source language v6.
Licence: Mozilla Public License 2.0 (MPL-2.0) — full text. The source is published with it, modifications included, under the same licence.
MACD-V (Volatility Normalized MACD) by KivancOzbilgic, ported from Pine v6. Pane indicator with 3 plots, 6 levels, alerts and 5 inputs.
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // (Notice added by FloSignals: the author's source carries none. It was published open-source on 2026-01-26; since 2019-07-26 the platform it was published on has released such a script under MPL-2.0 automatically.) // ------------------------------------------------------------------------------------------------ // Original author: KivancOzbilgic // Original title: MACD-V (Volatility Normalized MACD) // Licence: MPL-2.0 (the notice above was added by FloSignals; the original carries none) // Pine version: 6 // Fetched: 2026-11-15 // Ported to FloScript by FloSignals; modifications under MPL-2.0. // Converter: @flosignals/floscript 0.1.0, strict mode, score 100/100 // ------------------------------------------------------------------------------------------------ //@floscript=1 //@version=6 indicator(title='MACD-V (Volatility Normalized MACD)', shorttitle='MACD-V', overlay=false) // Inputs fastLength = input.int(12, title='Fast Length') slowLength = input.int(26, title='Slow Length') signalLength = input.int(9, title='Signal Length') atrLength = input.int(26, title='ATR Length') src = input.source(close, title='Source') // Calculations fastEMA = ta.ema(src, fastLength) slowEMA = ta.ema(src, slowLength) macdLine = fastEMA - slowEMA atrValue = ta.atr(atrLength) float macdV = macdLine / atrValue * 100 float Signal = ta.ema(macdV, signalLength) // Plots plot(macdV, title='MACD-V', color=color.new(#2962FF, 0), linewidth=2) plot(Signal, title='Signal', color=color.new(#ff299b, 0), linewidth=2) hline(150, 'Extreme Overbought', color=color.red, linestyle=hline.style_dashed) hline(50, 'Strong Momentum Up', color=color.green, linestyle=hline.style_dotted) hline(0, 'Zero Line', color=color.gray) hline(-50, 'Strong Momentum Down', color=color.orange, linestyle=hline.style_dotted) hline(-150, 'Extreme Oversold', color=color.red, linestyle=hline.style_dashed) // Optional: Histogram (difference from a short signal, or raw acceleration) float hist = macdV - Signal // color color hColor = hist >= 0 ? (hist > hist[1] ? #26a69a : #b2dfdb) : hist > hist[1] ? #ffcdd2 : #ff5252 plot(hist, "Histogram", color=hColor, style=plot.style_columns) hline(0, "Zero", #787b8680) // Create alert conditions. alertcondition(hist[1] >= 0 and hist < 0, "Rising to falling", "MACD Volatility histogram switched from a rising to falling state") alertcondition(hist[1] <= 0 and hist > 0, "Falling to rising", "MACD Volatility histogram switched from a falling to rising state")
This file is under the Mozilla Public License 2.0; it is a port of the original by KivancOzbilgic, with the original licence header kept and the changes made for FloScript noted in the file.
- v1
Library refresh 2026-11-15
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.