PureBytes Links
Trading Reference Links
|
Hi - I think you want StaticVarSet() / StaticVarGet(). More info on these in
the users guide.
Steve
----- Original Message -----
From: "whitneybroach" <WhitneyBroach@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, October 29, 2006 1:11 PM
Subject: [amibroker] Learning VarSet/VarGet ( was Re: Learning Composites )
> --- In amibroker@xxxxxxxxxxxxxxx, "Joe Landry" <jelandry@xxx> wrote:
>>
> There are persistent numbers and text
>> store AFL functions...
>> VarSet VarGet for numbers and text. These I understand will persist
> from
>> routine to routine unless
>> you close Amibroker.
>
> -------------------------------
>
> Hmmm. Try the following code on a watchlist with > 1 symbol. I don't
> see evidence of persistence from VarSet/VarGet.
>
> ///////////////////////////////
> Buy=Sell=0;
> Filter=Status("barinrange");
> AddColumn( C, "Close" );
> fi = "%1.0f";
> Trace = True;
> Vname = "TestVar";
>
> if ( i = VarGet( Vname ) )
> {
> _TRACE( "got i = " + StrFormat( fi, i ) );
> }
> else
> {
> _TRACE( "did not get a value for i from varget" );
> VarSet( Vname, 1 );
> }
> ///////////////////////////////
>
>
>
>
> 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
>
>
>
>
>
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.27/517 - Release Date: 11/3/2006
|