PureBytes Links
Trading Reference Links
|
On Sunday 22 of February 2004 18:42, Lou H wrote:
> Thanks Marek-
>
> I don't think they would work. the problem is not switching "time sets"
> but of aquiring the data from the one minute updates of the current EOD
> day. For this we need to set up a separate array and each minute, set the
> array equal to the previous element leaving the last element available for
> updating from new data coming in. Therefore, if my EOD A/D line is being
> updated through the day on one minute intervals, I would have , of course,
> the "daily" A/D current to the last one minute quote for today. However, I
> would also like to have the "one minute" A/D as well to help selecting
> entry and exit points for the trades generated from the daily data. The EOD
> database would be of no help for the "one minute A/D line, I would need the
> most recent update on todays "daily" A/D line and be able to keep a record
> of and plot these "updates".
have you tried or eventually at least read Help?
IMO is possible to get values for variables created in different time period
than currently used.
e.g MACD @ 1-min is also available when EOD data are used
Please read bellow copied text from AB Help (with example):
Tutorial: Multiple Time Frame support in AFL
Release 4.41 brings ability to use multiple time frames (bar intervals) in
single formula. The time frame functions can be divided into 3 functional
groups:
switching time frame of build-in O, H, L, C, V, OI, Avg arrays: TimeFrameSet,
TimeFrameRestore
compressing/expanding single arrays to/from specified interval:
TimeFrameCompress, TimeFrameExpand
immediate access to price/volume arrays in different time frame:
TimeFrameGetPrice
First group is used when your formula needs to perform some calculations on
indicators in different time frame than currently selected one. For example
if you need to calculate 13-bar moving average on 5 minute data and 9 bar
exponential avarage from hourly data while current interval is 1 minute you
would write:
TimeFrameSet( in5Minute ); // switch to 5 minute frame
/* MA now operates on 5 minute data, ma5_13 holds time-compressed 13 bar MA
of 5min bars */
ma5_13 = MA( C, 13 );
TimeFrameSet( inHourly ); // switch now to hourly
mah_9 = EMA( C, 9 ); // 9 bar moving average from hourly data
TimeFrameRestore(); // restore time frame to original
Plot( Close, "Price", colorWhite, styleCandle );
// plot expanded average
Plot( TimeFrameExpand( ma5_13, in5Minute), "13 bar moving average from 5 min
bars", colorRed );
Plot( TimeFrameExpand( mah_9, inHourly), "9 bar moving average from hourly
bars", colorRed );
--
Marek Chlopek
mchlopek@xxxxxxx
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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/
|