Dukascopy
 
 
Wiki JStore Search Login

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?
 Post subject: Mass close of orders, is Slippage relevant? Post rating: 0   New post Posted: Wed 19 Dec, 2012, 23:05 
User avatar

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


 
 Post subject: Re: Mass close of orders, is Slippage relevant? Post rating: 0   New post Posted: Wed 16 Jan, 2013, 14:56 
User avatar

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


 
 Post subject: Re: Mass close of orders, is Slippage relevant? Post rating: 0   New post Posted: Thu 31 Jan, 2013, 14:20 
User avatar

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.


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com