本帖最后由 九转妖 于 2023-8-9 09:12 编辑
副图公式源码支持: 手机/电脑
{今天发布的是三个卖出信号的公式,下次将发布买入信号的公式,两个公式可以合并放到一起使用。}
GUA51:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100);
GUA61:=SMA(GUA51,5,1);
GUA71:=SMA(GUA61,8,1);
GUA81:=(CROSS(GUA61,GUA71) AND (GUA71 < 10));
GUA91:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) AND GUA81);
GUA21:=IF((CLOSE > 1000),GUA81,GUA91);
清仓:=GUA21;
STICKLINE(清仓,130,0,1,1),COLORGREEN;
DRAWTEXT(清仓,130,'清仓'),COLORYELLOW;
GUB11:=REF(CLOSE,1);
GUB12:=(SMA(MAX(CLOSE-GUB11,0),17,1))/(SMA(ABS(CLOSE-GUB11),17,1))*100;
卖出:=CROSS(79,GUB12);
STICKLINE(卖出,130,0,1,1),COLORGREEN;
DRAWTEXT(卖出,120,'卖出'),COLORYELLOW;
EMA13:=EMA(C,13);
EMA34:=EMA(C,34);
EMA55:=EMA(C,55);
GUP1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );
GUP2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1);
GUP3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GUP1),GUP1);
GUP4:=H=HHV(H,GUP1);
GUP5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);
GUP6:=GUP2 AND GUP3 AND GUP4;
GUP7:=GUP2 AND GUP3 AND GUP4 AND GUP5;
离场:=GUP6 AND GUP7;
STICKLINE(离场,130,0,1,1),COLORGREEN;
DRAWTEXT(离场,110,'离场'),COLORYELLOW;
选股公式源码
{卖出公式一:清仓}
GUA51:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100);
GUA61:=SMA(GUA51,5,1);
GUA71:=SMA(GUA61,8,1);
GUA81:=(CROSS(GUA61,GUA71) AND (GUA71 < 10));
GUA91:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) AND GUA81);
GUA21:=IF((CLOSE > 1000),GUA81,GUA91);
清仓:GUA21;
{卖出公式二:卖出}
GUB11:=REF(CLOSE,1);
GUB12:=(SMA(MAX(CLOSE-GUB11,0),17,1))/(SMA(ABS(CLOSE-GUB11),17,1))*100;
卖出:CROSS(79,GUB12);
{卖出公式三:离场}
EMA13:=EMA(C,13);
EMA34:=EMA(C,34);
EMA55:=EMA(C,55);
GUP1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );
GUP2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1);
GUP3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GUP1),GUP1);
GUP4:=H=HHV(H,GUP1);
GUP5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);
GUP6:=GUP2 AND GUP3 AND GUP4;
GUP7:=GUP2 AND GUP3 AND GUP4 AND GUP5;
离场:GUP6 AND GUP7; |