TradingView
Ox_kali
26 mar 2023 02:49

Multi-Timeframe Trend Indicator 

Bitcoin / DollarBitfinex

Opis

The Multi-Timeframe Trend Indicator (MTFTI) is a trend analysis tool designed to help traders quickly and easily assess the market direction across multiple timeframes. With the help of a table to visualize the trends on different timeframes.

Key features:
  • Multi-timeframe trend indicator for the following timeframes: 5 minutes, 15 minutes, 30 minutes, 1 hour, 2 hours, 4 hours, 6 hours, 12 hours, 1 day, and 1 week and average.
  • Displays trends for selected timeframes in a table.
  • Considers short and long-term exponential moving averages (EMAs) to determine trends.
  • Calculation of the average trend for all timeframes.
  • Display of trends with appropriate coloring for better readability (green for "Up", red for "Down", and intermediate shades for neutral or strong trends).


List of Parameters
  • Customization of the table's position on the screen (top-left, top-right, middle-left, middle-right, bottom-left, bottom-right).
  • Setting the lengths of the short and long-term exponential moving averages.
  • Option to activate or deactivate the display of EMAs for better customization (true by default).



Please note that the MTFTI is not a guarantee of future market performance and should be used in conjunction with proper risk management. Always ensure that you have a thorough understanding of the indicator’s methodology and its limitations before making any investment decisions. Additionally, past performance is not indicative of future results.

Informacje o Wersji

Updated code formatting.

Informacje o Wersji

Update Note for Multi-Timeframe Trend Indicator (MTFTI)


New Features:
  • Options to Show/Hide Specific Timeframes: Users can now choose to show or hide specific timeframes in the trend table. This is controlled by the new input variables showTf1, showTf2, ..., showTf11.
  • Dynamic Average Trend Calculation: The script now calculates the average trend based only on the displayed timeframes, making the average more relevant to the user.


Modifications:
  • Removal of Trend Line on Chart: The new version does not contain the trend line (plot(0, "Trend", color=color.gray, linewidth=1, style=plot.style_stepline)) that was present in the previous version.
  • Average Trend Calculation: The calculation of the average trend (trendAvg) has been modified to account for only the active timeframes, thereby avoiding division by zero.


Code Improvements:
  • Initialization of trendSum and activeTfs Variables: New variables have been introduced to dynamically handle the calculation of the average trend.
  • Conditional Table Cell Filling: Conditions have been added for filling the table cells based on the displayed timeframes.




Informacje o Wersji


Update Note: Multi-Timeframe Trend Indicator (MTFTI)
The recent version of the MTFTI indicator introduces a series of technical and functional enhancements aimed at optimizing the trend analysis experience for users. This update focuses on extending analytical capabilities, advanced customization, and improving code efficiency.

Added Features and Optimizations :
  • Choice of Moving Average Type: Incorporation of an option allowing users to select among various types of moving averages (SMA, EMA, WMA, AMA). This feature enriches analysis by offering adaptability to diverse trading methodologies.
  • Extension of Timeframe Selections: Addition of extra timeframes, including shorter intervals such as 1min, 2min, and 3min, thus facilitating more detailed and granular analysis.
  • Customization of Display: Introduction of the capability for users to hide or display timeframes according to their preferences, offering a more targeted user experience and improved performance by reducing unnecessary calculations.
  • Dynamic Calculation of Moving Averages: Implementation of a dynamic approach for calculating moving averages via the calcMa function, allowing flexible selection of the moving average type and replacing the previous method based exclusively on the EMA.
  • In-depth Trend Analysis: Trends are now assessed using short-term and long-term moving averages for each selected timeframe, providing a more comprehensive perspective on market dynamics.
  • Advanced Alert System: Implementation of alert conditions based on the average trend value (trendAvg), activating notifications for various market situations from “Strong Down” to “Strong Up”.
  • Code Optimization: Streamlining of the code structure, notably by the early initialization of trend variables, to minimize errors and improve readability and script maintenance.




Informacje o Wersji

minor adjustment

Informacje o Wersji

Bug Fix: Fixed an issue reported by @XRIICrypto affecting the use of the 10-minute trend. I appreciate the community feedback that helps me improve this script.

In Progress: I am currently working on enhancing user experience by greying out time units that cannot be retrieved due to chart history or TradingView limitations. This update will be made available soon.

Thank you for your support and patience as I continue to develop and refine the script.
Komentarze
Aguzzer27
HELLO!!! Thanks for this amazing indicator!!! Also wanted to ask how does the indicator determine if the trend is bullish or bearish. There are times when I am confused with the indicator.

THANKS AGAIN!!!
Ox_kali
@Aguzzer27, Thank you for your feedback. To determine whether the trend is bearish or bullish, it's a simple crossover/corssunder of the 50 and 200 EMA. . I've observed that there can occasionally be a small lag in gathering trends across various timeframes. It appears that switching between timeframes two or three times helps to collect all relevant data and refresh the indicator. I'll look into the possibility of updating the system to address this concern in the future.
Aguzzer27
@Ox_kali, ok thank you for clarifying and for replying. Indicator is great 🔥🙌
ayubk
Just the indicator I was looking for long time. Thank you very much!. I have a feature request. Can you make it where I can exclude certain time frames from the table. For example I do not want to see 30,15 or 5 minutes time frame in the table.
Ox_kali
@ayubk, thanks for your feedback! I'm looking to push out an update of this feature soon!
Ox_kali
@ayubk, the update is complete. I've added a few new features, including the recalculation of the average based on the trend lines displayed by the user. I've also fixed a display bug. To enjoy these new features, please remove and re-add the indicator to your chart. Don't hesitate to send me feedback if something doesn't work as expected. I'm considering adding another trend indicator in place of the EMA in a future update. Happy trading!"
ayubk
@Ox_kali, Appreciate the quick update. Thank you and happy Trading!
Wesgodwin
Hey Ox, fantastic trend indicator, exactly what i needed thank you for sharing!! Im pretty lazy so wondered if it would be fairly simple to add all Forex pairs to this showing the trends in one large table. Obviously this wouldn't be used for any form of backtesting but would be great way to open the indicator and view all markets that are trending in one direction in one table rather than cycling through individually.
leverage_trader
Hi there, great indicator. I notice that I cant backtest it-when i move my cursor over different candles in past periods it doesn't react, it only shows the present moment trend. Unless I am missing something is there a fix for this? It would be a valuable backtest tool !
Ox_kali
@leverage_trader, Thank you for bringing this to my attention. It seems that the issue may stem from the request.security function, which is responsible for retrieving the multi-timeframe data. I will delve into the script to identify the exact cause of the problem. Once I have pinpointed the issue and made the necessary adjustments, I will publish an update.
Więcej