OPEN-SOURCE SCRIPT

buy/sell signals with Support/Resistance (InvestYourAsset)

📣The present indicator is a MACD based buy/sell signals indicator with support and resistance, that can be used to identify potential buy and sell signals in a security's price.

📣It is based on the MACD (Moving Average Convergence Divergence) indicator, which is a momentum indicator that shows the relationship between two moving averages of a security's price.

📣 The indicator also plots support and resistance levels, which can be used to confirm buy and sell signals. The support and resistance can also be used as a stoploss for existing position.

👉 To use the indicator, simply add it to your trading chart. The indicator will plot three sections:

📈 Price and Signals: This section plots the security's price and the MACD buy and sell signals.

📈 MACD Oscillator: This section plots the MACD oscillator, which is a histogram that shows the difference between the two moving averages.

📈 Moving Averages: This section plots the two moving averages that the MACD oscillator is based on.

📈 Support and Resistance: This section plots support and resistance levels, which are calculated based on the security's recent price action.


👉 To identify buy and sell signals, you can look for the following:
snapshot

📈 Buy signal: When shorter Moving Average crosses over longer Moving Average.

📈 Sell signal: When shorter moving average crosses under longer moving average.

📈 You can also look for divergences between the MACD oscillator and the security's price. A divergence occurs when the MACD oscillator is moving in one direction, but the security's price is moving in the opposite direction. Divergences can be a sign of a potential trend reversal.

👉 To confirm buy and sell signals, you can look for support and resistance levels take a look at below snapshot. If a buy signal occurs at a support level, it is a stronger signal than if it occurs at a random price level. Similarly, if a sell signal occurs at a resistance level, it is a stronger signal than if it occurs at a random price level.
snapshot

Here is a example of how to use the indicator to identify buy signal:
snapshot

☑ Add the indicator to your trading chart.

☑Look for a buy signal when short MA crosses over Long MA.

☑Look for the buy signal to occur at a support level.

☑Enter a long position at the next candle.

☑Place a stop loss order below the support level.

☑Take profit when the MACD line crosses below the signal line, or when the security reaches a resistance level.


Here is an example of how to use the indicator to identify a sell signal:
snapshot

☑Add the indicator to your trading chart.

☑Look for a sell signal, when shorter moving average crosses under longer moving average.

☑Look for the sell signal to occur at a resistance level.

☑Enter a short position at the next candle.

☑Place a stop loss order above the resistance level.

☑Take profit when the MACD line crosses above the signal line, or when the security reaches a support level.


✅Things to consider while using the indicator:

📈Look for buy signals in an uptrend and sell signals in a downtrend. This will increase the likelihood of your trades being successful.

📈Place your stop losses below the previous swing low or support for buy signals and above the previous swing high or resistance for sell signals. This will help to limit your losses if the trade goes against you.

📈Consider taking profits at key resistance and support levels. This will help you to lock in your profits and avoid giving them back to the market.

Follow us for timely updates regarding indicators that we may publish in future and give it a like if you appreciate the indicator.
Breadth IndicatorsbuysellsignalhighprobabilityindicatorstrategymacdivergenceMoving Averagesresistance_levelstrategysupportsupportandresistancezonesswingtradingTrend Analysis

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