PureBytes Links
Trading Reference Links
|
I was able to do what I needed by reading data into a separate
quotes file then accessing it through the foreign command. If you
set AllowNeg=1 you can even read in negative values in the OCHL
fields. Not optimal, but it works.
--- In amibroker@xxxxxxxxxxxxxxx, "Terry" <MagicTH@xxxx> wrote:
> Cs22trader,
>
> You could "pack" values into the openInterest field using binary
codes
> or multipliers such as:
>
> value1: 34.5
> Value2: 119
> Value3: 17%
> openInterest = value1 * 1000000 + value2 * 1000 + value3 =
345119000.17
> (The result must be a positive number.)
>
> Or
>
> Code1: Buy = true or false
> Code2: Sell = true or false
> Code3: X = true or false
> Code4: Y = true or false
> openInterest = Code1 + Code2 * 2 + Code3 * 4 + Code4 * 8;
>
>
> --
> Terry
>
>
> | -----Original Message-----
> | From: amibroker@xxxxxxxxxxxxxxx
> | [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of cs22trader
> | Sent: Sunday, May 29, 2005 5:48 AM
> | To: amibroker@xxxxxxxxxxxxxxx
> | Subject: [amibroker] Re: AFL troubles...
> |
> |
> | Hi Terry. Yes, that it is a really good idea. I hadn't
considered
> | using the foreign option, but had been reading data in using the
> | import feature to the current ticker (this is limited, as you
point
> | out). Really what would be nice would be to allow the user to
> | specify new variables during the import process. A lot of
columns
> | are currently allowed, but there is no way that I know of to add
new
> | variables.
> |
> | thanks!
> |
> | In amibroker@xxxxxxxxxxxxxxx, "Terry" <MagicTH@xxxx> wrote:
> | > I don't know the answer to your question, but if the file is
> | static why
> | > don't you just import it as a ticker. Then you can read the
ticker
> | with
> | > Foreign and it will work normally. The only trick is you can't
> | have <=0
> | > data in a ticker. It will also run a lot faster.
> | >
> | > --
> | > Terry
> | >
> | >
> | > | -----Original Message-----
> | > | From: amibroker@xxxxxxxxxxxxxxx
[mailto:amibroker@xxxxxxxxxxxxxxx]
>
> | > | On Behalf Of cs22trader
> | > | Sent: Saturday, May 28, 2005 1:40 PM
> | > | To: amibroker@xxxxxxxxxxxxxxx
> | > | Subject: [amibroker] AFL troubles...
> | > |
> | > |
> | > | I am reading in data from an external file for each day
using an
> | > | fgets... I want to backtest. The prices are read properly
when
> | each
> | > | bar is selected -- different values for each day -- The
problem
> | is
> | > | that the variable read for any one day -- for instance
limitprice
> | > | [todaysbar] -- is applied to all days in the array. The
> | > | backtester then doesn't work right because it uses the last
day's
> | limitprice for
> | > | all prior days. How can I make the backtester apply the data
> | only to
> | > | each specific day, so that each day has separate values?
> | > |
> | > | Thanks
> | > |
> | > |
> | > |
------------------------ Yahoo! Groups Sponsor --------------------~-->
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.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/
|