Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 17,605 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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