通达信股票公式之生意黄金线副图
{生意黄金线}副AA:=(o+h+l+c)/4;BB:=MA(AA,3);CC:=SUM(IF(AAREF(AA,1),AAVOL,0),4)/SUM(IF(AAREF(AA,1),AAVOL,0),4);DD:=REF(100-(100/(1+CC)),1);a1:=HHV(AA,15);a2:=LLV(AA,15);a3:=a1-a2;a4:=ema((AA-a2)/a3,2)100;b1:=HHV(AA,60);b2:=LLV(A
{生意黄金线}副
AA:=(o+h+l+c)/4;
BB:=MA(AA,3);
CC:=SUM(IF(AA》REF(AA,1),AAVOL,0),4)/SUM(IF(AADD:=REF(100-(100/(1+CC)),1);
a1:=HHV(AA,15);
a2:=LLV(AA,15);
a3:=a1-a2;
a4:=ema((AA-a2)/a3,2)100;
b1:=HHV(AA,60);
b2:=LLV(AA,60);
b3:=b1-b2;
b4:=ema((AA-b2)/b3,2)100;
C1:=HHV(AA,240);
C2:=LLV(AA,240);
C3:=C1-C2;
C4:=ema((AA-C2)/C3,2)*100;
短期:a4,colorgreen;
中期:b4,coloryellow;
长时间:C4,colorFF00FF;
STICKLINE(短期》90AND中期》70,86,94,6,0),COLOR00FF00;
STICKLINE(短期《5AND中期《30,0,8,6,0);
IF(FILTER(中期90ANDBBIF(FILTER(中期》REF(中期,1)AND中期《5ANDC》REF(C,1),5),20,0),COLORRED,Linethick2;
D1:=中期》REF(中期,1)AND短期》REF(短期,1)AND长时间》REF(长时间,1)AND长时间《8AND中期《10AND短期《15;
D2:=CROSS(短期,中期)AND中期《8;
D3:=CROSS(短期,长时间)AND长时间《8AND中期《20;
DRAWICON(FILTER((D1ORD2ORD3)ANDDD《15ANDC》REF(C,1),5),5,1);
DRAWICON(FILTER((中期95AND短期》85)OR(长时间》100AND中期》100AND短期》100),5),95,2);
强弱分界:50,pOINTDOT,colorwhite;
戒备区:90,linethick1,ColorWHITE;
安全区:20,ColorFFFF00;