I was running a strategy on GBP/USD. On 2009.05.11 02:07 the strategy submitted a trade with a SL=1.5211.0
The trade and SL were correctly registered.
The SL was reached 1st time at 2009.05.11 03:53:30.
However the SL was not triggered and executed by the JForex-engine until more than 3 hours later at 2009.05.11 07:06:58.045.
When debugging this behaviour I found out that the tick data was missing and thus
no ticks were processed by the tester-engine
between Mon 2009.05.11
03:13:54.670 and Mon 2009.05.11
07:06:58.045
The chart shows bars on all periods except the ticks for the missing 3 hours.
I accidentally stumbled across this gap as the SL of the trade was not executed. I now question, if this happens more often unrecognized. This could of course lead to false trading signals and results in tester.
The question now is why
1) JForex didn't download the data and
2) didn't detect the data gap
JForex could detect inconsistencies in the data by checking bar-data against the last processed tick and take measure (reload data), should there be an inconsistency (i.e. time of last tick processed is before start time of bar, but bar close price not identical with tick price).
The following logging shows the tick-gap:
Quote:
[onTick] ...debug: ticktime=Mon 2009.05.11 03:13:32.987
[onTick] ...debug: ticktime=Mon 2009.05.11 03:13:33.216
[onTick] ...debug: ticktime=Mon 2009.05.11 03:13:37.004
[onTick] ...debug: ticktime=Mon 2009.05.11 03:13:37.124
[onTick] ...debug: ticktime=Mon 2009.05.11 03:13:54.500
[onTick] ...debug: ticktime=Mon 2009.05.11 03:13:54.670
[onBar] ...debug: 01.Period.ONE_HOUR @Mon 2009.05.11 04:00:00.000 lastTick@Mon 2009.05.11 03:13:54.670
[onBar] ...debug: 01.Period.ONE_HOUR @Mon 2009.05.11 05:00:00.000 lastTick@Mon 2009.05.11 03:13:54.670
[onBar] ...debug: 01.Period.ONE_HOUR @Mon 2009.05.11 06:00:00.000 lastTick@Mon 2009.05.11 03:13:54.670
[onBar] ...debug: 01.Period.ONE_HOUR @Mon 2009.05.11 07:00:00.000 lastTick@Mon 2009.05.11 03:13:54.670
[onTick] ...debug: ticktime=Mon 2009.05.11 07:06:58.045
[S01Set81_B5P1T2/2-IND240-GBUS-WENOTRADES-GMT:DK] @Mon 2009.05.11 07:06:58.045 - CLOSE.CONDITION.MET@JF: Long.SL1 met on SELLSide. SL=1.5211.0 >= Curr.Bid=1.5182.5
Best RR.