Would you like you JForex Strategy to Email you when trades are closed (or when any other condition is reached)?
It is easy to implement, you just have to use the following in your onMessage code:
where you have declared the following :
It is easy to implement, you just have to use the following in your onMessage code:
if (String.valueOf(message).contains("ORDER_CLOSE_OK")) {
sendEMail("Order Closed", String.valueOf(message));
sendEMail("Order Closed", String.valueOf(message));
where you have declared the following :
public String emailAddress="[email protected]";
public long lastSENDtime=0;
public void sendEMail(String subject, String content) throws JFExcept
… public long lastSENDtime=0;
public void sendEMail(String subject, String content) throws JFExcept