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

Re: [amibroker] Re: Any Indicator = empty



PureBytes Links

Trading Reference Links

Hi murthysuresh,

this is not a perfect solution to your problem but should get you started, 
IF you use Quotes Plus data; if not, you need to substitute your symbols for 
the !-prefixed ones here.

HTH,

-john

/*
McClellan Summation Index
*/
//Graph0 = Cum( EMA( AdvIssues()-DecIssues(), 19 ) - EMA( 
AdvIssues()-DecIssues(), 39 ) );
nas_adv=Foreign("!NQ-A","C");
nas_dec=Foreign("!NQ-D","C");
ny_adv=Foreign("!NY-A","C");
ny_dec=Foreign("!NY-D","C");
am_adv=Foreign("!AM-A","C");
am_dec=Foreign("!AM-D","C");
nasSum=Cum(EMA(nas_adv - nas_dec,19) -EMA(nas_adv - nas_dec,39));
nySum=Cum(EMA(ny_adv - ny_dec,19) -EMA(ny_adv - ny_dec,39));
amSum=Cum(EMA(am_adv - am_dec,19) -EMA(am_adv - am_dec,39));
Plot(nasSum,"",colorGreen,1);
Plot(nysum,"",colorBlue,1|styleOwnScale);
Plot(amsum,"",colorRed,1|styleOwnScale);
Title=EncodeColor(colorGreen)+"MClellan_Summation: Nas: 
"+NumToStr(nasSum,1)+";"+EncodeColor(colorBlue)+" NY: 
"+NumToStr(nySum)+";"+EncodeColor(colorRed)+" AMEX: "+NumToStr(amSum, 1);
GraphXSpace=3;


----- Original Message ----- 
From: "murthysuresh" <money@xxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, September 08, 2004 8:03 PM
Subject: [amibroker] Re: Any Indicator = empty


This is the code that i tried on. I got  no charts. how do i create
the values?


/*
The Breadth Thrust indicator is a market momentum indicator developed
by Dr. Martin Zweig.
AFL implementation by Tomasz Janeczko
*/

Graph0 = EMA( AdvIssues()/( AdvIssues()+DecIssues() ), 10 );


--- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> Some indicators are based on market statistics, like the AD line,
> advance/decline. You need to create these values first
>
> Cheers,
> Graham
> http://e-wire.net.au/~eb_kavan/
>
> -----Original Message-----
> From: Terry [mailto:MagicTH@x...]
> Sent: Thursday, September 09, 2004 9:33 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: Re: [amibroker] Any Indicator = empty
>
> More details required. Do you have code?
>
> Terry
> --
>
> > When i use any indicator, the pane shows =Empty. I added the Ad-
Line
> > indicator and it comes back with a empty pane.
> > I currently use the US-STocks and have loaded data since 1970 from
> > Yahoo.
> >
> > I am a new user and maybe doing something wrong. Actually i read
> > through all the macromedia presentations and hope i am doing the
> > right thing.
> >
> >
> >
> > Check AmiBroker web page at:
> > http://www.amibroker.com/
> >
> > Check group FAQ at:
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links




Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: 
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links



 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/