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

[amibroker] Code Question



PureBytes Links

Trading Reference Links


How do I make a indicator of an indicator?

I want to take ADX(), PDI() and MDI() of my indicator: x,"NYSE
Summation Index"

How can I do that?  I tried Ref() but I didnt get that to work.

Cheers,
Brian



a= Foreign("!Ny-A","C"); //enter

b= Foreign("!Ny-D","C");

n = (a-b);

n1=(a+b);

n3 = Sum(n,25)/Sum(n1,25)*1000;

x = Cum( EMA( A-b, 19 ) - EMA(

A-b, 39 ) );

Plot(x,"NYSE Summation Index",7,4);

Plot(MA(x,20), "20 DayMA", 5,styleDashed,styleOwnScale);





------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> 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/