Excuse me, everyone.
I met a problem when coding in JForex-SDK and wish you could give me a hand.
I used eclipse to import the project and replaced the username and password with my demo ones.
It runs well with the onStart() and onTick() functions in strategy Class.
However, I found that when I terminate the running project, it just comes to an end and the onStop() function is not called at all.
public void onStop() throws JFException {
for (IOrder order : engine.getOrders()) {
order.close();
}
console.getOut().println("Stopped");
}
The statement "console.getOut().println("Stopped");" is not executed.
I was wondering whether you could help me out.
How could I make the onStop() function is called when the project is about to end?
Thank you so much!