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

Re: [amibroker] Re: Sigma Bands



PureBytes Links

Trading Reference Links

Hi again Marek-

Many thanks for trying to help - but we are on different tasks.  In order to
get any change of time-frame to one minute, we must first have a one minute
data base.  We do not.  We have only EOD.  It is true that the current EOD
is updated each minute but the data base is daily and the program recognizes
the updated price as a daily price to be replaced with the next minutes
update, again, as the price for that day.  Hence, the need to "capture" the
update price and store it in an array, a one minute array or volitile one
minute data base.  From that we can then graph the minute data.  From the
EOD data base you can only change the timeset frame upward in multiples of 1
day.

You definitely cannot "> e.g MACD @ 1-min is also available when EOD data
are used" do this as mentioned in your reply.  This stuff can get kinda
confusing but stop and think, the EOD data base has only OHLCV fields.
Therefore, you cannot get the Close at say 13:36, you cannot get minute data
because it isn't there.

This is why I wanted suggestions on how to execute some code on a minute
basis, to capture the last update value and store it in an array.  I don't
know, I guess I'm not very good at explaining things but I certainly want
you to know that I appreciate the time and effort you have spent trying to
help.  It is appreciated and what makes this board the best around.

Very Best Regards
lou howard
==================================================

----- Original Message ----- 
From: "Marek Chlopek" <mchlopek@xxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, February 22, 2004 1:18 PM
Subject: Re: [amibroker] How to set up 1 minute indicator using EOD
database?


> 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
>
>
>
>
>
>




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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/