同花顺风险pk安全副图指标
源码
DY1:=(2*CLOSE+HIGH+LOW)/4;
DY2:=LLV(LOW,34);
DY3:=HHV(HIGH,34);
BDC:=EMA((DY1-DY2)/(DY3-DY2)*100,9),colorred;
BDD:=EMA((0.667*REF(BDC,1)+0.333*BDC),3),colorff9900;
BDE:=EMA((DY1-DY2)/(DY3-DY2)*100,30);
BDF:=EMA(BDE,5);
风险区:80,colorff00ff;
安全区:20,color00ffff;
STICKLINE(BDC>=BDD,BDC,BDD,8,0),colorred;
STICKLINE(BDC<BDD,BDD,BDC,8,0),colorffff33;
FILLRGN(BDE,BDF,BDE>=BDF,RGB(255,0,255),BDE<BDF,RGB(0,255,0));