Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
Problem with closing position on end of candle http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=146&t=57020 |
Page 1 of 1 |
Author: | michal222 [ Sun 05 May, 2019, 22:42 ] | |||
Post subject: | Problem with closing position on end of candle | |||
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 ?
|
Author: | sircris [ Mon 10 Jun, 2019, 03:09 ] |
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. |
Page 1 of 1 |