거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
라이브러리

Timer - MetaTrader 5용 라이브러리

조회수:
882
평가:
(6)
게시됨:
2025.03.11 14:58
\MQL5\Experts\Senails\mql5-timer\test\
index.mq5 (0.9 KB) 조회
\MQL5\Experts\Senails\mql5-timer\
index.mqh (5.38 KB) 조회
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Callback interface for timer

You can also use the npm package manager to download
npm i mql5-timer
example:
#include "../index.mqh";

ulong intervalId; // id for cancel

void OnInit(void) {
    Timer::setTimeout(Callback1, 3000, "321"); // after 3000ms
    Timer::setTimeout(Callback2, 2000); // after 2000ms

    intervalId = Timer::setInterval(myCallback3, 800, "myCallback4 800"); // every 800ms

    // any type of param
    TypedTimer<int>::setTimeout(Callback4, 1000, 123); // after 1000ms
    TypedTimer<string>::setInterval(myCallback5, 1800, "myCallback4 1800"); // every 800ms
}

void Callback1(string value) {
    Print("Called with value: ", value);
}
void Callback2() {
    Print("Called with value: ", "void");
}
void myCallback3(string param) {
    Print(param);
    Timer::clearInterval(intervalId);
}

void Callback4(int value) {
    Print("Called with value: ", value);
}
void myCallback5(string param, ulong idForCancel) {
    Print(param);
    Timer::clearInterval(idForCancel);
}
authtor: Kuzme Shevelev (seffele@gmail.com)
github:  https://github.com/Senails/mql5-timer



MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/53101

T3 Moving Average T3 Moving Average

The T3 Indicator is an advanced moving average that combines six exponential moving averages to provide smoother price action with reduced lag compared to traditional moving averages.

Daily Vertical Lines Daily Vertical Lines

Draw daily vertical lines plus the day of week labels on the chart.

JSON JSON

Serialization and deserialization of the JSON format

MeanReversionTrendEA MeanReversionTrendEA

The EA automatically trades based on trend and mean reversion signals with validated parameters.