https://www.dukascopy.com/wiki/index.php?title=Threading1) How to determine if the current thread is the strategy thread:
if(Thread.currentThread().getName().equals("StrategyRunner Thread")){
//Do something
}
All methods defined in IStrategy interface are called in a strategy thread.
2) About "future.get()" in the historical tester.
If you call the "future.get()" from the strategy thread do it in the following way:
if(Thread.currentThread().getName().equals("StrategyRunner Thread")){
if(future.isDone()){
future.get();
}
}