Moving Average of Oscillator (OsMA) Trendline Indicator for MT4 & MT5
Trendlines drawn automatically on the Moving Average of Oscillator (OsMA) in the indicator window, the same way you would connect its peaks and bottoms by hand. See when OsMA breaks or reaches a line, and get an alert if you like.
What is the Moving Average of Oscillator (OsMA)?
The idea: What is OsMA?
OsMA (Moving Average of Oscillator) is the difference between MACD and its signal line. MACD itself, developed by Gerald Appel, is the gap between a fast and a slow exponential moving average of price, and its signal line is an average of MACD. It equals the MACD histogram when the same signal-line calculation is used. The histogram that MetaTrader’s own MACD indicator draws shows the MACD main line, not OsMA.
How traders read it
OsMA is above zero when MACD is above its signal line, and below zero when MACD is below it, so a cross of the zero line is the same event as MACD crossing its signal line. Because OsMA shows the gap between the two lines, a narrowing gap shows MACD moving closer to its signal line, and a widening gap shows increasing separation.
What to watch for
OsMA is built from moving averages, so it follows price with a delay. It has no upper or lower limit, so it is not suited for overbought and oversold readings.
In TrueTL the fast, slow and signal periods are 12, 26 and 9 by default, and OsMA is shown as a line so trendlines can connect its peaks and bottoms.
TrueTL OsMA trendline indicator: how it works
TrueTL OsMA Trendline draws trendlines in the indicator window, from the real peaks and bottoms of the OsMA line, the same way on every symbol and timeframe. It can mark the bar and send an alert when OsMA breaks a line or comes close to it, and you can show all lines or only rising or falling ones. A trendline break is what many traders watch as a possible breakout. Other options include a triangle mode, lines that end at the break, and other chart events such as direction changes, level crosses and zone entries. A break on the oscillator sometimes comes before a break on the price chart, but not always, so use it together with the price chart. No repaint once a candle closes on the indicator’s timeframe.
How trendlines on an oscillator work, with examples: About the oscillator trendline.
OsMA trendline indicator features
- PlatformsMetaTrader 4 and MetaTrader 5, any broker, demo or live account.
- Any symbolForex pairs, stocks, indices, crypto: any MT4/MT5 symbol.
- Non repaintOnce a candle closes on the indicator’s timeframe, what is drawn stays fixed.
- Works with other MetaTrader toolsOsMA values and events are available to other MetaTrader indicators and programs through the standard iCustom() function. The PDF user guide lists every value.
- Automatic OsMA trendlinesTrendlines in the indicator window, drawn from the real peaks and bottoms of the OsMA line.
- Break and approachMarks the bar when OsMA breaks a trendline or comes close to it.
- Triangle modeDraws only two trendlines, for a cleaner indicator window.
- Cut at the breakLines end where OsMA broke them, so you see the break at a glance.
- Up, down or allShow all trendlines, only rising or only falling ones, with or without labels.
- Other timeframesCalculate OsMA on a higher or lower timeframe and see it on your chart, with optional smoothing.
- Level lineA reference level (by default 0) for display, filters and level-cross events.
- Offline chartsWorks with Renko and other offline charts too.
- Alerts on chart eventsTrendline break and approach, OsMA direction and level events, with 5 trigger slots. Popup, push, email, sound, Telegram, CSV log or a chart pictogram. Highly customizable: alert timing (after the candle closes, before it closes, or both), a time window, an interval limit and a test message. Alerts also work on the trendlines and horizontal lines you draw yourself.
- Strategy Tester and fast backtestingRuns in the MetaTrader Strategy Tester, also for visual backtesting. Refresh and cache modes for repeated tests: the cache mode saves the results, so a repeated test is at least 700% faster.
Common questions about the OsMA trendline indicator
What are the best settings for the OsMA trendline indicator?
There is no single best setting. We chose the default settings to suit most traders. The indicator has many settings so that everyone can fit it to their own needs, and if you want something different, you can customize it. The PDF manual explains every setting.
What are the default settings of the OsMA trendline indicator in TrueTL?
In TrueTL the fast, slow and signal periods are 12, 26 and 9 by default, and OsMA is shown as a line so trendlines can connect its peaks and bottoms.
How do traders read the OsMA?
OsMA is above zero when MACD is above its signal line, and below zero when MACD is below it, so a cross of the zero line is the same event as MACD crossing its signal line.
Is the OsMA trendline indicator non repaint?
Once a candle closes on the indicator’s timeframe, the trendlines and break marks stay fixed. On a multi timeframe setting, the closed candle of the higher timeframe decides: on a lower timeframe a line can disappear even a few candles back. That is normal.
Does it work on MT4 and MT5?
Yes. TrueTL OsMA Trendline is available for MetaTrader 4 and MetaTrader 5, with any broker, on demo or live accounts, and on any symbol the platform offers.
Can I get an alert?
Yes. Alerts for a trendline break or approach can come as a popup, push message, email, sound, Telegram message, CSV log line or a pictogram on the chart.
Do alerts work when my computer is off?
No. Alerts are sent by the MetaTrader terminal where the indicator runs, and MetaTrader does not run in the cloud: it runs on a computer, so the computer and MetaTrader must be on, with the indicator on a chart. If that is a problem, run MetaTrader with the indicators on a VPS (a remote Windows computer that is always on). Push messages are also sent only while MetaTrader is running, on your computer or on the VPS; they then arrive on your phone.
Is there a free version?
TrueTL OsMA Trendline is part of the paid license; one license covers all 72 indicators. There is also a free MT4 & MT5 oscillator pack of 37 multi-timeframe oscillators. The free pack does not draw trendlines or divergences. The PDF manual is free to download.
More answers on the Support page.
One license, all 72 indicators
TrueTL OsMA Trendline comes with the OsMA Divergence indicator, True Trendline, True S/R Level and every other oscillator trendline and divergence indicator.


