I made a strategy and working well but sometime it give error and stop. error is below :
13:11:49 com.dukascopy.api.JFException: Could not load bar for instrument [EUR/USD], period [30 Mins], side [Bid], start time [2016.05.06 08:00:00 000], current bar start time [2016.05.06 13:00:00 000] @ jforex.TradingEA_Test.Bar(TradingEA_Test.java:596)
I don't why it is give error. is anyone idea why it is give error. Please help me
Thanks in Advanced
It's difficult to answer that without source code and a thorough investigation of the issue.
You will learn the most by doing it yourself. Try to isolate the issue and identify conditions in which it appears. Once you are able to reproduce the issue, it's much easier to debug the code and, if necessary, report the issue to support via forums or email.
In the meantime, you can employ the following workaround:
1. Use "onTick" method instead of "onBar" method
2. Write code that simulates "onBar" by calling "onMyBar" method at the first available tick for each period
3. Move your "onBar" method code to "onMyBar" method