PureBytes Links
Trading Reference Links
|
Herbert
Checkout the Interval() fn
http://www.amibroker.com/guide/afl/afl_view.php?name=INTERVAL
Also be sure to go through related AB predefined constants like inWeekly,
etc.
>From the current ReadMe there is an update, viz...
========================
Interval() function enhanced. Now accepts format parameter:
Interval( format = 0 );
possible values:
format = 0 - returns bar interval in seconds
format = 1 - as above plus TICK bar intervals are returned with negative
sign
so Interval() function applied to 10 tick chart will return -10
format = 2 - returns STRING with name of interval such as
"weekly/monthly/daily/hourly/15-minute/5-tick"
========================
So, to answer your question, simply enclose your indicator code in an
if(Interval()==inDaily) {...your indicator code...}
statement and it will only appear when you are looking at the chart in Daily
mode.
Cheers
PeterJ
-----Original Message-----
From: hertyil [mailto:herty@xxxxxxxxxxxx]
Sent: Wednesday, 16 June 2004 9:21 p
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Indicator in daily and weekly mode
Anybody know how an indicator in a code, can be made to appear only
in the daily mode, say, but when switching to weekly or monthly not
having it appear. In other words, how can switching (flipping) from
daily to weekly or monthly, on the toolbar, affect the code?
Herbert
------------------------ 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/
|