Jerk Oscillator
In physics, jerk is the rate of change of acceleration - the third derivative of position. Applied to a price series as three successive discrete differences: velocity[i] = Price[i] - Price[i-1] acceleration[i] = velocity[i] - velocity[i-1] jerk[i] = acceleration[i] - acceleration[i-1] = Price[i] - 3*Price[i-1] + 3*Price[i-2] - Price[i-3] Most momentum tools stop at the first derivative (rate of change) or occasionally the second (acceleration, as in some momentum-of- momentum oscillators). Jerk goes one step further, which makes it sensitive to the moment acceleration itself starts changing sharply - in practice, the opening tick or two of a genuinely violent break, before a slower ROC or momentum oscillator has caught up. That extra derivative comes at a real cost: differencing three times amplifies noise heavily, so the raw jerk value is one of the noisiest quantities that can be computed from OHLC data. The raw series is plotted as a reference histogram, and a short SMA-smoothed version is plotted as the line actually meant for reading - a sharp spike in the smoothed line is the signal this indicator is built to surface, not the raw histogram's bar-to-bar chatter. Notes and limitations - The raw jerk value is extremely noisy by construction - three successive differences amplify normal bar-to-bar price wiggle far more than a first-derivative momentum indicator would. Do not read the raw histogram alone as a signal. - This is a curiosity/diagnostic tool for spotting sudden regime starts, not a standalone entry system - it carries no inherent directional bias and does not distinguish a genuine breakout from a single large noisy print. - Needs 3 + (InpSmoothPeriod - 1) bars of history before the first bar is plotted. - Does not repaint - each closed bar's values are fixed once computed.
Indicator · MT5 · v1.0 · Free
About Jerk Oscillator
Jerk Oscillator is an indicator for MetaTrader 5. It has 2 settings, such as Smooth period and Applied price. MQL source code included.
Files in the download: JerkOscillator.ex5, JerkOscillator.mq5, JerkOscillator.txt.
Settings
| Setting | Default | What it does |
|---|---|---|
| Smooth period | 5 | Smoothing period applied to the raw jerk |
| Applied price | PRICE_CLOSE | Applied price |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 5 open File → Open Data Folder, then go to MQL5 → Indicators.
- Copy the .mq5 file(s) there. Put any .mqh files in MQL5 → Include.
- Open the .mq5 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the indicator from the Navigator onto a chart and adjust the settings.
Tags: Momentum · Oscillator · MT5 Indicator · MQL5 Source Code