Dukascopy
 
 
Wiki JStore Search Login

getting correct date and time when using backtester
 Post subject: getting correct date and time when using backtester Post rating: 0   New post Posted: Thu 02 Sep, 2021, 02:47 
User avatar

User rating: 2
Joined: Fri 02 Mar, 2012, 22:08
Posts: 200
Location: New Zealand, Dunedin
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


 

Jump to:  

  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com