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;
}MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/58198
EquiPeak 드로다운 트래커
EquiPeak 드로다운 트래커는 트레이딩 계좌의 최대 드로다운을 실시간으로 모니터링하고 기록하도록 설계된 지표입니다. 단순한 현재 손실 지표가 아니라 현재 손실과 예상 또는 이전에 기록한 최대 과거 손실과 시각적으로 비교하는 데 특히 유용합니다.
카운트다운 2.0
카운트다운은 다음 캔들 또는 다음 장이 열릴 때까지 남은 시간을 명확하고 효율적으로 추적하려는 트레이더를 위해 설계된 고급 인디케이터입니다. 이 인디케이터는 세 가지 유연한 표시 모드(해설, 차트 테두리 또는 가격 옆)를 통해 트레이딩 요구에 맞게 사용자 지정할 수 있는 솔루션을 제공합니다.