FUNCTION: VARIABLE

STUB: Rank1 = VARIABLE( PROFIT )


Whenever using BACKTEST in a formula, a number of built-in variables exist to make it easier to achieve things. Those are the following:

CASH
SHARES
PROFIT
PRICE


CASH stores the amount of available cash

SHARES stores the number of shares owned

PROFIT stores the Profit (or Loss) value for the current backtesting. The value is expressed as a percentage. So, if PROFIT is 3, this means the company is up 3%.

PRICE stores the current price

The result can be any of the following Summary table fields

Rank1
Rank2
Rank3
Rank4
Rank5
Rank6
Rank7
Rank8
Rank9
Rank10