Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Nymphodora), 972 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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