OPEN-SOURCE SCRIPT

Coins Trend Tracker HT

By AccountantX
Updated
The Coins Trend Tracker HT script provides a powerful tool for monitoring and comparing the trend signals of multiple cryptocurrencies based on their Exponential Moving Averages (EMAs). This script is particularly useful for traders who want to keep track of multiple coins across different timeframes and identify potential trading opportunities based on EMA crossovers.

Features:

Customizable Coin Selection: Users can select up to four different cryptocurrencies to monitor.
Flexible Timeframes: Users can choose two different timeframes for EMA calculations to suit their trading strategies.
Visual Trend Indicators: The script displays trend indicators (🚀 for bullish and 💀 for bearish) based on the EMA crossover status for each coin and timeframe.
Conditional Cell Coloring: Table cells are color-coded based on the EMA crossover conditions, helping users quickly identify bullish or bearish trends.
Opacity Control: Users can adjust the opacity of the table cell colors for better visualization on the chart.

How It Works:

Coin Selection: Users can select up to four different cryptocurrencies to monitor by entering their ticker symbols.

Timeframe Selection: Users can select two different timeframes for the EMA calculations. The script calculates the 5-period and 20-period EMAs for each coin and timeframe.

EMA Crossovers: The script checks for EMA crossovers (EMA 5 crossing above or below EMA 20) and updates the trend indicators and cell colors accordingly.

Table Display: The script displays a table with the selected coins, their current prices, and trend indicators for the chosen timeframes. The background color of the table cells changes based on the EMA crossover status.

Script Logic:

The get_price function retrieves the latest price of the selected coin for the specified timeframe.

The get_ema_cross function calculates the 5-period and 20-period EMAs and checks for crossover conditions.

The fill_row function populates the table with the coin data, trend indicators, and conditionally colored cells.

The table header and data rows are updated based on the user-selected coins, timeframes, and EMA crossover conditions.


Usage:

Add the script to your TradingView chart.

Customize the coin selection, timeframes, text color, default cell color, bullish and bearish cross colors, and cell opacity through the input settings.

The script will display a table with the selected coins, their current prices, and trend indicators based on the EMA crossovers for the chosen timeframes.
Release Notes
Bug fixing :
- Opacity impact all the table
- Chart time frame changing should not impact the determination of the ema crossing
Release Notes
Replacing manual insert of the coin with selection from available symbols on the platform
Trend Analysis
AccountantX

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer