2024优选买点《通达信+指标+公式+副图+源码》
副图公式源码支持 手机/电脑
DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DIF1
DEA1:EMA(DIFF1,9),COLORYELLOW;
MACD1:2*(DIFF1-DEA1),COLORMAGENTA,NODRAW;
O轴:0,COLORGRAY;
STICKLINE(MACD1>0 AND MACD1>=REF(MACD1,1),0,MACD1,2,0),COLOR0000FF;
STICKLINE(MACD1>0 AND MACD1<REF(MACD1,1),0,MACD1,2,0),COLORFFFF00;
STICKLINE(MACD1<0 AND MACD1>=REF(MACD1,1),0,MACD1,2,0),COLORFF00FF;
STICKLINE(MACD1<0 AND MACD1<REF(MACD1,1),0,MACD1,2,0),COLOR00FF00;
GUP1:=DIFF1<0 AND DEA1<0;
GUP2:=GUP1>REF(GUP1,1);
GUP3:=BARSLAST(GUP2);
GUP4:=COUNT(DEA1>0 AND DIFF1 >0,GUP3)=0;
GUP5:=CROSS(DIFF1 ,DEA1);
GUP6:=BARSLAST(GUP5);
GUP7:=REF(GUP6,GUP6+1)+GUP6;
GUP8:=(DIFF1+DEA1)/2;
GUP9:=(HIGH+LOW)/2;
GUP10:=GUP5 AND GUP7<GUP3 AND GUP4 AND GUP8>REF(GUP8,GUP7) AND GUP9<REF(GUP9,GUP7) AND MACD1>0;
DRAWTEXT(GUP10,DIFF1*0.95,'优'),COLORLIRED;
GUP11:=CROSS(DIF1,0) AND REF(EVERY(DIF1<0,34),1);
STICKLINE(GUP11,0,MACD1,2,0),COLORYELLOW;
选股公式源码
{选股公式一:优}
DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DIF1:=DIFF1,COLORWHITE;
DEA1:=EMA(DIFF1,9),COLORYELLOW;
MACD1:=2*(DIFF1-DEA1),COLORMAGENTA;
GUP1:=DIFF1<0 AND DEA1<0;
GUP2:=GUP1>REF(GUP1,1);
GUP3:=BARSLAST(GUP2);
GUP4:=COUNT(DEA1>0 AND DIFF1 >0,GUP3)=0;
GUP5:=CROSS(DIFF1 ,DEA1);
GUP6:=BARSLAST(GUP5);
GUP7:=REF(GUP6,GUP6+1)+GUP6;
GUP8:=(DIFF1+DEA1)/2;
GUP9:=(HIGH+LOW)/2;
GUP10:=GUP5 AND GUP7<GUP3 AND GUP4 AND GUP8>REF(GUP8,GUP7) AND GUP9<REF(GUP9,GUP7) AND MACD1>0;
优:GUP10;
{选股公式二:黄柱信号}
DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DIF1:=DIFF1,COLORWHITE;
DEA1:=EMA(DIFF1,9),COLORYELLOW;
GUP1:=DIFF1<0 AND DEA1<0;
GUP2:=GUP1>REF(GUP1,1);
GUP3:=BARSLAST(GUP2);
GUP4:=COUNT(DEA1>0 AND DIFF1 >0,GUP3)=0;
GUP5:=CROSS(DIFF1 ,DEA1);
GUP11:=CROSS(DIF1,0) AND REF(EVERY(DIF1<0,34),1);
黄柱信号:GUP11;