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

[amibroker] I need to expand this script, but don't know how.



PureBytes Links

Trading Reference Links

I have copied an AFL script from Hermans ATC tutorial that allow me 
to create composites of multiple watchlists at one time.  Code pasted 
below:

Var=Close;
Var2=Open;
Var3=High;
Var4=Low;
Var5=Volume;

AddToComposite( InWatchList( 1 ) * (Var),"~BestChoices", "X" );
AddToComposite( InWatchList( 4 ) * (Var),"~ScoreCard", "X" );

Buy=Sell=Short=Cover=0;
Filter=1;

This code works fine with just the single variable Var, but I want my 
composites to include all 5 variables. How do I change the code to 
accept more tha a single variable?

Any help would be greatly appreciated.

Don Lindberg


Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.430 / Virus Database: 268.15.0/557 - Release Date: 11/29/2006 4:15 PM