VARA:=LLV(LOW,36);
VARB:=HHV(HIGH,30);
VARC:=EMA((CLOSE-VARA)/(VARB-VARA)*4,4)*25;
趋势:=VARC,COLORMAGENTA;

VAR8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);
VAR9:=EMA(VAR8,7);
底部N:IF(VAR9<-10,6,0),COLORFFFFFF,NODRAW;

{排序}
DEA66:=EMA((EMA(EMA(CLOSE,4)-EMA(CLOSE,12), 6)-EMA(EMA(CLOSE,4)-EMA(CLOSE,12), 12)),9);
DEA12:=EMA((EMA(EMA(CLOSE,4)-EMA(CLOSE,12), 12)-EMA(EMA(CLOSE,4)-EMA(CLOSE,12), 24)),9);
DEA18:=EMA((EMA(EMA(CLOSE,4)-EMA(CLOSE,12), 18)-EMA(EMA(CLOSE,4)-EMA(CLOSE,12), 36)),9);
DEA51:=EMA((EMA(EMA(CLOSE,4)-EMA(CLOSE,12), 51)-EMA(EMA(CLOSE,4)-EMA(CLOSE,12),102)),9);
DEA102:=EMA((EMA(EMA(CLOSE,4)-EMA(CLOSE,12),102)-EMA(EMA(CLOSE,4)-EMA(CLOSE,12),204)),9);
多头1:=DEA102>0 AND DEA51>0;
多头2:=DEA102>0 AND DEA66>DEA12 AND DEA12>DEA18;
多头3:=DEA18>DEA51 AND DEA18>DEA102 AND DEA18>0;
多头:=多头1=1 OR 多头2=1 OR 多头3=1;
空头1:=DEA18>DEA51 OR DEA18>DEA102;
空头2:=DEA51>DEA102;
空头:=空头1=1 OR 空头2=1;
抄底1:=DEA66>DEA12 AND DEA12>DEA18;
抄底2:=抄底1=1 OR 多头=1 OR 空头=1;
抄底:=IF(抄底2,0,12),COLORYELLOW,LINETHICK2;

MD5:=IF(PERIOD>=7,ZIG(3,1),IF(PERIOD=3,ZIG(1,2),ZIG(1,2)));
MD10:=IF(PERIOD>=7,ZIG(3,30),IF(PERIOD=3,ZIG(1,10),ZIG(1,10)));
MD20:=IF(PERIOD>=7,ZIG(1,10),IF(PERIOD=3,ZIG(1,30),ZIG(1,20)));
XD1:=MD5>REF(MD5,1) AND REF(MD5,1)<=REF(MD5,2) AND REF(MD5,2)<=REF(MD5,3);
ND1:=MD5<REF(MD5,1) AND REF(MD5,1)>=REF(MD5,2) AND REF(MD5,2)>=REF(MD5,3);
XD2:=MD10>REF(MD10,1) AND REF(MD10,1)<=REF(MD10,2) AND REF(MD10,2)<=REF(MD10,3);
ND2:=MD10<REF(MD10,1) AND REF(MD10,1)>=REF(MD10,2) AND REF(MD10,2)>=REF(MD10,3);
XD3:=MD20>REF(MD20,1) AND REF(MD20,1)<=REF(MD20,2) AND REF(MD20,2)<=REF(MD20,3);
ND3:=MD20<REF(MD20,1) AND REF(MD20,1)>=REF(MD20,2) AND REF(MD20,2)>=REF(MD20,3);
ZQ1:=BARSLAST(MD5<REF(MD5,1));
ZR1:=BARSLAST(MD5>REF(MD5,1));
ZQ2:=BARSLAST(MD10<REF(MD10,1));
ZR2:=BARSLAST(MD10>REF(MD10,1));
ZQ3:=BARSLAST(MD20<REF(MD20,1));
ZR3:=BARSLAST(MD20>REF(MD20,1));
ZTJZ5:=IF(MD10>REF(MD10,1),COUNT(XD1,ZQ2),0);
ZTJD5:=IF(MD10>REF(MD10,1),COUNT(ND1,ZQ2),0);
DTJZ5:=IF(MD10<REF(MD10,1),COUNT(XD1,ZR2),0);
DTJD5:=IF(MD10<REF(MD10,1),COUNT(ND1,ZR2),0);
ZTJZ10:=IF(MD20>REF(MD20,1),COUNT(XD2,ZQ3),0);
ZTJD10:=IF(MD20>REF(MD20,1),COUNT(ND2,ZQ3),0);
DTJZ10:=IF(MD20<REF(MD20,1),COUNT(XD2,ZR3),0);
DTJD10:=IF(MD20<REF(MD20,1),COUNT(ND2,ZR3),0);

STICKLINE(XD2 AND ZTJZ5=1 AND 底部N=0 ,0,25,0,0),COLORLIGREEN;
STICKLINE(XD2 AND ZTJZ5=1 AND 底部N=0 ,0,80,0,0),COLORYELLOW;
DRAWTEXT(XD2 AND ZTJZ5=1 AND 底部N=0 ,30,'短底'),COLORGREEN;


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