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
when i want to send report for each hour,i do like this:
reporthour:record which hour has been sent,to avoid send again.
if you want to handle at 01:31,07:31...just use (31 == TimeMinute(nowtime)) instead.
And if there is no tick at the top of the hour during the first minute, your code fails. It also fails over the weekend.
Just typed. Not compiled.
When run backtest on TF-H4. How to check TimeMinute(Time[0]) = 30,31.... (Etc.) ?
Sorry ! My language very weak.
But thanks for the tip.
And if there is no tick at the top of the hour during the first minute, your code fails. It also fails over the weekend.
Just typed. Not compiled.
thanks for your ideas~
if there is no tick at the top of the hour during the first minute
easy to improve,just changed to 10 >= TimeMinute(nowtime),not enough? 59 >= TimeMinute(nowtime) ~~~~
in fact,if the symbols has no tick in one minute,no need to run EA on it anymore~,my EA is running normally for months now.
It also fails over the weekend
when the market is closed in weekend,there in no tick to drive onStart() and the EA is closed.i don't think it's a problem.
thanks again~
Moggy:
when the market is closed in weekend,there in no tick to drive onStart() and the EA is closed.i don't think it's a problem.
easy to improve,just changed to 10 >= TimeMinute(nowtime),not enough?
59 >= TimeMinute(nowtime) ~~~~
You missed the point. If you want to send a report at the top of the hour, it may not on market open.
Market closed at 04:59 ET Friday - no report sent, not top of the hour.
Market opens at 18:00 ET Sunday - no tick for the first minute, no report sent.
Either you want a report sent at the top of the hour, every hour or you don't. Your code does the latter.