당사 팬 페이지에 가입하십시오
Time in microseconds (µs) since 01/01/1970 - MetaTrader 5용 라이브러리
- 조회수:
- 3867
- 평가:
- 게시됨:
- 2021.07.27 23:41
- 업데이트됨:
- 2021.07.28 02:21
- 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
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(""); } //+------------------------------------------------------------------+
& moving average , two rsi filters.
AO n Stochasticawesome oscillator, stochastic filter. expert
"The Fisher Stochastic Center Of Gravity" was created by John Ehlers (УCybernetic Analysis For Stocks And FuturesФ , pg.95)
Price LineShows Last Price, Daily percentage change and Time based on Input selection to the Price Line