通达信生命线主图公式
M:=10;
A:=(3*C+L+O+H)/6;
B:(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)
+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210,LINETHICK1;
D:MA(B,M),LINETHICK1;
STICKLINE(OPEN =CLOSE ,CLOSE ,OPEN,2,0 ),COLORAAAAAA;
STICKLINE(OPEN =CLOSE ,CLOSE ,OPEN,1.5,0 ),COLORBBBBBB;
STICKLINE(OPEN =CLOSE ,CLOSE ,OPEN,1,0 ),COLORCCCCCC;
STICKLINE(OPEN =CLOSE ,CLOSE ,OPEN,0.1,0 ),COLORDDDDDD;
STICKLINE(CLOSE OPEN,CLOSE,OPEN,2,0 ),COLOR6666CC;
STICKLINE(CLOSE OPEN,CLOSE,OPEN,1.5 ,0 ),COLOR7777DD;
STICKLINE(CLOSE OPEN,CLOSE,OPEN,1 ,0 ),COLOR8888EE;
STICKLINE(CLOSE OPEN,CLOSE,OPEN,0.1 ,0 ),COLOR9999FF;
STICKLINE(CLOSE OPEN,OPEN,LOW,0,0 ),COLOR1199FF;
STICKLINE(CLOSE OPEN,CLOSE,HIGH,0 ,0 ),COLOR1199FF;
STICKLINE(OPEN =CLOSE,CLOSE,LOW,0 ,0 ),COLORCCCCCC;
STICKLINE(OPEN =CLOSE,OPEN,HIGH,0 ,0 ),COLORCCCCCC;
WFJ:=(B-REF(B,1))*100;
WFJ8:=(D-REF(D,1))*100;
WW:=CROSS(WFJ,WFJ8);
DRAWTEXT(WW,LOW*0.99,'▲注意买'),COLORWHITE;
WWW:=CROSS(WFJ8,WFJ);
DRAWTEXT(WWW,HIGH*1.01,'▼注意卖'),COLORWHITE;