海面:MA(C,60),COLORFFFFFF,NODRAW;
乘风:MA(C,8),COLORYELLOW,LINETHICK1,NODRAW; 破浪:EMA(C,21),LINETHICK2,COLORMAGENTA; IF(破浪>海面,海面,DRAWNULL),COLORFFFFFF; IF(乘风>=破浪,乘风,DRAWNULL),COLORYELLOW,LINETHICK1; IF(乘风>破浪 AND 乘风<=REF(乘风,1),乘风,DRAWNULL),COLORCYAN,LINETHICK1; IF(破浪<=REF(破浪,1),破浪,DRAWNULL),COLORGREEN,LINETHICK2; AA:=COUNT(CROSS(EMA(C,21),MA(C,8)),30)=1; BB:=COUNT(CROSS(EMA(C,21),MA(C,60)),30)=1; CC:=REF(BARSLAST(AA AND BB),1); DD:=CC AND CROSS(MA(C,8),EMA(C,21)); DRAWTEXT(DD,(LOW * 0.99),'←乘风'),COLOR80FFFF; 选股公式源码:
AA:=COUNT(CROSS(EMA(C,21),MA(C,8)),30)=1;
BB:=COUNT(CROSS(EMA(C,21),MA(C,60)),30)=1; CC:=REF(BARSLAST(AA AND BB),1); CC AND CROSS(MA(C,8),EMA(C,21)); |
