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

Re: [amibroker] Question on R2 indicator



PureBytes Links

Trading Reference Links

Are you referring to your variable R2 that you can't see?  Then I'll bet your chart background is white.   Try this.  As I move the cursor it selects the value displays it in my title area.  Or you can use the function in a title statement selectedvalue( ARRAY )

Hope this helps JOE

BY THE WAY, is this indicator worth considering?

Plot(r2,"R Squared",colorBlack,1);

Plot(slope,"Slope",IIf(slope<0,4,5),2|styleOwnScale);

Plot(Crit,"",7,1);

 
----- Original Message -----
From: droskill
Sent: Sunday, July 20, 2008 10:16 AM
Subject: [amibroker] Question on R2 indicator

A quick question for the group. There is an indicator in the library
called R2 - it displays a graph - but the value of the actual graph is
not shown on the chart - I'd like to show it but can't figure out how
to do it - the code is below - any thoughts appreciated:

R2PDS=30; /*for automatic adjustments to the r2 critical value line
use one of the periods listed above*/

R2=Correlation(Cum( 1 ),C,r2pds)*Correlation(Cum( 1 ),C,r2pds);
slope=LinRegSlope(C,r2pds);

Crit=IIf(R2PDS==5,.77,IIf(R2PDS==10,.40,IIf(R2PDS==14,.27,IIf(R2PDS==20,.20,IIf(R2PDS==25,.16,IIf(R2PDS==30,.13,IIf(R2PDS==50,.08,IIf(R2PDS==60,.06,IIf(R2PDS==120,.03,0)))))))));

Plot(r2,"R Squared",2,1);
Plot(slope,"Slope",IIf(slope<0,4,5),2|styleOwnScale);
Plot(Crit,"",7,1);

Thanks!

__._,_.___

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___