AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Void ontimer mql45/28/2023 ![]() ObjectSetText( "ServerFault", "Server Fault", 25, "Arial",Magenta) ObjectSet( "ServerFault", OBJPROP_ANCHOR, ANCHOR_RIGHT) ObjectSet( "ServerFault", OBJPROP_HIDDEN, 1) ObjectSet( "ServerFault", OBJPROP_CORNER, 3) ObjectSet( "ServerFault", OBJPROP_YDISTANCE, 20) ObjectSet( "ServerFault", OBJPROP_XDISTANCE, 10) ObjectCreate( "ServerFault", OBJ_LABEL, 0, 0, 0) if(( TimeMinute( TimeLocal())- Minute())> 1) What am i doing wrong here? void OnTimer() The timing only works correctly when i output the time in seconds (datetime TSeconds = c ) to the Comment() function. Have tried to convert the code to mql5 and have found some strange behaviour. It also warns me when a Symbol has not had a new tick for two minutes. ![]() It flashes an object and plays a sound for one second when a new bar is created. Here is the mql4 code (and below it the mql5 code) of an OnTimer function that works well in MT4.
0 Comments
Read More
Leave a Reply. |