Different Perspective: By using the RSI as the source for MACD calculation, you are incorporating the RSI's characteristics into the MACD indicator. The RSI measures the speed and change of price movements, while the MACD focuses on the convergence and divergence of moving averages. Combining these two indicators may provide a different perspective on market conditions.

Smoothed MACD: Since the RSI is being used as the source for the MACD calculation, the resulting MACD line (macd1 in the code) may exhibit smoother movements compared to a traditional MACD calculated directly from price data. This smoothing effect could potentially help filter out noise and provide a clearer representation of trend changes.

RSI Confirmation: The RSI is often used to identify overbought and oversold conditions. By incorporating the RSI into the MACD calculation, you can potentially gain additional confirmation when the MACD line crosses above or below zero. For example, if the MACD line crosses above zero and the RSI is in an oversold region, it could provide stronger confirmation for a bullish signal.

Example:
Скрипт с открытым кодом

В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.

Хотите использовать этот скрипт на графике?