Hi,
I am not sure if
new Date(bidBar.getTime())
is also a good and proper way to get the time of the bar, but what I use SimpleDateFormat, which is described here:
https://www.dukascopy.com/wiki/#Format_Date_TimeThere is another wiki page that contains a checklist that you have to consider when comparing chart data with strategy calculations:
https://www.dukascopy.com/wiki/#Indicato ... _checklistI also must say that you probably have better chances for support and help, if you provide the complete strategy. As currently it is not visible where (in what context) do you call your log() functions, etc.
And at last, this is definitely an Automated Trading issue. Normally API Support picks up these threads within 1-3 days.
The thread is currently in the Trading Platform`s Bug Report section, which is handled by Desktop Support, but Desktop Support (sadly) is ridiculously slow in response times...
I suggest to wait till mid-next week (as there is no support on the weekend at all), and if there is no response, re-post in the Automated Trading section.