PROTECTED SOURCE SCRIPT

MTF Stoch RSI + MACD Summary

36
“MTF Stoch RSI + MACD Summary” is a multi-timeframe momentum and trend analysis indicator designed for TradingView. Its primary function is to consolidate Stochastic RSI and MACD readings from multiple user-defined timeframes—ranging from weekly to intraday—into a compact, color-coded summary table. This allows traders to assess the alignment or divergence of momentum and trend signals across different time horizons within a single chart view, providing an efficient means to identify potential trend continuations or reversals.

The script begins by defining input parameters for both indicators. For the Stochastic RSI, the user can adjust the RSI period, stochastic length, and smoothing factors for K and D lines, while for the MACD, it allows customization of the fast and slow exponential moving average lengths. Additionally, the script offers flexibility through five user-defined timeframes, enabling multi-level signal comparison. Theme and color customization options are also included to enhance visual clarity, allowing users to personalize the display according to preference or chart background.

The computational core of the script calculates the RSI based on a chosen price source (typically the closing price) and applies a stochastic transformation with smoothing to determine momentum extremes—classifying them as overbought, mid-high, mid-low, or oversold depending on their numeric range. The MACD component, computed as the difference between the fast and slow EMAs, is evaluated to determine its state: whether it is crossing upward, crossing downward, above zero, or below zero. These states represent shifts in market momentum and potential trend direction. Both Stochastic RSI and MACD values are retrieved from each selected timeframe using the request.security() function, allowing the indicator to integrate higher and lower timeframe data in real time.

Each indicator reading is then converted into a descriptive label and paired with a specific background color for intuitive visual classification. The script organizes this information into a dynamic table displayed at the top-right corner of the chart. This table consists of three columns—timeframe, Stoch RSI status, and MACD status—and automatically updates with the latest market data on every bar close. Through this tabular format, traders can quickly interpret market conditions without having to switch between multiple charts or apply numerous separate indicators.

Overall, the MTF Stoch RSI + MACD Summary acts as a comprehensive dashboard that integrates momentum and trend indicators across multiple timeframes. By presenting data in a simplified visual layout, it enables traders to make more informed decisions based on the consistency of market signals. This facilitates clearer identification of overbought or oversold conditions, confirmation of trend strength, and early detection of potential reversals, making it a valuable tool for multi-timeframe technical analysis.

Exención de responsabilidad

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.