Join our fan page
- Views:
- 4266
- Rating:
- Published:
- 2021.07.27 23:41
- Updated:
- 2021.07.28 02:21
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
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.

awesome oscillator, stochastic filter. expert

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

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