请高手把下面的通达信指标改成选股公式(提示“买”)

VAR1:=PEAKBARS(2,13,1)<10;
VAR2:=IF(VAR1=1,2,0);
顶1:= IF(VAR2=2,1,0);
顶B:IF(顶1>REF(顶1,1),78,100),COLORGREEN,LINETHICK2;
VAR3:=PEAKBARS(3,8,1)<10;
VAR5:=IF(VAR3=1,2,0);
顶:= IF(VAR5=2,1,0);
顶A:IF(顶>REF(顶,1),78,100),COLORYELLOW,LINETHICK2;
VARC:=(ZIG(3,8)>REF(ZIG(3,8),1)) AND (REF(ZIG(3,8),1)<=REF(ZIG(3,8),2)) AND (REF(ZIG
(3,8),2)<=REF(ZIG(3,8),3));
STICKLINE((VARC=1),18,0,8,1),COLORMAGENTA;
DRAWTEXT((VARC=1),8,'+买'),COLORMAGENTA;

这个不难,如下:
只不过好像有未来函数ZIG()
VAR1:=PEAKBARS(2,13,1)<10;
VAR2:=IF(VAR1=1,2,0);
顶1:= IF(VAR2=2,1,0);
顶B:=IF(顶1>REF(顶1,1),78,100),COLORGREEN,LINETHICK2;
VAR3:=PEAKBARS(3,8,1)<10;
VAR5:=IF(VAR3=1,2,0);
顶:= IF(VAR5=2,1,0);
VARC:(ZIG(3,8)>REF(ZIG(3,8),1)) AND (REF(ZIG(3,8),1)<=REF(ZIG(3,8),2)) AND (REF(ZIG
(3,8),2)<=REF(ZIG(3,8),3));
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答