OPEN-SOURCE SCRIPT

The Final Countdown

//Credit to ©SamRecio for the original indicator that this is based on, which is called, "HTF Bar Close Countdown".

Here are the key differences between the two indicators (That a user would care about):

1.) 10 timeframe slots (double the original number).

2.) Many more timeframe options ('1', '3', '5', '10', '15', '30', '45', '1H', '2H', '4H', '6H', '8H', '12H', 'D', 'W').

3.) Ability to structure timeframes however you want (Higher up top descending, vice versa, or just randomly.).

4.) Support for hour-based timeframes (1H, 2H, etc.).

5.) Displays minutes as numbers, hours with a number followed by H (ex. 1H), and anything above with a letter (D for day, W for week).

6.) Dynamic colors based on remaining time percentage (green->yellow->red) with two user-defined thresholds.

7.) Alerts for when timeframes are close to closing (yellow->red).

8.) More granular timeframe selection options.

9.) Background colors for an additional visual alert.
------Colors background the selected color for each timeframe (Default is all timeframes are blue with 80% transparency).
------This does not repaint, so the color will persist once the red condition is over.
------As soon as you leave the timeframe though, it will be erased and the new timeframe will begin tracking red conditions.
------It always starts from the current bar, so it is not applicable to historical bars unless you leave it running for an extended period of time.
------Do note that since this is not actual paint or colored pencils, the colors do not blend.
------The most recent timeframe to enter a red condition will be the background that you see unless you leave the timeframe and return.
--------------------------------------------------------------------------------------------------------------------
Now for the description and instructions....

IT'S THE FINAL COUNTDOWN!

This indicator helps shorter-timeframe traders track multiple timeframe closings simultaneously, providing visual, audio and notification alerts when bars are nearing their close. It's particularly useful for traders who want to prepare for potential price action around bar closings across different timeframes. If you're a HODL till you're broke kind of trader, you don't need this.

-------------------------------
Multi-Timeframe Tracking
-------------------------------
- Monitors up to 10 different timeframes simultaneously
- Supports various timeframes from 1 minute to weekly (1m, 3m, 5m, 10m, 15m, 30m, 45m, 1H, 2H, 4H, 6H, 8H, 12H, Daily, Weekly)
- Timeframes can be arranged in any order (ascending, descending, or custom)

-----------------
Visual Display
-----------------
- Shows a countdown timer for each selected timeframe
- Dynamic color changes based on time remaining:
Green: More than 15% of bar time remaining
Yellow: Between 15% and 5% remaining
Red: Less than 5% remaining
- Customizable background colors appear when timeframes enter their red zone

----------------
Alert System
----------------
- Built-in alerts trigger when any timeframe enters its red zone
- Each timeframe can have its alerts toggled independently
------
-------------
--------------------------
- Setup Instructions -
--------------------------
-------------
------

-------------------------
Timeframe Selection
-------------------------
- Choose up to 10 timeframes to monitor
- Each timeframe has its own toggle switch to turn it on/off
- Default configuration starts from 5m and goes up to 12H

-------------------------
Visual Customization
-------------------------
- Adjust the table size, position
- Customize frame and border colors
- Modify the yellow and red threshold percentages

--------------------------------
Background Color Settings
--------------------------------
- Enable/disable background colors for each timeframe
- Choose custom colors for each timeframe's background
- Default setting is blue (with a fixed 80% transparency)

-------------
Usage Tips
-------------
- Use the countdown table to prepare for multiple timeframe closes as big moves (especially reversals) tend to begin come after higher timeframe changes (sometimes to the second).
- Watch for color changes to anticipate important closing periods to avoid getting trapped in bad trade (please always use stop losses if trading, in general).
- Set up alerts for critical timeframes that require immediate attention (2H, 4H, etc.).
- Use background colors as an additional visual cue for timeframe closes.
- Position the table where it won't interfere with your chart analysis.


multitimeframe

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?


Juga pada:

Penafian