TIF, stop orders, ...

Questions about MultiCharts .NET and user contributed studies.
sam028
Posts: 4
Joined: 01 Feb 2011
Has thanked: 3 times
Been thanked: 1 time
Contact:

TIF, stop orders, ...

Postby sam028 » 17 Oct 2012

Maybe a silly question, but as I'm a bit stuck with it...

I have something like this:

Code: Select all

protected override void Create() {
buy_stop = OrderCreator.Stop(new SOrderParameters(Contracts.Default, "Buy Stop", EOrderAction.Buy , OrderExit.FromAll));
...

protected override void CalcBar(){
if (my condition == true) {
buy_stop.Send(MyStopPrice, 1);
}
But this order seems to be valid only during this bar.
So, how to keep this stop order alive, let's say with GTC as its TIF ?

Thx

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

Re: TIF, stop orders, ...

Postby Henry MultiСharts » 18 Oct 2012

Hello sam028,

All orders generated in auto trading live only until the end of the bar they were sent.
In order to keep the order active at the broker it should be generated on each bar.
In order to cancel the order you need to stop sending it.


Return to “MultiCharts .NET”