Post subject: Problem with closing position on end of candle
Post rating: 0
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 ?
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.
sircris
Post subject: Re: Problem with closing position on end of candle
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.