P:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),3);
风警值:P+100,linethick1;
风险区:90,colorred,linethick2;
安全区:10,colorgreen,linethick2;
DRAWTEXTABS,linethick1,COLOR00EEff;
{注:95;5和90;10都可以,数值设小些,安全些,}
fillrgn(风警值,25,风警值<25,rgb(0,255,50));
fillrgn(风警值,安全区,风警值<安全区,rgb(255,0,0));
持股线:ma(风警值,10),linethick2,coloryellow;