飞狐大牛股副图,选股,源码
看副图就明白,不需要多说,最好前一红柱面积大于前二红柱面积
副图:
DIFF:SMA(C,10,1)-SMA(C,22,1);
DEA:SMA(DIFF,7,1);
MACD:(DIFF-DEA)*2,COLORSTICK;
STICKLINE(MACD>=0,0,MACD,6,0),colorFF;
STICKLINE(MACD>=0 AND MACD<REF(MACD,1),0,MACD,6,1),colorFF;
STICKLINE(MACD<0,0,MACD,6,0),colorFFFF00;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),0,MACD,6,1),colorFFFF00;
差:=DEA-DIFF;
面积:=IF(MACD<0,SUM(MACD,BARSLAST(差<0)),0);
A1:=IF(MACD<0,BARSLAST(CROSS(DIFF,DEA)),0);
前次面积:=REF(面积,A1+1);
A2:=IF((面积<0 AND ABS(面积)<ABS(前次面积)),1,0);
XG:=count(MACD>0,55)>=34 and cross(DIFF,DEA) and REF(A2,1);
DRAWTEXT(XG,0,'★'),LINETHICK3,COLOR00FFFF;
选股:
DIFF:=SMA(C,10,1)-SMA(C,22,1);
DEA:=SMA(DIFF,7,1);
MACD:=(DIFF-DEA)*2;
差:=DEA-DIFF;
面积:=IF(MACD<0,SUM(MACD,BARSLAST(差<0)),0);
A1:=IF(MACD<0,BARSLAST(CROSS(DIFF,DEA)),0);
前次面积:=REF(面积,A1+1);
A2:=IF((面积<0 AND ABS(面积)<ABS(前次面积)),1,0);
XG:count(MACD>0,55)>=34 and cross(DIFF,DEA) and REF(A2,1);