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:
if (String.valueOf(message).contains("ORDER_CLOSE_OK")) {
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
阅读全文
翻译为 英语 显示原始