Only one trade per day
Thank You
| Your code | MqlDateTime today; datetime NullUhr; datetime now= TimeCurrent(today); int year = today.year; int month = today.mon; int day = today.day; NullUhr = StringToTime(string(year)+"."+string(month)+"."+string(day)+" 00:00"); |
| Simplified | datetime NullUhr = date(); Find bar of the same time one day ago - MQL4 programming forum #1 & #6 (2017) |
Hello everybody,
i'am new with mql5 and i have some problems to write the function, which check for me if the EA already have trade on this day. I will be very grateful if somebody can have a look at my code. Thank you very much!