
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
Good idea, but what about orders not closed by OrderClose function but closed by reaching TP ?
I really apreciate your spendt time to help me. Thanks !!
Can check history and look for
OrderCloseTime()
if it !=0 differs zero the order was closed.
Can check history and look for
if it !=0 differs zero the order was closed.
seems to be the right way !
But new problem ^^
EA sends OP_BUYSTOP at 2.0000 with ticket number 1 for ticket[0], when price hit 2.0000 and changes OP_BUYSTOP to OP_BUY, ticket[0] becomes 0 instead of 1, and when Ask goes down to 2.0000 - 5 pips, the EA sends a OP_BUYSTOP at 2.0000
then there is already a OP_BUY at this price level :(
I think it's finally good !!
Big thanks to pipPod && Marco vd Heijden for support !!
:)
seems to be the right way !
But new problem ^^
EA sends OP_BUYSTOP at 2.0000 with ticket number 1 for ticket[0], when price hit 2.0000 and changes OP_BUYSTOP to OP_BUY, ticket[0] becomes 0 instead of 1, and when Ask goes down to 2.0000 - 5 pips, the EA sends a OP_BUYSTOP at 2.0000
then there is already a OP_BUY at this price level :(
It's probably not comparing prices correctly. Try this: