We are just taking little baby steps here. I setup a simple test strategy that is supposed to email me. I see what I am supposed to in the output box and it makes some sort of noise. But email does not work.
This is a snip from the ninja script ( obviously not my real email) but code is same. Real script has real email.
// Condition set 1
if (CrossAbove(Close, IchimokuCloud(9, 26, 52).TenkanSen, 8)
&& MACD(12, 26, 9).Avg[0] > MACD(12, 26, 9).Avg[1])
{
PrintWithTimeStamp("Above cloud Yes it is");
PlaySound(@"C:\Program Files (x86)\NinjaTrader 7\sounds\Alert3.wav");
SendMail("[email protected]", "[email protected]", "ninja alert", "We have done it");
}
This is supposed to send me an email if price moves above the cloud and MACD is increasing.
Do I need to do something to enable emailing an alert to myself.? I thought sending myself messages when conditions occur would be a safe first step
Thanks for any help
Comment