Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 900 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to disable signal in the lookback period ? #475792
01/08/19 09:57
01/08/19 09:57
Joined: Dec 2018
Posts: 22
VN
C
Chuate Offline OP
Newbie
Chuate  Offline OP
Newbie
C

Joined: Dec 2018
Posts: 22
VN
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;

}


Re: How to disable signal in the lookback period ? [Re: Chuate] #475816
01/08/19 18:20
01/08/19 18:20
Joined: Aug 2017
Posts: 102
Spain
B
Brax Offline
Member
Brax  Offline
Member
B

Joined: Aug 2017
Posts: 102
Spain
Try using if(is(LOOKBACK))

http://manual.zorro-trader.com/is.htm


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1