TJZB1:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLOR0080FF,LINETHICK2;
TJZB2:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLOR008000,LINETHICK2;
TJZB3:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORFF8000,LINETHICK2;
TJZB4:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLOR00FFFF,LINETHICK2;
{2线背离}
A1:=TJZB1<REF(TJZB1,1) AND TJZB2>REF(TJZB2,1) AND TJZB3<REF(TJZB3,1) AND TJZB4<REF(TJZB4,1);
A2:=TJZB1>REF(TJZB1,1) AND TJZB2<REF(TJZB2,1) AND TJZB3>REF(TJZB3,1) AND TJZB4>REF(TJZB4,1);
背离2:IF(A1 OR A2,0,-10),COLOR008000;
{3线背离}
A3:=TJZB3>REF(TJZB3,1) AND TJZB1<REF(TJZB1,1) AND TJZB2<REF(TJZB2,1) AND TJZB4<REF(TJZB4,1);
A4:=TJZB3<REF(TJZB3,1) AND TJZB1>REF(TJZB1,1) AND TJZB2>REF(TJZB2,1) AND TJZB4>REF(TJZB4,1);
背离3:IF(A3 OR A4,0,-10),COLORFF8000;
{4线背离}
A5:=TJZB4>REF(TJZB4,1) AND TJZB1<REF(TJZB1,1) AND TJZB3<REF(TJZB3,1) AND TJZB2<REF(TJZB2,1);
A6:=TJZB4<REF(TJZB4,1) AND TJZB1>REF(TJZB1,1) AND TJZB3>REF(TJZB3,1) AND TJZB2>REF(TJZB2,1);
背离4:IF(A5 OR A6,0,-10),COLOR00FFFF;
{画线}
强势线:50,COLORCYAN;
{底部反弹投机}
底部投机:IF(TJZB1<20 AND TJZB4<20,-10,5),COLOR0000FF;
{深红色强势投机线}
强势投机4:IF(TJZB3>=45 AND TJZB4>=45,TJZB4,DRAWNULL),COLORRED,LINETHICK2;
通达信底部反弹投机指标公式
本文来自网络,不代表公式指标立场,转载请注明出处:https://www.gszb.top/13903.html