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

SECURITY REFERENCE



PureBytes Links

Trading Reference Links

Thanks Tomasz about var period.


with your foreign( TICKER, DATAFIELD ) 

can I write and create my own index:

var1 = if( foreign( "XA1", "Close" ) > foreign( "XA1", "ref(Close,-
1)" ) , foreign( "XA1", "V" ),0); 
varn = if( foreign( "XAn", "Close" ) > foreign( "XAn", "ref(Close,-
1)" ) , foreign( "XAn", "V" ),0); 

Vartot: var1 +....varn/(n-1);
vartot


where XA1 and XAn are the names of differents stocks.

Steph