dogabot dogabot

strategy

MACD Trading Rule

How dogabot’s MACD rule uses histogram sign for buy and sell signals in backtests and automations.

strategymacdmomentum

The MACD rule reads MACD histogram momentum.

For the indicator formula, see MACD — Formula.

Signals

ConditionSignal
Histogram > 0Buy
Histogram < 0Sell

This is not a MACD-line vs signal-line crossover in the engine—only histogram sign matters.

Default parameters

ParameterDefault
fast12
slow26
signal9

Where to use it

Entry, increase, reversal, exit, and directional filters. Trend-classified.

Tips

Example

12 / 26 / 9 on BTC/USDT 1d. Histogram −120+40 between two daily closes → buy (histogram > 0). Later histogram +80−10sell. Remember: line crossovers in the UI tooltip are not what the engine evaluates.

Related in the app

Ready to put this into practice?

Create a free account and explore dogabot with paper trading.

Try Backtest