PureBytes Links
Trading Reference Links
|
Until a coder gets back to you, review this:
if(interval() == inDaily OR interval() == inMonthly OR interval() ==
inweekly)
SYNTAX interval( format = 0 )
RETURNS NUMBER
FUNCTION Interval() function returns bar interval.
Possible formats: 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"
Example time intervals in seconds:
tick bars = 0
5 sec bars = 5
1 min bars = 60 (inMinute constant)
hourly bars = 3600
daily bars = 86400 (inDaily constant)
weekly bars = 432001 (inWeekly constant)
monthly bars = 2160001 (inMonthly constant)
--- In amibroker@xxxxxxxxxxxxxxx, "Vinay Gakkhar." <vgakkhar@xxx> wrote:
>
> Can some learned member of this group help me in a coding problem that I am facing?
>
> I download end-of-day data on some days, and whole-day or part-of-the-day intraday data plus EOD data on some other days. I use PlotShape to alert me visually,and AlertIf to give me audio & email alerts when rate of change between current bar's price & previous bar's price is above or below my specified percentage.
>
> I want to code in such a way that I get alerts when this percentage for intraday data is 0.3% and is 3.0% while analysing EOD data.
>
> Can someone please write this part of the code for me?
>
> Thank you.
>
> Vinay Gakkhar
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|