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

Re[2]: [amibroker] Best Ways to Read in Individualized Parameters



PureBytes Links

Trading Reference Links

Title: Re[2]: [amibroker] Best Ways to Read in Individualized Parameters

btw, you can read the persistent variables and transfer them to Static variables,just once, at power up to make you code run faster.


herman



Sunday, November 2, 2008, 10:42:18 AM, you wrote:


>

If your parameters must be kept over multiple trading sessions you can simply use persistent variables (see UKB). You use these exactly the same way as Static Variables however they are saved on your hard disk and thus retain their values after power down.


You would need only one function call using a dynamic name to save an unlimited number of individual parameters.


You can for example name a parameter so: "MySystemName"+"-"+Name()+"-"+"MyParamName" and assign values as you run you code in the AA. This will show as the file name in you window's explorer, you can open the files with NotePad.


herman





Sunday, November 2, 2008, 9:10:05 AM, you wrote:


>

The subject line is not well stated but I couldn't find a more concise way to ask what ways are available to use a different parameter for each symbol on which a code file is used.

 

Say I have a value, any value, but each symbol has a different value for it to perform the best.  Thus, as a watchlist is run through an Explore, or a Backtest, I want the individual value to be used for each symbol.  The value would not change bar by bar but would be true for the symbol and all of its data.

 

I have used the CASE statement in the past (in Jscript) but is this the best way given today's more advanced Amibroker program?

 

What about opening and reading an outside file? (not sure how I would program that anyway).

 

Can a CASE statement have more than 300 lines?  ...more than 500?  What upper limit?

 

What are your suggestions?

 

Thanks,

 

Ken

 

 

 

 

__._,_.___

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
*********************

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html

*********************************




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___