PureBytes Links
Trading Reference Links
|
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 amibroker@xxxxxxxxxxxxxxx, "dicric_71" <bdvorak@xxx> 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
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|