Make orders good till cancelled

Questions about MultiCharts .NET and user contributed studies.
Bentley Wilburforce
Posts: 18
Joined: 22 Feb 2014
Has thanked: 5 times
Been thanked: 2 times

Make orders good till cancelled

Postby Bentley Wilburforce » 17 Jan 2015

Hi,

Is it possible in MC.net autotrading to code stop, limit and stoplimit orders to be good until cancelled.

Thanks,

Ben

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Make orders good till cancelled

Postby Henry MultiСharts » 22 Jan 2015

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).


Return to “MultiCharts .NET”