Where to get this volatility value?
If that is known we can make an AFL for this to check visually.
Amit...this is one of the method....for volatility calculation......try it and change accordingly..
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
rpc31= TimeFrameGetPrice("C",inDaily,-1);
rpc32= TimeFrameGetPrice("C",inDaily,-2);
rpc33= TimeFrameGetPrice("C",inDaily,-3);
rpc34= TimeFrameGetPrice("C",inDaily,-4);
rpc35= TimeFrameGetPrice("C",inDaily,-5);
rpc36= TimeFrameGetPrice("C",inDaily,-6);
rpc37= TimeFrameGetPrice("C",inDaily,-7);
rpc38= TimeFrameGetPrice("C",inDaily,-8);
rpc39= TimeFrameGetPrice("C",inDaily,-9);
rpc40= TimeFrameGetPrice("C",inDaily,-10);
r1=(rpc39/rpc40)-1;
r2=(rpc38/rpc39)-1;
r3=(rpc37/rpc38)-1;
r4=(rpc36/rpc37)-1;
r5=(rpc35/rpc36)-1;
r6=(rpc34/rpc35)-1;
r7=(rpc33/rpc34)-1;
r8=(rpc32/rpc33)-1;
r9=(rpc31/rpc32)-1;
s1=r1*r1;
s2=r2*r2;
s3=r3*r3;
s4=r4*r4;
s5=r5*r5;
s6=r6*r6;
s7=r7*r7;
s8=r8*r8;
s9=r9*r9;
r11=(r1+r2+r3+r4+r5+r6+r7+r8+r9)/9;
s11=(s1+s2+s3+s4+s5+s6+s7+s8+s9)/9;
q11=s11-r11*r11;
q12=sqrt(q11)*100;
q13=rpc31*q12/100;
t1=rpc31+0.272*q13;
t2=rpc31+0.382*q13;
t3=rpc31+0.618*q13;
t4=rpc31+0.786*q13;
t5=rpc31+1.000*q13;
t6=rpc31+1.1272*q13;
//PLOTS
u1=rpc31-0.272*q13;
u2=rpc31-0.382*q13;
u3=rpc31-0.618*q13;
u4=rpc31-0.786*q13;
u5=rpc31-1.000*q13;
u6=rpc31-1.1272*q13;
Plot(t1,"TR",colorGreen,4+8+2048);
Plot(t2,"",colorRed,styleLine+styleNoRescale);
Plot(t3,"",colorRed,styleLine+styleNoRescale);
Plot(t4,"",colorRed,styleLine+styleNoRescale);
Plot(t5,"",colorRed,styleLine+styleNoRescale);
Plot(t6,"",colorRed,styleLine+styleNoRescale);
Plot(u1,"TR",colorOrange,4+8+2048);
Plot(u2,"",colorBlue,styleLine+styleNoRescale);
Plot(u3,"",colorBlue,styleLine+styleNoRescale);
Plot(u4,"",colorBlue,styleLine+styleNoRescale);
Plot(u5,"",colorBlue,styleLine+styleNoRescale);
Plot(u6,"",colorBlue,styleLine+styleNoRescale);
"HIGH /LOW /CLOSE = " +H +" / "+ L+" / "+ C +"\n";
_SECTION_END();