OPEN-SOURCE SCRIPT

EMA Cross and MACD Signal Combined

Updated
The rule is simple.

When MACD crosses up, it is supposed to give a buy signal. However, before entering into a Long position, there is a need for a confirmation. This confirmation can be from a down trendline breakout or from another indicator.

In this case, I've chosen the Exponential Moving Average Cross to be as the confirmation.

The Buy Signal will appear when there it fulfills the following conditions:-
i. The MACD line is above the Signal Line
ii. The fast EMA crosses the Slow EMA

The Sell signal will appears when the opposite of the above condition is met.

This indicator is meant for the Swing Trader whom would like to hold a position for a long time.
Release Notes
Adding in the title
Release Notes
Added Momentum EMA Level to determine possible rebound level with high momentum.
Release Notes
Added in a simple alert function to trigger when to Buy / Sell
Release Notes
Added in the alert function.
Release Notes
Changed title
Exponential Moving Average (EMA)Moving Average Convergence / Divergence (MACD)macdcross

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer