Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
isTradable() returning wrong values in test mode http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=16&t=57598 |
Page 1 of 1 |
Author: | G4815 [ Fri 19 Feb, 2021, 08:43 ] |
Post subject: | isTradable() returning wrong values in test mode |
Seemingly, in test mode : IEngine.isTradable(Instrument) returns always true Instrument.isTradable() returns always false Regardless if the market was actually closed or not. It's working fine in live mode. I tested this on COFFEE.CMD. Can someone else confirm that ? |
Author: | ftasso [ Wed 24 Feb, 2021, 18:16 ] |
Post subject: | Re: isTradable() returning wrong values in test mode |
Hello, I had the same problem in the past. I replaced with this piece of code: public void onStart(IContext context) throws JFException { this.context = context; } then this.context.getDataService().isOfflineTime(timestamp, instrument) Regards, Fabrizio |
Page 1 of 1 |