I used TimeCurrent() to get the current server time.. But when used it in the tester, TimeCurrent() becomes the time of the chart time at which the strategy tester is running.. I want a way to get the current time to appear on the tester.. (Tried to get the local time as well, it also equals to TimeCurrent() when called in the Tester)
Any ideas??
Thanks in advance.. :-)
Only way I know is through a DLL call.
My advice: just don't do it.
Eventually you will want to do some optimization using remote agents or sell your EA or some such thing where you have to turn DLL calls off, and then you are back to square 1.
Only way I know is through a DLL call.
My advice: just don't do it.
Eventually you will want to do some optimization using remote agents or sell your EA or some such thing where you have to turn DLL calls off, and then you are back to square 1.
Just for learning purposes, could you show me how to call the function via a DLL call, because I am not experienced in working with DLLs very much.. (I am little dumb lol.. :D)
Thanks again for you time.. Much appreciate it..:-)
Hello Anthony, Thank you very much for your reply,
Just for learning purposes, could you show me how to call the function via a DLL call, because I am not experienced in working with DLLs very much.. (I am little dumb lol.. :D)
Thanks again for you time.. Much appreciate it..:-)
After I just said "don't do it?" It would be pretty irresponsible of me to hand you a pack of cigarettes after I just expostulated on the detriments of smoking.
But I tell you what: the answer is on this forum. You will find it if you search for it.
After I just said "don't do it?" It would be pretty irresponsible of me to hand you a pack of cigarettes after I just expostulated on the detriments of smoking.
LOL... Just for once, for curiosity try the whole pack...Then never smoking again(that was my motive..) :D
But I tell you what: the answer is on this forum. You will find it if you search for it.
Okay buddy I will search it,
Anyway thanks for your time, much appreciate it.. :-)
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I used TimeCurrent() to get the current server time.. But when used it in the tester, TimeCurrent() becomes the time of the chart time at which the strategy tester is running.. I want a way to get the current time to appear on the tester.. (Tried to get the local time as well, it also equals to TimeCurrent() when called in the Tester)
Any ideas??
Thanks in advance.. :-)