Momentum Gradient Index (MGI)

by @solange_pips_it

S

Solange Ferreira

@solange_pips_it
Open sourceformulaMIT

Measures the acceleration of momentum by calculating the second derivative of a weighted moving average of price. It highlights when price momentum is gaining speed (positive acceleration) or slowing down (negative acceleration), useful for confirming strong continuation setups in Forex day trading, especially GBP/USD or EUR/GBP during London session on 5-15 minute charts.

0 likes💬 0 comments👁 0 views🔖 0 saves0 forks1 in use
Sign in to interact.

Try it live

Run the preview to see this indicator plotted on a real chart.

Inputs

WMA Lengthint · default 5
Acceleration Thresholdfloat · default 0.0005

Outputs / plots

Momentum Gradient Index (series)Positive Acceleration Signal (event)Negative Acceleration Signal (event)

Latest changelog

Initial release.

Version history

v17/24/2026, 5:29:18 PM

Source code

formula
let wma_price = wma(close, len)
let velocity = wma_price - shift(wma_price, 1)
let acceleration = velocity - shift(velocity, 1)
plot("MGI", acceleration)
event("PositiveAcceleration", acceleration > threshold)
event("NegativeAcceleration", acceleration < -threshold)

Comments (0)

Sign in to leave a comment.

No comments yet.

Related indicators

Want to use this?

Sign in to preview it live on a chart, fork it into your own Indicators Lab, or use it in a strategy.