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

Time in microseconds (µs) since 01/01/1970 - MetaTrader 5용 라이브러리

조회수:
3867
평가:
(40)
게시됨:
2021.07.27 23:41
업데이트됨:
2021.07.28 02:21
\MQL5\Include\
TimeUs.mqh (2.61 KB) 조회
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Simple class for getting the number of microseconds (µs) elapsed since January 1, 1970.
The error of this method is about 0.5 milliseconds. This is due to the temporal discreteness of updating the TimeLocal() function.

At the very beginning of your program (script, indicator or advisor), you need to create an instance of the class:

#include <TimeUs.mqh>

CTimeμs t;

There are three methods in this class, the names of which explain their purpose:

ulong GetTimeLocal();
ulong GetTimeTradeServer();
ulong GetTimeGMT();

A test script demonstrating the work of this class is provided:

#include <TimeUs.mqh>

CTimeμs t;

void OnStart() {
   while(!IsStopped()) {
      Comment("Local   - "       + string(t.GetTimeLocal()) +
              " µs\nGMT   - "    + string(t.GetTimeGMT()) +
              " µs\nServer - "   + string(t.GetTimeTradeServer()) + " µs");
   }
   Comment("");
}
//+------------------------------------------------------------------+


    Heikin Ashi Engulfing Heikin Ashi Engulfing

    & moving average , two rsi filters.

    AO n Stochastic AO n Stochastic

    awesome oscillator, stochastic filter. expert

    The Fisher Stochastic Center Of Gravity The Fisher Stochastic Center Of Gravity

    "The Fisher Stochastic Center Of Gravity" was created by John Ehlers (УCybernetic Analysis For Stocks And FuturesФ , pg.95)

    Price Line Price Line

    Shows Last Price, Daily percentage change and Time based on Input selection to the Price Line