Advanced MACD Strategy Demo


No tricks, no gimmicks. Click link - add to chart. That simple.


Note, this is a DEMO version of the full version of this script.

This a variation on the MACD Strategy originally by Trading Rush on YouTube -

What you get:

✔️ Tweak a multitude of specific settings (MA lengths, R:R, SL distance etc)

✔️ Use money management and risk calculations

✔️ Draw trade info directly to chart (eg. SL size in percent, win rate etc)

✔️ Use various filters (eg. time filter, date filter)

✔️ Manage risk per position

✔️ Sync to any bot or algorithmic trading system

Not Available in this Demo Version:

❌ Pullback Filtering

❌ Custom alerts and messages

❌ Disabling Long and Short entries respectively

❌ Additional MACD Strategy Options

This strategy employs the MACD crossover strategy.

When the MACD is below the zero line of the histogram, close is above the 200EMA, and the MACD line crosses above the signal line, longs are taken

When the MACD is above the zero line of the histogram, close is below the 200EMA, and the MACD line crosses below the signal line, shorts are taken

A couple of options are given for how to calculatr stop losses.

You can choose an ATR stop loss with a set multiplier

You can choose a fixed percentage stop loss

or you can choose an EMA50 stop loss.

The Take profit is calculated by the risk of the stop loss. So a 1.5 take profit target is 1.5 times the stop loss added to the entry price.

There is also an option to filter out trades by the histogram deviation. This prevents crossovers that are too close to the histogram from being taken.

Please note I used the code for the PPO instead of the traditional MACD to make calculating these percentage deviations more consistent across multiple asset types.