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

Re: [amibroker] Optimization or Backtest, which is faster ?



PureBytes Links

Trading Reference Links

Hi,

this should help:

if(Interval()==86400)//"Daily"
    x=365;
else if (Interval()==432000)//"Weekly"
    x=52;
Plot(x,"x",1,1);

-john
----- Original Message ----- 
From: "darrinm81" <fmarx@xxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, July 22, 2004 6:57 AM
Subject: [amibroker] Indicator Builder - If on Daily chart = x, but on
Weekly = y


When creating an indicator, how can I create a If statement where:

If viewing a daily chart, then x = 365
If viewing a weekly chart, then x = 52


Thanks in advance!




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







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/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/