PureBytes Links
Trading Reference Links
|
Hi,
Instead of Foreign( "XAn", "ref(Close, -1)" )
you should write
Ref( Foreign("XAn", "Close" ), -1 );
Note: Ref OUTSIDE foreign function call.
Best regards,
Tomasz Janeczko
>
> 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
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
|