DRAWGBK(C>O,RGB(50,10,0),RGB(0,0,30),0,0,0);
RS1:=SMA(MAX(C-REF(C,1),0),7,1)/SMA(Abs(C-REF(C,1)),7,1)*100;
强弱买:FILTER(REF(RS1,1)< 20 AND RS1>REF(RS1,1),5)*2,COLORLIRED;
bias1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
乖深低:IF(乖离<=-8,-0.35,0),LINETHICK1,COLORGREEN;
乖浅低:IF(BETWEEN(BIAS,-2,-8),-0.2,0),LINETHICK1,COLORLIGRAY;
乖买:REF(乖浅低=-0.2,1)AND BIAS>REF(BIAS,1),COLORLIMAGENTA,NODRAW;
乖低金:crOSS(BIAS,乖离) AND REF(乖离< -4.5,1),COLORRED,NODRAW;
DRAWBAND(0,RGB(0,100,0),乖深低,0);
DRAWBAND(0,RGB(180,180,180),乖浅低,0);
STICKLINE(乖离<=-8,-0.2,0,1,0),COLORLIGREEN;
STICKLINE(乖浅低=-0.2,-0.1,0,1,0),COLORLIBLUE;
STICKLINE(乖买=1,-0.1,0,1,0),COLORLIMAGENTA;
STICKLINE(乖低金=1,-0.5,0,0,0),COLORRED;
更:(C-LLV(L,10))/(HHV(H,25)-LLV(L,10))*4,COLORMAGENTA;
好:EMA(更,3),COLORGREEN,DOTLINE;
A低:=更<=LLV(更,10),COLORWHITE,NODRAW;
买:REF(A低=1,1)AND 更>REF(更,1),COLORRED,NODRAW;
卖:IF(REF(更>=HHV(更,10),1)AND 更< REF(更,1),3.5,4),COLORLICYAN;
高:"dmi.PDI"(14,6)>33 AND "DMI.mdi"(14,6)< 10 AND "DMI.ADX"(14,6)>40 AND "DMI.ADXR"(14,6)>45,STICK,COLORBROWN,LINETHICK2;
险:((HHV(好,4)>3.6 OR 更>=3.8)AND 高=1)*0.5,STICK,COLORLICYAN,LINETHICK3;
调:IF(高=0 AND HHV(高,5)>0,-0.5,0),STICK,COLORGREEN,LINETHICK2;
可卖:=IF(险=1 AND H-C>C-L AND V>HHV(V,20)/2 AND C< O*1.01,-0.75,0),STICK,COLORCYAN,LINETHICK2;
出:IF(险=0 AND HHV(险,3)>0,-1,0),STICK,COLORCYAN,LINETHICK2;
遇警:=IF(可卖=-0.75,-0.75,IF(出< 0,-1,IF(险>0,1,IF(调< 0,-0.5,高)))),COLORSTICK;
KM:=REF(更<=LLV(更,10),1)AND 更>REF(更,1);
可买:IF(FILTER((C-L>H-C AND V>HHV(V,13)*0.4 OR KM=1)AND(乖深低=-0.35 OR 乖浅低=-0.2 OR 调=-0.5),1),0.3,0),STICK,COLORYELLOW,LINETHICK2;
关联:IF(可卖=-0.75,-0.75,IF(出< 0,-1,IF(险>0,1,IF(调< 0,-0.5,高)))),COLORRED,LINETHICK1;
STICKLINE(A低=1,1,1.1,1,0),COLORWHITE;
STICKLINE(买=1,1,1.1,1,0),COLORRED;
DRAWTEXT(乖低金=1,-0.5,' 乖金'),COLORRED;
通达信乖金买卖指标公式
本文来自网络,不代表公式指标立场,转载请注明出处:https://www.gszb.top/106514.html