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
How do you check opened orders that have not closed yet if you don't check current orders?
If it opened 7 hours ago doesn't necessarily mean that it opened before today.
is wrong
is correct
.
Same goes for
I dont understand why should i compare to tomorow.
Also there is no balance adj and pending orders.
And i think that i dont need to check current orders if i check every opened trade, it doesnt matter if it is closed or not.
If it opened 7 hours ago doesn't necessarily mean that it opened before today.
is wrong
is correct
.
Same goes for
7 hours condition is intentional, that works fine.
I have corrected but it doesn’t change anything. Still there are multiple trades entry during one day. (opening trade, close by SL, open a new one - like in attached screen)
Plz, explain me what is the difference in your proposed FOR cycle formula (for(; pos/i....)
Why? this condition doesnt work?
TimeDay(LastTimeforClosed()) < TimeDay(TimeCurrent())
Ok i will, but i have no idea how to make the code resistant for balance adj
I know... this condition do the job (7 Hours intetionally)
Why do newbies insist that their code is correct when the more experienced and knowledgeable users are telling them it is wrong!
If your code does not work, then it is WRONG. Stop rejecting the CORRECT answers just because you don't understand it. Put in the effort and don't waist the users time for trying to teach you the ABC alphabet of coding.
Do you really think that doctors start out doing surgery on their first days of University. NO! They go through many long years of learning, research and training!
You must do the same! Go out and first learn how to properly code in C and C++ and then start with very simple things and slowly build up.
Do the research. Learn to code properly. Learn the basics of coding FIRST, before even attempting to code an Indicator or EA.
You are only selecting from History which is Closed trades. I modified your proc to check for an open order and return the current time (if you don't want multiple orders open). And you have two OrderSelects which is unecessary.
int LastTimeforClosed() {
} // end for return(lastTime);
}
You are only selecting from History which is Closed trades. I modified your proc to check for an open order and return the current time (if you don't want multiple orders open). And you have two OrderSelects which is unecessary.
}
Thank you for your reply, but the problem is that, the ea opens a trade after previous was opened and closed during the same day. See screen attached.