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

[amibroker] Re: Initializing Variables once at the start of the program



PureBytes Links

Trading Reference Links

Forgive me for answering your question with a question ... but ... 
why do you want to be able to set a variable (parameter) differently 
for any given chart ? ... Is it because these are things like level 
checks i.e. if the value of some indicator > X where you want X to 
be different for different tradables or timeframes or whatever ?

If that's the case then PARAM ( See Below and in the doc ) may be 
what you are looking for ... If not then you'll have to better 
explain the context in which you are attempting to use these 
variables ...

PARAM
- add user user-definable numeric parameter Exploration /Indicator 
Builder
(AFL 2.3)
 

SYNTAX  Param( ''name'', default, min, max, step, sincr = 0 )  
RETURNS NUMBER  
FUNCTION  Adds a new user-definable parameter, which will be 
accessible via Parameters dialog :
right click over chart pane and select "Parameters" or press Ctrl+R 
allows to change chart parameters - changes are reflected 
immediatelly. 

"name" - defines parameter name that will be displayed in the 
parameters dialog 
default - defines default value of the parameter 
min, max - define minimum and maximum values of the parameter 
step - defines minimum increase of the parameter via slider in the 
Parameters dialog 
sincr - automatic section increment value (used by drag-drop 
interface to increase default values for parameters) 
WARNING: default/min/max/step parameters have to be CONSTANT 
numbers. This is because these values are cached and are not re-read 
during subsequent formula evaluations. 
 







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/