|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
Mass close of orders, is Slippage relevant? |
hyperscalper
|
Post subject: Mass close of orders, is Slippage relevant? |
Post rating: 0
|
Posted: Wed 19 Dec, 2012, 23:05
|
|
User rating: 98
Joined: Mon 23 Jul, 2012, 02:02 Posts: 656 Location: United States, Durham, NC
|
If I use IOrder.close then I can supply price and slippage parameters. I currently use this method of individual order closure. Specifying slippage may influence the reliability of the closure. To guarantee closure, I specify very large slippage parameters.
However, if I use IEngine.closeOrders(Collection) then how can I control slippage to guarantee immediate closure? Does this "mass closure" method unconditionally close without regard to any slippage or other conditions? Is slippage unnecessary here?
If this is unconditional and immediate closure, then there is no issue here. That's fine, and I'll use the mass closure method where appropriate.
But if slippage could be a factor using "mass closure", then could you provide some way to specify slippage so that mass closure could be guaranteed execution while the market is open?
Thanks for considering this. HyperScalper
|
|
|
|
 |
hyperscalper
|
Post subject: Re: Mass close of orders, is Slippage relevant? |
Post rating: 0
|
Posted: Wed 16 Jan, 2013, 14:56
|
|
User rating: 98
Joined: Mon 23 Jul, 2012, 02:02 Posts: 656 Location: United States, Durham, NC
|
Just an update on my experience. The concept of slippage doesn't seem to apply to mass closure.
I've used mass closure now in fast, intense Live trading It works great, and appears to be an unconditional close every time, even on dozens of simultaneous positions.
HyperScalper
|
|
|
|
 |
API Support
|
Post subject: Re: Mass close of orders, is Slippage relevant? |
Post rating: 0
|
Posted: Thu 31 Jan, 2013, 14:20
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Yes, you are absolutely right. The concept of slippage doesn't apply to a mass closure, due to by using IEngine.closeOrders we cannot specify the desired close price and therefore - slippage doesn't make sense.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|