通达信极绝顶底副图指标公式源码

 A:=(3*C+L+O+H)/6;

KKA:=EMA(C,5);
KKC:=EMA(KKB,13);
盈损线:EMA(CLOSE,17),COLORWHITE;
生命线:EMA(KKC,50),COLORYELLOW;
N:=90;
海底:REF(LLV(L,N),M)NODRAW,COLORLIMAGENTA;
低点:=REFDATE(低,DATE);
STICKLINE(绝底,C,O,3,0),COLORMAGENTA;
DRAWTEXT(绝底,L*0.97,'---绝底')COLORYELLOW;
A7:=C-REF(C,1);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8< 0,2) AND CROSS(A8,MA(A8,2));
VARC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
日:=150;
高1:=REF(HHV(H,日),昨前);
顶:=REFDATE(高1,DATE);
跑:=极顶=H AND ((C-L)< (O-C) OR (O-L)< (C-O));
STICKLINE(跑,L,H,0.1,0),COLORGREEN;
DRAWTEXT_FIX(1,0,0.02,0,'生命线上操作')COLORYELLOW;
DRAWTEXT_FIX(1,0,0.10,0,'跌破盈损线卖')COLORLIRED;