Dukascopy
 
 
Wiki JStore Search Login

Problem with closing position on end of candle
 Post subject: Problem with closing position on end of candle Post rating: 0   New post Posted: Sun 05 May, 2019, 22:42 

User rating: 0
Joined: Sun 05 May, 2019, 22:16
Posts: 1
Location: PolandPoland
Helloo

I want make my strategy to clese position on end of day, i make position close if last tick time is after 23,55. strategy close my position but not always. Have some idea to fix it ?



Image
Image


Attachments:
closing position on time.png [96.56 KiB]
Downloaded 177 times
closing position on time 1.png [122.39 KiB]
Downloaded 179 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.
 
 Post subject: Re: Problem with closing position on end of candle Post rating: 0   New post Posted: Mon 10 Jun, 2019, 03:09 
User avatar

User rating: 2
Joined: Mon 02 Jan, 2012, 06:15
Posts: 22
Location: Argentina, CORDOBA
Your specification is this: "i make position close if last tick time is after 23,55", but your strategy does not do that, since it closes exactly at 23:55. You must close the postion when the minutes are greater than or equal to 55. Otherwise, when there is no tick in the 55th minute, your position will not close.


 

Jump to:  

cron
  © 1998-2011 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