- how to add in a EA.
- !!! Helping for free by coding of simple mql4(5) task.
- Can someone please add time option to this ea
can someone help me to add time filter in my ea.
This is a general topic, you can research it.
extern int StartHour=1;
extern int StopHour=24;
.
.
.
BuyMode= .... && Hour()>=StartHour && Hour()<=StopHour;
--------------------------------------------------------------------------------
extern int StartDay=1;
extern int StopDay=31;
.
.
.
BuyMode= .... && Day()>StartDay && Day()< StopDay ;
----------------------------------------------------------------------------------
extern int week=1; // (0-Sunday,1,2,3,4,5,6)
.
.
.
BuyMode= .... && DayOfWeek()==week ;
----------------------------------------------------------------------------------
Be sure to read this https://docs.mql4.com/dateandtime
- docs.mql4.com
No free help
Or pay someone. Top of every page is the link Freelance.
Hiring to write script
- General - MQL5 programming forum
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use