How to disable signal in the lookback period ?

Posted By: Chuate

How to disable signal in the lookback period ? - 01/08/19 09:57

Hello,
I use this code to email me signal. However, when I click "trade" button, it immediately send me some email in the past. There is anyway to disable signal in the past ?


Code:
void email(string title, string body)

{

	if(is(TRADEMODE))

	{
		string command = strf("-executionpolicy bypass -File C:\Users\PC\Zorro\Strategy\SendMail.ps1 -title "%s" -body "%s" ", title, body);
		exec("powershell", command, 0);

	}

	else return;

}

Posted By: Brax

Re: How to disable signal in the lookback period ? - 01/08/19 18:20

Try using if(is(LOOKBACK))

http://manual.zorro-trader.com/is.htm
© 2024 lite-C Forums