[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Using the date and time functions ?



PureBytes Links

Trading Reference Links



Hi I want to back test a formula which resets it's self every day of 
the week. i.e 
The starting reference price is every day at GMT 0 the price is 
taken. 
If the price goes greater than the reference price + 50 pips then a 
buy is triggered. 
If it goes – 50 pips from reference price a sell is triggered. 

I want to miss Mondays out of the back test all together. 
How do I capture the price every day at GMT 0 and reset to the new 
price each day. 

I guess it will be something like 
If 
Timenum() = 00000;
Then 
Refprice = C;
Datenum() + 1; 

Any help would be greatly appreciated .  









------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/