Open trade after every xx minutes in MQL5
ezzanzkhan:
hi..
i want to open trade after every xxx minutes
i am using MqlDateTime function but it is not working properly.
any help will be highly appreciated
Post your code relating to your problem and explain what the problem is.
Maybe somebody will be able to help you.
ezzanzkhan:
hi..
i want to open trade after every xxx minutes
i am using MqlDateTime function but it is not working properly.
any help will be highly appreciated
Please add the screenshots and details of the error and the code you are trying.
ezzanzkhan: i want to open trade after every xxx minutes
static datetime lastOpen=0; if(TimeCurrent() >= lastOpen + xxx * 60){ OpenTrade(); lastOpen = TimeCurrent(); }Was that so hard?
hi..
i want to open trade after every xxx minutes
i am using MqlDateTime function but it is not working properly.
any help will be highly appreciated