The equity is only available during a backtest.
The only way to pass a
positionsize based on equity is to use a
percentage value either eg 10%
posisiotnsize = -10; or
setpositionsize( 10, spsPercentOfEquity );
You
cannot mix types of sizing in the afl. to do this you must use the
custom
backtest code to change the trade size.
The only time you can refer to
a type of equity is if the test is a
single symbol, and the equity function
calculates basic equity over
the entire history for that single symbol. I
am not sure if it
includes the commissions. This is not a backtest
equity.
--
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com
.