Unisciti alla nostra fan page

Funzione per la conversione del numero di secondi in anni, mesi, giorni, ore, minuti, secondi - script per MetaTrader 5
- Visualizzazioni:
- 17
- Valutazioni:
- Pubblicato:
- 2025.05.13 11:28
-
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance
string GetTimeSpan(datetime time_sec) { if(time_sec <= 0) return "0 seconds"; string time_text = {}; datetime remaining_sec = time_sec; int years = (int)remaining_sec / 31536000; remaining_sec %= 31536000; int months = (int)remaining_sec / 2592000; remaining_sec %= 2592000; int days = (int)remaining_sec / 86400; remaining_sec %= 86400; int hours = (int)remaining_sec / 3600; remaining_sec %= 3600; int minutes = (int)remaining_sec / 60; remaining_sec %= 60; int seconds = (int)remaining_sec; if(years > 0) time_text += (string)years + " years "; if(months > 0) time_text += (string)months + " months "; if(days > 0) time_text += (string)days + " days "; if(hours > 0) time_text += (string)hours + " hours "; if(minutes > 0) time_text += (string)minutes + " minutes "; if(seconds > 0) time_text += (string)seconds + " seconds "; return time_text; }
Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/58198

The ADX (Average Directional Index) Smoothed indicator enhances the standard ADX by applying dual exponential smoothing filters to reduce noise and provide clearer trend signals. It plots three lines: smoothed +DI (blue), -DI (red), and the main ADX line (green). This refined version helps traders identify trend strength and potential direction changes with reduced false signals. The indicator excels at confirming established trends and warning of weakening momentum before actual price reversals occur, making it valuable for both trend following strategies and determining optimal entry/exit points.

The RSI Expert Advisor (EA) is an automated trading tool developed for the MetaTrader 5 (MT5) platform. This EA leverages the Relative Strength Index (RSI) to identify buy and sell signals, incorporating risk management, partial position closing, and trading hour restrictions to optimize trading performance.

Si tratta di un semplice EA a reversione media

A simple utility for monitoring long and short swaps of a single symbol. If your broker-dealer's swaps are specified in points instead of account currency, this utility automatically converts points into account currency. Swaps are tripled on Wednesday. Horizontal and vertical alignment can be adjusted in the inputs.