- Delete Objects from EA
- Close 2 Trades
- Array issue... i dont understand
bool HistorySelect( datetime from_date, // From date datetime to_date // To date );
If you want to check all the history, you have to set:
HistorySelect(0, TimeCurrent());
https://www.mql5.com/en/docs/trading/historyselect
Regards.
- www.mql5.com
I want to count history deals from down to up. But my code not work perfectly. Please help me anyone.
You're using an unsigned integer than cannot be decremented below zero so your for loop will run continuously. Change to int.
Or use the form
for(uint x = ...; x > 0;){ --x; Time[x] ... }
You're using an unsigned integer than cannot be decremented below zero so your for loop will run continuously. Change to int.
Thank you @nicholishen , your advice nice and it works perfectly. :)
Your code is a single loop, how to decrease? May be you need overall loop times. For example: loop once in a minute.
Thank you
If you want to check all the history, you have to set:
https://www.mql5.com/en/docs/trading/historyselect
Regards.
Thank you, I corrected the selection.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use