Skip to content
72lab

OsMA EA: no-code builder for MT4 / MT5

TrendOsMA is the MACD line minus the signal line, also known as the MACD histogram. Bars turning from negative to positive show momentum picking up. It's often used to catch the stretch where a trend accelerates.

Rules you can build with it

Works as an entry rule or an exit rule. Short rules are mirrored automatically.

  • LongOsMA rises
    ShortOsMA falls
  • LongOsMA falls
    ShortOsMA rises
  • LongOsMA is above 0 points(adjustable level)
    ShortOsMA is below 0 points
  • LongOsMA is below 0 points(adjustable level)
    ShortOsMA is above 0 points
  • LongOsMA crosses above 0 points(adjustable level)
    ShortOsMA crosses below 0 points
  • LongOsMA crosses below 0 points(adjustable level)
    ShortOsMA crosses above 0 points
  • LongOsMA turns up
    ShortOsMA turns down
  • LongOsMA turns down
    ShortOsMA turns up

Settings

SettingsDefaultRange
Fast period122 – 50
Slow period265 – 100
Signal period92 – 30
PriceCloseClose / Opening price / High / Low / Median price / Typical price / Weighted close
Level (points)0-300 – 300

How the backtest and the EA calculate it

Equal to MT5's OsMA (MACD line − signal line, which is a simple average); levels are in points, and short rules mirror the level around zero.

Signals use only closed candles and are filled at the next candle's open. The exported EA checks conditions in the same order, so you get similar results in the MT5 Strategy Tester.

Example strategies

Example 1
  • Entry · OsMA (12, 26, 9, Close): OsMA rises
  • Stop-loss 300 points, take-profit 600 points
Open in the EA Workshop
Example 2
  • Entry · OsMA (12, 26, 9, Close): OsMA rises
  • Entry · Moving Average (50, EMA, Close): MA rises
  • Stop-loss 300 points, take-profit 600 points
Open in the EA Workshop

Examples are just a starting point: open one to change settings or add filters, then check it with backtests and robustness tests. Backtest results don't indicate future returns.