Hi
I’m running MC’s Stop_Loss, Breakeven_Stop and ATR_Trailing LX/SX in my strategies and they’re all cancelled and resubmitted on each bar close. Is this normal? I can understand why the trailing stop would do this, but the others?
Thanks
Stop behavior when autotrading [SOLVED]
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Stop behavior when autotrading
Hello darob,
Which broker do you use?
Is the set of orders changing on each calculation (some added, some removed)?
Is order volume changing?
Is there a market order generated while you have price orders active at broker?
Which broker do you use?
Is the set of orders changing on each calculation (some added, some removed)?
Is order volume changing?
Is there a market order generated while you have price orders active at broker?
Re: Stop behavior when autotrading
Hi Henry
IB is the broker. Entry is MarketNextBar and the stoploss and ATR trailing stop are transmitted at that time. Breakeven stop is transmitted when the floor amount is reached and they all work as an OCO group.
I’m all in on entry (unless it’s a partial fill) and all out on exit and there’s no more entries in a security once I have a position. There’s no change aside from the ATR trailing stop price level. By order volume do you mean position size? That doesn’t change, the stops mirror the entry position size.
Thanks
IB is the broker. Entry is MarketNextBar and the stoploss and ATR trailing stop are transmitted at that time. Breakeven stop is transmitted when the floor amount is reached and they all work as an OCO group.
I’m all in on entry (unless it’s a partial fill) and all out on exit and there’s no more entries in a security once I have a position. There’s no change aside from the ATR trailing stop price level. By order volume do you mean position size? That doesn’t change, the stops mirror the entry position size.
Thanks
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Stop behavior when autotrading [SOLVED]
darob,
IB connection supports order modification. Please make sure you are not changing the set of orders from calculation to calculation. If you are using multiple data series and the orders are generated when BarStatus of Data1 =-1 you need to use AllowSendOrdersAlwaysAttribute.
IB connection supports order modification. Please make sure you are not changing the set of orders from calculation to calculation. If you are using multiple data series and the orders are generated when BarStatus of Data1 =-1 you need to use AllowSendOrdersAlwaysAttribute.