Buy only on Timeframes?
Yes you can use a
datetimeVariable 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();
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?