MTF countdown and spread
- 지표
- Mohamed Moumni
- 버전: 1.17
MTF (Multi-Timeframe) Countdown Timer indicator, designed for MetaTrader 4 (MT4). The indicator displays the remaining time for new candles across multiple timeframes, along with other essential trading information such as server time, local time, and the spread of custom currency pairs.
Features:
- Multi-Timeframe Countdown: Displays the time remaining for the next candle in up to six configurable timeframes, such as M5, H1, or D1.
- Customizable Appearance:
- Background, border, and text colors can be personalized.
- Font size and style are adjustable, supporting fonts like Consolas or Courier New.
- The user can position the panel anywhere on the chart (top-left, bottom-right, etc.).
- Time Information:
- Shows both server time and local time in the chosen colors.
- Currency Pair Spread: Displays the current spread (in pips) for a list of predefined or custom currency pairs.
- Flashing Countdown: As the timer approaches a configurable threshold (e.g., 10 seconds), the countdown flashes to alert the trader of the imminent new candle.
- Panel Title: A configurable title is displayed at the top of the panel for clarity.
Inputs:
- Custom Timeframes: The user can enable/disable specific timeframes (e.g., M5, H1) to show or hide them from the countdown.
- Custom Currency Pairs: A list of currency pairs can be customized to show the spread for the pairs of interest.
Label Creation:
The indicator dynamically creates labels for the timeframes, time data, and currency pairs. Each label shows information like the remaining time for the current candle and the current spread for each currency.
Design:
The panel is visually customizable with options for colors, fonts, and spacing, allowing traders to tailor the appearance to their preferences. It includes a countdown timer that updates every second for active timeframes, showing the remaining time until the next candle.
This code provides a highly informative and visually customizable interface for traders who rely on multi-timeframe analysis and real-time data.