Posted By: Beauey
If Price has exceeded a certain level - Since This Time - 12/03/17 08:37
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
Posted By: firecrest
Re: If Price has exceeded a certain level - Since This Time - 12/03/17 09:26
Posted By: Beauey
Re: If Price has exceeded a certain level - Since This Time - 12/05/17 03:44
Thanks Firecrest, I Have looked at this and still have not been able to work out, any ideas?
Posted By: firecrest
Re: If Price has exceeded a certain level - Since This Time - 12/05/17 05:11
Hi, there are some examples in the end of the link.
http://zorro-project.com/manual/en/month . I think you can follow them.
Posted By: jcl
Re: If Price has exceeded a certain level - Since This Time - 12/05/17 14:27
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... }