thank you Bruce, this is getting quite close to what I was thinking of.
herman
For tips on developing Real-Time Auto-Trading systems visit:
http://www.amibroker.org/userkb/
Wednesday, February 6, 2008, 11:11:49 AM, you wrote:
> Herman -
> I was just checking the board and saw your post. I might be missing
> something in what you want, but it seems like the following would do
> the trick. It was a quick copy/paste from something that I had -
> function VarSelect( Varstr, Varnum )
> {
> return VarGet( StrExtract( StrReplace( Varstr, " ", "" ), Varnum ) );
> }
> Here's a little test program (Scan) to demo its use -
> x = 1;
> y = C;
> z = "A";
> Buy = Sell = Short = Cover = 0;
> for ( i = 0; i <= 3; i++ )
> _TRACE( "Var = " + VarSelect( "x, y,Z", i ) );
> BTW - note that variables in Amibroker are really "variants", and
> therefore the same function can return scalars, arrays, strings.
> 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 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
>
> Yahoo! Groups Links
> <*> To visit your group on the web, go to:
> http://groups.yahoo.com/group/amibroker/
> <*> Your email settings:
> Individual Email | Traditional
> <*> To change settings online go to:
> http://groups.yahoo.com/group/amibroker/join
> (Yahoo! ID required)
> <*> To change settings via email:
> mailto:amibroker-digest@xxxxxxxxxxxxxxx
> mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
> <*> 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/
>
__._,_.___
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 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
__,_._,___
|