Agus Widjaja:
Hi, can anybody help me?
I want to add condition if (servertime > 9:30 && Cek2(get) && .... )
if use Hour()>=9 && Minutes()>=30, doesn't appropriate since during next hour minutes < 30 will be disregard.
https://www.mql5.com/en/forum/356804
you can find information on the topic here
![need help for coding a time window ! need help for coding a time window !](https://c.mql5.com/36/42/need-help-for-coding-a-time-window.jpg)
need help for coding a time window !
- 2020.11.29
- www.mql5.com
hi people. im new to this and im looking for a way to make a specific time window to trade in EA...
Agus Widjaja: I want to add condition if (servertime > 9:30 && Cek2(get) && .... )
if use Hour()>=9 && Minutes()>=30, doesn't appropriate since during next hour minutes < 30 will be disregard.
-
Hour and minutes is appropriate for your condition only between 9:30 to 10:00.
-
#define HR0930 34200 // 9*3600+30*60 datetime now = TimeCurrent(); if(time(now) >= HR0930 …) …
Find bar of the same time one day ago - MQL4 programming forum 2017.10.06 -
if(Cek2(get) && MA576_H4>MA1200_H4 && H4_H1>MA1200_H4 && MA384_H1>MA800_H1 && H1_H1>MA800_H1 && MA12_H4>MA128_H4 && MA12_H4-MA128_H4>MA121_H4-MA1281_H4 && MA12_H1>MA128_H1 && MA12_H1-MA128_H1>MA121_H1-MA1281_H1)
Are your books one column but two feet wide? No because that is unreadable. They are 6 inches, sometimes two columns, so you can read it easily. So should be your code. I'm not going to go scrolling (or moving my eyes) back and forth trying to read it.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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, can anybody help me?
I want to add condition if (servertime > 9:30 && Cek2(get) && .... )
if use Hour()>=9 && Minutes()>=30, doesn't appropriate since during next hour minutes < 30 will be disregard.