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

Re: Fwd: [amibroker] Coding advise needed



PureBytes Links

Trading Reference Links

If you are trying to do this in one formula chart use TimeFrameSet, TimeFrameRestore and TimeFrameExpand InDaily to investigate the data for the EOD time periods and something similar in whatever time frame you use for intraday. This will only work if you are using the same ticker with EOD and Intraday data. Or if you have enough intraday data to look at the above data from one ticker then you can use the TimeFrame... stuff.

If you have tickers with different names, one for EOD and one for intraday such as DJI and INDU-NYSE-IND in IB, then use Foreign to import the DJI day data into the intraday chart for investigation. 

Or you can use different panes and put a day chart on one pane and an intraday chart on another pane. Then send the alerts and email from either or both. To add a pane go to File>New>Default Chart, then use Window>Tile vertically to see both panes on the window.

OR in the same pane you can add two formula charts. One set to the interval displayed. In the other formula put the Foreign code and ignore the chart interval. 

There are a bunch of ways to skin this cat. But before anyone can write it they have to know how your database is structured. 

Barry

--- In amibroker@xxxxxxxxxxxxxxx, "gmorlosky" <gmorlosky@xxx> wrote:
>
> 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@> 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/