
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
Thanks Fernando
I opened a trade to try the code , and I had a large number 12054
I though it should be somewhere from 1 to 6 ?
Show your code! We can't just guess what you are doing wrong if you don't show it.
I added the code
That is incomplete. Show how you are testing it's value or printing it out.
EDIT: There is also another problem with your code:
In the presence of multiple orders (one EA multiple charts, multiple EAs, manual trading), while you are waiting for the current operation (closing, deleting, modifying) to complete, any number of other operations on other orders could have concurrently happened and changed the position indexing and count:
Loops and Closing or Deleting Orders - MQL4 programming forum
CloseOrders by FIFO Rules - Strategy Tester - MQL4 programming forum - Page 2 #16
MetaTrader 5 platform beta build 2155: MQL5 scope, global Strategy Tester and built-in Virtual Hosting updates - Best Expert Advisors - General - MQL5 programming forum #1.11
My bad I was printing the line of the code next to the day
Alert( int_OrderOpenDayOfWeek , __LINE__);
this solve it
Alert( int_OrderOpenDayOfWeek + " | ", __LINE__);
Thanks a lot Fernando and William
My bad I was printing the line of the code next to the day
Alert( int_OrderOpenDayOfWeek , __LINE__);
this solve it
Alert( int_OrderOpenDayOfWeek + " | ", __LINE__);
Thanks a lot Fernando and William