Dukascopy
 
 
Wiki JStore Search Login

Pending Orders Hanging Around Too Long
 Post subject: Pending Orders Hanging Around Too Long Post rating: 0   New post Posted: Fri 06 Dec, 2013, 17:01 
User avatar

User rating: 0
Joined: Wed 20 Nov, 2013, 07:35
Posts: 7
Location: United Kingdom,
Hi,

I have a problem with pending orders hanging around too long.

In my strategy, i have the user enter thew number of minutes an order is good for "OrderLifeTimeMinutes".

I convert that to milliseconds "OrderLifeTimeMS" = 60000 * OrderLifeTimeMinutes

I then calcuate that time an unfilled pending order should die as "TimeToDie" = LastBidCandle.CandleTime + OrderLifeTimeMS

When I run the strategy it looks like the time, TimeToDie is not calculated properly and I therefor have orders lasting longer than I would like them to. They end up getting filled when I don't want them to.

Any help would be appreciated.

Example strategy attached.

thanks


Attachments:
PendingOrderExample.vfs [33.78 KiB]
Downloaded 147 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 

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