|
John Lyons
2012-09-26 12:29:42
0
|
|
Here is the formula I have now.
aa=21;
p = aa;
f = aa;
s = StochRsiFastK(p,f);
a = anchor(s>49 and <52 ,2,"nb"); //==10!
p2= aa;
b = Ema(s,p2);
c = LinearReg_Angle(b, p2);
lag = 0; length = a;
Slope1 =searchfor( _slope (s,lag,length)>(100/a) and _slope (s,lag,length)<(100/a) + 0.02);
plot(Slope1,"Slope1",colorRed,ChartLine,StyleSymbolStar);
Plot (s, "SrsiFk", colorblack, ChartLine,StyleOwnScale);
Plot (a, "Anchor", colorgreen, ChartLine,StyleOwnScale);
//Plot (b, "EMA" , colorblue, ChartLine,StyleOwnScale);
//Plot (c, "Angle" , colorred, ChartLine,StyleOwnScale);
Currently this shows the Red Symbol Star at the current bar where 'searchfor' is true.
What I want to do is show on the chart the is a line depicting the slope from the 'searchfor' to the present bar.
Thank you.
John
|
|