Yes you can use a
datetime
Variable for that.
skrantz71:
Hi,
Iam a newbee on this platform and trying my self forward...
I would like an Expert advisor that only buys/sells on a specifik time on the day.
any tips on this?
Thanks?
You could use TimeCurrent like this:
MqlDateTime dt; TimeCurrent(dt); if(dt.hour==10 && dt.min==00 && CountOpenPositions()==0) OpenPosition();

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
Iam a newbee on this platform and trying my self forward...
I would like an Expert advisor that only buys/sells on a specifik time on the day.
any tips on this?
Thanks?