tafadzwa:
Check the OrderClosePrice() vs OrderOpenPrice() if it is greater set a bool PriceExceededOpen to true
If PriceExceededOpen is true and OrderClosePrice() is very close to OrderOpenPrice() the OrderClose() . . . bear in mind the issues wiith comparing doubles . . . if you have more than one open Order you will need more than one bool

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