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

[amibroker] Re: help on scalar value from array - was SelectedValue()



PureBytes Links

Trading Reference Links

Graham, if you are monitoring this, or anyone else who might be 
interested.
not quite the same question, but maybe you can help me please.
I often find myself wanting to get the value of an array, usually  to 
use as a subscript or as a control. i have used loops, but it is often 
klugy or cumbersome.
Most recently i wanted to set a high value for positionscore initially, 
and slowly relax it, or set maxopenpositions to a small number and then 
increase it. The idea being to slowly expose a portfolio to full market 
risk. in each case i wanted to know barindex() as a scalar value to 
adjust the variables from that point on until i reached a limit 
controlled by max or min as appropriate..
Is there any simple way to extract the current barindex() of any array, 
including barindex() itself as a scalar?




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