PureBytes Links
Trading Reference Links
|
Dave,
This is what I'm trying to do:
-My system requires a different parameter for each stock ie.
different moving averages, different periods used for calculation
etc. Currently I have to use the Param function and interactively
change parameters for each symbol. When I go back to the same
symbol; I would like to use the previous parameters that I have set
to produce the same result I had before. The only way that I know of
right now is to write/store these parameters into an external file in
the harddrive and read them back when I go back to the same symbol.
-I am currently running into problem of AB variable definition and
initialization. I want to have a static kind of variable which store
the symbol and use this to conditionally read in the external file
only a new symbol is read in. I do not have a solution. There might
be other alternative which I would like to hear.
-I have successfully implemented read/write to an external file using
combination of JScript and AFL. Next is how to conditionally steer
the readin or not when the new symbol is entered.
--- In amibroker@xxxxxxxxxxxxxxx, "Dave Merrill" <dmerrill@xxxx>
wrote:
> hi, sorry to butt in offering being any help, but I'm interested in
how
> you're creating and reading these external parameter files. could
you
> provide some details?
>
> also, when you say you only need to read them when a new symbol is
added,
> that must mean you're putting the data you read somewhere within
AB's
> universe, like in a composite maybe, or somewhere else, yes?
>
> I've wondered about using the Open Interest field for a custom
parameter I
> calculate for each stock. is it possible for AFL code to write data
into an
> existing quote on an existing stock? has anyone done anything like
this? I'd
> love to see some examples.
>
> thanks,
>
> dave
> Has anyone tried to write AFL code which will only executed once
each
> time it detects a new symbol just entered? For example:
>
> I have external parameter files for each symbol. I only need to
read
> in these parameters once using JScript for each new symbol
entered.
>
> TIA
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Remanufactured Ink Cartridges & Refill Kits at MyInks.com for: HP $8-20. Epson $3-9, Canon $5-15, Lexmark $4-17. Free s/h over $50 (US & Canada).
http://www.c1tracking.com/l.asp?cid=6351
http://us.click.yahoo.com/0zJuRD/6CvGAA/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
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|