副图公式源码支持 手机/电脑
趋势线:MACD,COLORAACCEE,LINETHICK2;
行情界:REF(MACD/2,BARSLAST(MACD=HHV(MACD,250))),COLOR0000EE,LINETHICK2;
DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
ZTB:=C>INTPART(REF(C,1)*(1+10/100)/0.01+0.5)*0.01-0.006 AND C=H;
买入:=DIF1>-0.2 AND DIF1<0.35 AND ZTB AND REF(ZTB,1)<1 AND COUNT(EMA(CLOSE,12)-EMA(CLOSE,26)>=-0.01,5)=5;
DRAWTEXT(买入,REF(MACD/2,BARSLAST(MACD=HHV(MACD,250)))*1.185,'--牛股'),COLOREE9900;
DRAWTEXT(买入,REF(MACD/2,BARSLAST(MACD=HHV(MACD,250)))*1.185,''),COLORYELLOW;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),0,MACD,1,0),COLORYELLOW;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,1,0),COLORLIBLUE;
STICKLINE(MACD<0,0,MACD,1,0),COLORGREEN;
STICKLINE(MACD>=REF(MACD/2,BARSLAST(MACD=HHV(MACD,250))),REF(MACD/2,BARSLAST(MACD=HHV(MACD,250))),MACD,2,0),COLORAA00CC;
选股公式源码
{选股公式:牛股}
趋势线:=MACD,COLORAACCEE,LINETHICK2;
行情界:=REF(MACD/2,BARSLAST(MACD=HHV(MACD,250))),COLOR0000EE,LINETHICK2;
DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
ZTB:=C>INTPART(REF(C,1)*(1+10/100)/0.01+0.5)*0.01-0.006 AND C=H;
买入:=DIF1>-0.2 AND DIF1<0.35 AND ZTB AND REF(ZTB,1)<1 AND COUNT(EMA(CLOSE,12)-EMA(CLOSE,26)>=-0.01,5)=5;
牛股:买入;
|