以下是通达信黑马公式

通达信黑马公式

VAR2:=(3)*(SMA(((OPEN – LLV(LOW,89))/(HHV(HIGH,89) – LLV(LOW,89)))*(100),20,1)) – (2)*(SMA(SMA(((OPEN – LLV(LOW,89))/(HHV(HIGH,89) – LLV(LOW,89)))*(100),20,1),15,1));
VAR3:=VAR2 – 100;
VAR5:=CLOSE-LOW;
VAR6:=HIGH-LOW;
VAR7:=CLOSE-HIGH;
VAR8:=IF(CLOSE>=0,(VAR5/VAR6+VAR7/VAR6)*VOL,(VAR7/VAR6+VAR5/VAR6)*VOL);
主力控盘: SUM(VAR8,10)/10000, COLOr006AFF,Linethick2,STICK;
RSV:=(C-LLV(L,21))/(HHV(H,21) – LLV(L,21))*100;
趋势:MA((3*SMA(RSV,6,1)-2*SMA(SMA(RSV,5,1),5,1)),2),Linethick1,coloryellow;
背离:FORCAST(-1*VAR3,21),Linethick1,Culorff00ff;
DRAWTEXT((CROSS(背离,趋势)),背离,’▼’),Linethick2,Culor00FF00;
DRAWTEXT((CROSS(趋势,背离)),背离,’黑↑马’),coloryellow;
DRAWTEXT(((趋势)/(背离) > (8)) and (背离 < 10) and (趋势 > 85),
(趋势)*(1.120000004768),’跑’),Culor00FF00;
黑马跟踪天数:BARSLAST(趋势 < 背离),colorff0000;
量:=(EMA(IF(C>=REF(C,2),V,(-V)),60)/MA(V,60))*100;
量线:量,COLOR50ff50;
T3:=EMA(量,21),COLORFF00FF;
STICKLINE(T3>=REF(T3,1),T3,T3,6,0),COLORRED,LINETHICK2;
STICKLINE(T3<REF(T3,1),T3,T3,6,0),COLORWHITE,LINETHICK2;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。