Hi,
Is it possible in MC.net autotrading to code stop, limit and stoplimit orders to be good until cancelled.
Thanks,
Ben
Make orders good till cancelled
-
- Posts: 18
- Joined: 22 Feb 2014
- Has thanked: 5 times
- Been thanked: 2 times
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Make orders good till cancelled
Hello Ben,
If the broker supports various Time In Force values then you can select the one you need for the auto trading plugin in Format->Strategy Properties->Auto trading tab->Select broker plugin->select the profile you need->go to Settings.
For managed orders that is the only way as specifying TIF in the code is not possible. While for unmanaged orders you can specify the TIF in the code (please see the OrderParams Members).
If the broker supports various Time In Force values then you can select the one you need for the auto trading plugin in Format->Strategy Properties->Auto trading tab->Select broker plugin->select the profile you need->go to Settings.
For managed orders that is the only way as specifying TIF in the code is not possible. While for unmanaged orders you can specify the TIF in the code (please see the OrderParams Members).