Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 177 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
If Price has exceeded a certain level - Since This Time #469699
12/03/17 08:37
12/03/17 08:37
Joined: Nov 2016
Posts: 3
B
Beauey Offline OP
Guest
Beauey  Offline OP
Guest
B

Joined: Nov 2016
Posts: 3
Hi,
I am wondering what the best way to write AFTER THIS TIME in Zorro-
Example - If (price(since 9:30pm) <= 1.0 && Price() >= 0.98 {
enterLong()
}
Thankyou for youre help

Last edited by Beauey; 12/03/17 08:41.
Re: If Price has exceeded a certain level - Since This Time [Re: Beauey] #469700
12/03/17 09:26
12/03/17 09:26
Joined: Dec 2016
Posts: 71
F
firecrest Offline
Junior Member
firecrest  Offline
Junior Member
F

Joined: Dec 2016
Posts: 71
Can try to refer to the following link.
http://zorro-project.com/manual/en/month

Re: If Price has exceeded a certain level - Since This Time [Re: firecrest] #469727
12/05/17 03:44
12/05/17 03:44
Joined: Nov 2016
Posts: 3
B
Beauey Offline OP
Guest
Beauey  Offline OP
Guest
B

Joined: Nov 2016
Posts: 3
Thanks Firecrest, I Have looked at this and still have not been able to work out, any ideas?

Re: If Price has exceeded a certain level - Since This Time [Re: Beauey] #469728
12/05/17 05:11
12/05/17 05:11
Joined: Dec 2016
Posts: 71
F
firecrest Offline
Junior Member
firecrest  Offline
Junior Member
F

Joined: Dec 2016
Posts: 71
Hi, there are some examples in the end of the link. http://zorro-project.com/manual/en/month . I think you can follow them.

Re: If Price has exceeded a certain level - Since This Time [Re: firecrest] #469736
12/05/17 14:27
12/05/17 14:27
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Store the price at 9:30 in a variable, then compare with the current price.

static var PriceAt930;
if(tod() == 930) PriceAt930 = priceClose();
if(tod() > 930 && priceClose() - PriceAt930 > MyLevel) { do something... }


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1