副图公式源码:支持手机/电脑
LC:=REF(CLOSE,1); RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; AR:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100; 卖出警戒:=CROSS(85,RSI1)*30,COLOR00FF00,LINETHICK2; DRAWTEXT(CROSS(85,RSI1),20,'顶'),COLOR00FF00; STICKLINE(卖出警戒,0,20,3,0),COLOR00FF00; GUPB:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100; GUPC:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100; GUPD:=BARSCOUNT(CLOSE); 散户:EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5,LINETHICK2,COLORC87800; GUB2:=CROSS(主力,散户) AND 主力<-10; GUB:=FILTER(COUNT(GUB1 OR GUB2,3)>=2,3); STICKLINE(GUB,0,50,4,1),COLOR0000FF; DRAWTEXT(GUB,50,'牛'),COLOR0000FF; STICKLINE(GUB2,0,20,3,0),COLORFF00FF; DRAWTEXT(GUB2,20,'拉'),COLORFF00FF;
选股公式源码
{选股公式一:牛} LC:=REF(CLOSE,1); RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; GUB1:=CROSS(RSI1,25); 主力:=EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5,LINETHICK1,COLOR0000FF; 散户:=EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5,LINETHICK2,COLORC87800; GUB2:=CROSS(主力,散户) AND 主力<-10; 拉:GUB2;
|