2024双钻优选 买入拉升《通达信+指标+公式+副图+源码》
副图公式源码支持 手机/电脑
GUP9:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUP10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUP11:=GUP9<REF(GUP10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
GUP12:=(HIGH+LOW+CLOSE)/3;
GUP13:=(GUP12-MA(GUP12,14))/(0.015*AVEDEV(GUP12,14));
GUP14:=(GUP12-MA(GUP12,70))/(0.015*AVEDEV(GUP12,70));
GUP15:=IF(GUP13>=150 AND GUP13<200 AND GUP14>=150 AND GUP14<200,10,0);
GUP16:=IF(GUP13<=-150 AND GUP13>-200 AND GUP14<=-150 AND GUP14>-200,-10,GUP15);
GUP17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
GUP18:=100-ABS(GUP17);
GUP19:=IF(GUP18<90,GUP18,100);
GUP20:=IF(MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20>0,MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20,0);
GUP21:=IF(GUP14>=200 AND GUP13>=150,15,IF(GUP14<=-200 AND GUP13<=-150,-15,GUP16))+60;
GUP22:=GUP20>48 AND GUP21>60 AND GUP19<100;
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED;
DEA:EMA(DIF,9),COLORBLUE;
MACD:2*(DIF-DEA),NODRAW;
STICKLINE(MACD>0,0,MACD,6,0),COLORLIRED;
STICKLINE(MACD<0,0,MACD,6,0),COLORLIGREEN;
GUA1:=MACD;
GUA2:=REF(HHV(MACD,BARSLAST(CROSS(MACD,0))+1),BARSLAST(CROSS(MACD,0))+1);
STICKLINE(GUA1>GUA2 AND DIF>REF(DIF,1),MACD,GUA2,6,0),COLORLIRED;
GUA3:=REF(LLV(MACD,BARSLAST(CROSS(MACD,0))+1),BARSLAST(CROSS(MACD,0))+1);
STICKLINE(GUA1<GUA3 AND DIF<REF(DIF,1),MACD,GUA3,6,0),COLORLIBLUE;
DRAWICON(GUP11 AND COUNT(GUP11,30)=1,DIF,25);
DRAWICON(GUP22 AND COUNT(GUP22,30)=1,DIF,26);
选股公式源码
{选股公式一:红钻石图标}
GUP9:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUP10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUP11:=GUP9<REF(GUP10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
红钻石图标:GUP11 AND COUNT(GUP11,30)=1;
{选股公式二:黄钻石图标}
GUP9:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUP10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUP11:=GUP9<REF(GUP10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
GUP12:=(HIGH+LOW+CLOSE)/3;
GUP13:=(GUP12-MA(GUP12,14))/(0.015*AVEDEV(GUP12,14));
GUP14:=(GUP12-MA(GUP12,70))/(0.015*AVEDEV(GUP12,70));
GUP15:=IF(GUP13>=150 AND GUP13<200 AND GUP14>=150 AND GUP14<200,10,0);
GUP16:=IF(GUP13<=-150 AND GUP13>-200 AND GUP14<=-150 AND GUP14>-200,-10,GUP15);
GUP17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
GUP18:=100-ABS(GUP17);
GUP19:=IF(GUP18<90,GUP18,100);
GUP20:=IF(MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20>0,MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20,0);
GUP21:=IF(GUP14>=200 AND GUP13>=150,15,IF(GUP14<=-200 AND GUP13<=-150,-15,GUP16))+60;
GUP22:=GUP20>48 AND GUP21>60 AND GUP19<100;
黄钻石图标:GUP22 AND COUNT(GUP22,30)=1;