int day_of_week_start=1;//monday int day_of_week_stop=3//wednesday int counter=0; for (int i=OrdersHistoryTotal()-1; i>=0; i--) { if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)) { if(OrderMagicNumber()==Magic) { if(OrderSymbol()==Symbol()) { if(TimeDayOfWeek(OrderOpenTime())>=day_of_week_start && TimeDayOfWeek(OrderOpenTime())<day_of_week_stop) { counter++; } } } } }
Vasyl Nosal:
Ty sir never thought will get answer so quickly :)
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
since as long i know EA can only count order trade only, and i try to find it in google but found nothing
please anyone who knows tell me anything you could share link, article ebook etc or just simple answer possible or not
so i know that my find is not in vain. thank you :)