Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 666 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 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