OPEN-SOURCE SCRIPT

Sag Macd

The main change in this code is the src variable. Instead of using an input for the source, it now calculates the 14-period RSI of the close price:
text
src = ta.rsi(close, 14)
This modification means that the MACD indicator will now be based on the RSI values rather than the original price data. The RSI is calculated using the default period of 14, which is a commonly used setting.
The rest of the code remains the same, applying the MACD calculations to the RSI values. This will result in a MACD indicator that reflects the momentum of the RSI rather than the price directly, potentially providing different insights into the market dynamics
Cycles

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明