Hi everyone!
I have the following piece of code being called inside onTick()
this.engine.submitOrder("gGBPUSD", Instrument.fromString("GBPUSD"), IEngine.OrderCommand.BUY, 0.1, 0);
and it generated the following NullPointerException
java.lang.NullPointerException
at com.dukascopy.dds2.greed.agent.A.submitOrder(Unknown Source)
at com.dukascopy.dds2.greed.agent.A.submitOrder(Unknown Source)
at com.dukascopy.dds2.greed.agent.A.submitOrder(Unknown Source)
at com.dukascopy.dds2.greed.agent.A.submitOrder(Unknown Source)
at com.dukascopy.dds2.greed.agent.A.submitOrder(Unknown Source)
at jforex.ChakraaMain.onTick(ChakraaMain.java:116)
at com.dukascopy.api.impl.a.l.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I have checked that the engine object is not null because I can successfully call other methods on it like getAccount() etc. Any idea what could be causing this problem? Just FYI, this error started occurring at around 11:30 PM EST. Are we not allowed to place trades after a certain time of the day? I thought we could place trades 24 hours. I'm really clueless about this.
Any help would be most appreciated! Thanks!