Hello
I want to close all open orders at broker after a specific time:
... if time > 1720 then close all open orders at broker ...
How to code this?
Thanks!
Close all oders at broker?
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Close all oders at broker?
Hello Gaempi,
If you want your code to cancel the active orders at broker - you need to stop generating them in your code, means make order generation conditions invalid.
If you want to close your open positions - please refer to this sample code:
http://www.multicharts.com/discussion/v ... 380#p61380
If you want your code to cancel the active orders at broker - you need to stop generating them in your code, means make order generation conditions invalid.
If you want to close your open positions - please refer to this sample code:
http://www.multicharts.com/discussion/v ... 380#p61380