Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

getting correct date and time when using backtester
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=200&t=57709
Page 1 of 1

Author:  us_copiosus [ Thu 02 Sep, 2021, 02:47 ]
Post subject:  getting correct date and time when using backtester

Hi
// Current Date
// create a LocalDate object
LocalDate localdate = LocalDate.now();
date_current = localdate.toString();

// Current Time
// create a LocalTime object
LocalTime localtime = LocalTime.now();


how do I code the above to get the date and time from the historic backtester ?

Bob M

  Page 1 of 1