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:
快照

📈 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.
快照

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

☑ 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:
快照

☑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

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?


更多:

免责声明