Create a scan using Addtocomposite and Foreign:

ticker_close = ( 0.25 * foreign("EPD","C") ) + ( 0.15 * foreign("PAA","C" )) + 
( 0.20 * foreign("RGNC","C") ) + ( 0.15 * foreign("KMP", "C") ) + (0.25 * 
foreign("ETP","C"));

ticker_high = ( 0.25 * foreign("EPD","H") ) + ( 0.15 * foreign("PAA","H" )) + ( 
0.20 * foreign("RGNC","H") ) + ( 0.15 * foreign("KMP", "H") ) + (0.25 * 
foreign("ETP","H"));

AddToComposite(ticker_close,"~MPLSUTIL","C");
AddToComposite(ticker_high,"~MPLSUTIL","H");


Note that this does only the Close & High, but you should be able to copy this 
to do the low and the open.

Note that AB prefers, for custom composites, that you put a "~" in front of the 
name - not sure if that is absolutely required.


--- In [email protected], "dicric_71" <bdvo...@...> wrote:
>
> I have studied AB help , tested some formulas, but I am little lost. Hope 
> somebody can help me.
> 
> I want to create ticker 
> ticker = ( 0.25 * EPD ) + ( 0.15 * PAA ) + ( 0.20 * RGNC ) + ( 0.15 * KMP) + 
> (0.25 * ETP)
> and have it under name MPLSUTIL in symbol list and then have it in list of 
> symbols with possibility to chart it in chart window (candlestick chart).
> 
> Can somebody help me how to do it ?
> 
> Thank you in advance,
> Richard
>


Reply via email to