This website uses cookies to enhance site navigation, analyze site usage, and assist in our marketing efforts. By clicking “Accept All” you are providing your consent to our use of all cookies. Alternatively, please provide your choice by pressing “Customize Cookies”. For more information, please read our Privacy policy
deklin
05 Jan 2015, 23:53
Re: Please convert those MT4 codes to cAlgo
Instead of TimeCurrent() use Server.Time
See:
/api/reference/internals/iserver/time
The time can be formatted using C#
http://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx
---
Instead of GetTickCount() I would just start a variable at 0 and add to it every tick.
Here is an example that incorporates both of these solutions:
@deklin