副图公式源码支持: 手机/电脑
GUP1:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF((L+H+2*C)/4,1)),5,1)*100,1)+50;
GUP2:=IF(-GUP1>95,0,20);
GUP3:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 AND GUP2)+1);
GUP4:=(O+H+L)/3;
黄金趋势:EMA(GUP4,4),COLORYELLOW,LINETHICK1;
GUP5:=EMA(C,8);
GUP6:=EMA(C,20);
DRAWTEXT(CROSS(GUP5,GUP6) AND(C>=O) AND 黄金趋势>REF(黄金趋势,1),GUP5*0.97,'★二级增仓'),COLORF00FF0;
箱体顶部:MA(REF(HHV(C,30),1),2),COLOR0000FF,LINETHICK2;
箱体底部:MA(REF(LLV(C,30),1),2),COLOR00FF00,LINETHICK2;
GUA1:=(C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100;
GUA2:=SMA(GUA1,3,1);
GUA3:=SMA(GUA2,3,1);
GUA4:=SMA(GUA3,3,1);
DRAWTEXT(CROSS(GUA3,GUA4) AND(C>=O) AND GUA3<40 AND GUP3>0,LOW*0.96,'★买点'),COLORRED;
STICKLINE(C>=O,C,O,3,0),COLORRED;
STICKLINE(C>=O,H,L,0,0),COLORYELLOW;
STICKLINE(C<=O,C,O,3,0),COLORGREEN;
STICKLINE(C<=O,H,L,0,0),COLORFFFF00;
GUB1:=EMA(C,2);
GUB2:=EMA(SLOPE(C,21)*20+C,42);
DRAWTEXT(CROSS(GUB1,GUB2) AND 箱体顶部>=REF(箱体顶部,1),LOW*0.95,'★一级增仓'),COLOR00FFFF;
STICKLINE(CROSS(GUB1,GUB2),OPEN,CLOSE,3,0),COLOR00FFFF;
选股公式源码
{选股公式一:买点}
GUP1:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF((L+H+2*C)/4,1)),5,1)*100,1)+50;
GUP2:=IF(-GUP1>95,0,20);
GUP3:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 AND GUP2)+1);
GUA1:=(C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100;
GUA2:=SMA(GUA1,3,1);
GUA3:=SMA(GUA2,3,1);
GUA4:=SMA(GUA3,3,1);
买点:CROSS(GUA3,GUA4) AND(C>=O) AND GUA3<40 AND GUP3>0;
{选股公式二:一级增仓}
GUB1:=EMA(C,2);
GUB2:=EMA(SLOPE(C,21)*20+C,42);
箱体顶部:=MA(REF(HHV(C,30),1),2),COLOR0000FF,LINETHICK2;
一级增仓:CROSS(GUB1,GUB2) AND 箱体顶部>=REF(箱体顶部,1);
{选股公式三:二级增仓}
GUP4:=(O+H+L)/3;
GUP5:=EMA(C,8);
GUP6:=EMA(C,20);
黄金趋势:=EMA(GUP4,4),COLORYELLOW,LINETHICK1;
二级增仓:CROSS(GUP5,GUP6) AND(C>=O) AND 黄金趋势>REF(黄金趋势,1); |