_SECTION_BEGIN("SIROC");
prd1 = Param("First period",36,5,300,1);
prd2 = Param("Second period",8,1,100,1);
prdCrs = Param("Crossover",3,1,300,1);
prd2 = prd2*2-1;
Src= EMA((C-EMA(C,30)) /(Ref(EMA(C,30),-30)+0.000001),prd1);
SIROC =100-100/(1+IIf(EMA(IIf(Src-Ref(Src,-1)<0,-(Src-Ref(Src,-1)),0),prd2)==0,1000000,EMA(IIf (Src-Ref(Src,-1)>0,Src-Ref(Src,-1),0),prd2)/(EMA(IIf(Src-Ref(Src,-1)< 0,-(Src-Ref(Src,-1)),0),prd2)+0.000001)));
DTrigger = EMA(SIROC,prdCrs);
Plot(siroc,"siroc",colorBlue,1);
Plot(dtrigger,"trigger",colorBrown,1);
Plot(90,"90",colorGrey40,1);
Plot(10,"10",colorGrey40,1);
GraphXSpace = 5;
//--- end --- //
_SECTION_END();