_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;
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;