- Why does this code does not work?
- this code does not work ?
- is this true?
i want to calculate the orders number that was opened and close in last 24 hours ,and write the code below ,but ,it seems not work .
Do it like this . . . How to use the SRC button.
If there is a lot of code it can be too big for the box . . . in that case you need to add the mq4 file as an attachment,
i am very sorry ,after i write the topic ,i cannot upload the code use src mode ,and till now i can loggin the forum normally
my code as follow :
int limit() { int num=0; int orders=orderstotal(); int timenow=timelocal(); for(int cnt=0;cnt<orders;cnt++) { orderselect(cnt,select_by pos,mode history) if(orderopentime()>timenow- 24*3600) num++ } return(num); }
i am very sorry ,after i write the topic ,i cannot upload the code use src mode ,and till now i can loggin the forum normally
i am very sorry ,after i write the topic ,i cannot upload the code use src mode ,and till now i can loggin the forum normally
int timenow=timelocal(); // No such function
i want to calculate the orders number that was opened and close in last 24 hours ,and write the code below ,but ,it seems not work .
Beside of using TimeCurrent()
You have to search inside from OrdersHistoryTotal()
OrdersTotal() are trades still open not be closed
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use