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!
