Can someone help me add a time filter to my EA? I want the EA to only look for trades in local time between something like 7:25 to 8:05. I can do it for hour only, but adding the minutes got me confused.
EAs: Spread filter VS News filter 3 replies
Help adding MA filter to indy 0 replies
Adding trading hours filter code for EA 3 replies
Help adding a filter to the Freebie Indicator 3 replies
Adding email alert to Madro filter? 0 replies
MqlDateTime m; TimeLocal(m); int tSpan = m.hour*60 + m.min; if (tSpan>= 7*60 + 25 && tSpan<= 8*60 + 5) { //...codes... }