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

Re: [amibroker] Re: How to use AUX1 and AUX2?


  • Date: Thu, 19 Nov 2009 12:17:11 +0100
  • From: "Tomasz Janeczko" <groups@xxxxxxxxxxxxx>
  • Subject: Re: [amibroker] Re: How to use AUX1 and AUX2?

PureBytes Links

Trading Reference Links

Not necesarily. If you use existing symbol name it will write to existing.
Specfically if you use AddToComposite( array, Name(), "1", atcFlagResetValues | atcFlagEnableInExplore )
it will write data to *current* symbol and operate in explore mode too.

Recommended reading:
http://www.amibroker.com/guide/h_workspace.html
http://www.amibroker.com/guide/a_addtocomposite.html

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "sanjiv" <sumangalam@xxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, November 19, 2009 11:52 AM
Subject: [amibroker] Re: How to use AUX1 and AUX2?


> Hello Mr. Janeczko,
>
> I understand that your suggestion will create a new security file. Further, in one of your previous posts you had suggested that 
> OHLCV etc. fields of a security file can not be modified by AFL (to maintain data integrity). If I remember it right, you had 
> suggested that OHLC etc can be modified by ASCII import and COM. I understand that AUX1 and AUX2 of a security will also behave 
> the same way. Am I right?
>
> So, as per your sugestion we will have a separate security. Is it so?
>
> Your reply will help understand the things clearly.
>
> With Regards
>
> Sanjiv Bansal
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <groups@...> wrote:
>>
>> Use AddToComposite and "1" (for aux1) and "2" (for aux2) fields.
>>
>> Best regards,
>> Tomasz Janeczko
>> amibroker.com
>> ----- Original Message ----- 
>> From: "bobkrish" <bobk@...>
>> To: <amibroker@xxxxxxxxxxxxxxx>
>> Sent: Thursday, November 19, 2009 5:57 AM
>> Subject: [amibroker] Re: How to use AUX1 and AUX2?
>>
>>
>> > I'd like to store computed properties of a stock in the Aux1, and Aux2 fields. Does anyone have a code example of how to use 
>> > the
>> > OLE/COM features for doing this within an AA/Exploration? I could write out an ASCII file and then re-import it, but that seems 
>> > to
>> > be rather brute-force.  The properties I'm adding are computed using the OSAKA plug-in involving a large array for each stock - 
>> > so
>> > I need to save the data (for use in a trading system).
>> >
>> > Bob Krishfield
>> >
>> > --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <groups@> wrote:
>> >>
>> >> Sure will do that.
>> >>
>> >> Best regards,
>> >> Tomasz Janeczko
>> >> amibroker.com
>> >>   ----- Original Message ----- 
>> >>   From: Herman
>> >>   To: amibroker@xxxxxxxxxxxxxxx ; AmiBroker Support
>> >>   Sent: Friday, November 06, 2009 11:24 PM
>> >>   Subject: Re: [amibroker] How to use AUX1 and AUX2?
>> >>
>> >>
>> >>
>> >>
>> >>   OK, i think i know why the confusion: AUX1 and AUX2 are not formatted like a reserved word (like Close, Sell, etc) in the
>> >> editor. They look like non-reserved words. However the syntax check does not flag them down as uninitialized variables so the 
>> >> are
>> >> reserved variable names.
>> >>
>> >>   Is it possible to format/color them like other reserved keywords?
>> >>
>> >>
>> >>
>> >>   Many thanks,
>> >>   herman
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>   Tomasz Janeczko wrote:
>> >>     They work the same as OHLCV arrays.
>> >>     You can write to them, but what you write is NOT stored to database.
>> >>     These are built-in price arrays and in order to protect from modifying quotes by mistake
>> >>     you are writing to temporary runtime copies of OHLCVA1A2 arrays.
>> >>
>> >>     In order to actually write to database you need to use AddToComposite or COM or ASCII importer.
>> >>
>> >>     Best regards,
>> >>     Tomasz Janeczko
>> >>     amibroker.com
>> >>       ----- Original Message ----- 
>> >>       From: Herman
>> >>       To: amibroker@xxxxxxxxxxxxxxx
>> >>       Sent: Friday, November 06, 2009 8:08 PM
>> >>       Subject: Re: [amibroker] How to use AUX1 and AUX2?
>> >>
>> >>
>> >>       ahh, so they can't be assigned values, or be read, like we do OHLCVI fields? Thus, i gather, these fields cannot be used 
>> >> in
>> >> a loop?
>> >>
>> >>       AUX1[b] = 999;
>> >>       MyData = AUX[b]
>> >>
>> >>       I have a host of other uses, like storing real trade information so that these can easily be accessed and plotted - with
>> >> having to compare DT all the time.
>> >>
>> >>       Thanks for the reply,
>> >>       herman
>> >>
>> >>       Tomasz Janeczko wrote:
>> >> Hello,
>> >>
>> >> Aux1 and Aux2 fields are intended to be used as:
>> >>
>> >> 1. Storage for extra quotation data such as bid/ask figures
>> >> 2. Storage for other data such as trading volume expressed in dollars, volume-weigted average price, etc
>> >> 3. Extra fields for AddToComposite/Foreign (use "1" field ID for aux1 and "2" for aux2 in Foreign/AddToComposite calls)
>> >>
>> >> You can store values to those fields either using ASCII importer or
>> >> using OLE or using AddToComposite
>> >>
>> >> Example:
>> >>
>> >> AddToComposite( array, Name(), "1") ; // store array to aux1
>> >>
>> >> Best regards,
>> >> Tomasz Janeczko
>> >> amibroker.com
>> >> ----- Original Message ----- 
>> >> From: "Herman" <psytek@>
>> >> To: <amibroker@xxxxxxxxxxxxxxx>
>> >> Sent: Friday, November 06, 2009 7:04 PM
>> >> Subject: Re: [amibroker] How to use AUX1 and AUX2?
>> >>
>> >>
>> >>   any AUX1 and AUX2 users out there?
>> >>
>> >> As is often the case some very useful new features sit on the shelf for
>> >> a long time before people start using them, simply because they are not
>> >> documented for the simple user. Tomasz, please give a sales pitch as
>> >> what we can do with the new array expansion - its a waste to let it go
>> >> to waste :-)
>> >>
>> >> herman
>> >>
>> >> Herman wrote:
>> >>     I can't find any examples on how to use the two new AUX1 and AUX2
>> >> fields. Can anyone give an example?
>> >>
>> >> When working with the current ticker, how do i assign a value to one of
>> >> these fields? How do i read it back?
>> >>
>> >> Thanks,
>> >> herma
>> >>
>> >>
>> >>
>> >>
>> >> ------------------------------------
>> >>
>> >> **** 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
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>       ------------------------------------
>> >>
>> >> **** 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
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> ------------------------------------
>> >>
>> >> **** 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
>> >>
>> >
>> >
>> >
>> >
>> > ------------------------------------
>> >
>> > **** 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
>> >
>> >
>> >
>>
>
>
>
>
> ------------------------------------
>
> **** 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
>
>
>



------------------------------------

**** 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:
    amibroker-digest@xxxxxxxxxxxxxxx 
    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/