STANDARD DEVIATION

#1
_SECTION_BEGIN("DEVIATION STANDARD");

desv_est = sqrt( EMA( ( C-Ref(C,-1) )^2, 36 ) ) ;

Deviationstd = (C - Ref(C,-1)) / Ref(desv_est,-1);
colorstyle= IIf(Deviationstd>0 AND Deviationstd<1 ,colorGreen,IIf(Deviationstd>1,colorCustom11,IIf(Deviationstd<-1,colorCustom12,colorRed)));

Plot(Deviationstd,"Deviation",colorstyle,styleHistogram|styleThick,Null,Null,0,0,6);

Plot(1,"",colorGreen,styleLine);
Plot(-1,"",colorRed,styleLine);
Plot(2,"",colorGreen,styleLine);
Plot(-2,"",colorRed,styleLine);

_SECTION_END();

GraphXSpace = 10;
 

Similar threads

Broker Special Offers

Intraday Higher Leverage

Save up to 90% in brokerage and get higher leverage for intraday trades.

Name:Phone:
Email:City:
State:
Are you a day trader?