副图公式 源码支持手机/电脑
GUP1:=LLV(LOW,10);
GUP2:=HHV(HIGH,15);
GUP3:=EMA((CLOSE-GUP1)/(GUP2-GUP1)*4,4);
趋势线:MA(GUP3,2);
STICKLINE(REF(趋势线,1)<趋势线,趋势线,REF(趋势线,1),3.5,0),COLOR000033;
STICKLINE(REF(趋势线,1)<趋势线,趋势线,REF(趋势线,1),2.8,0),COLOR000055;
STICKLINE(REF(趋势线,1)<趋势线,趋势线,REF(趋势线,1),1.2,0),COLOR000099;
STICKLINE(REF(趋势线,1)<趋势线,趋势线,REF(趋势线,1),0.4,0),COLOR0000DD;
STICKLINE(REF(趋势线,1)>趋势线,趋势线,REF(趋势线,1),3.5,0),COLOR003300;
STICKLINE(REF(趋势线,1)>趋势线,趋势线,REF(趋势线,1),2.8,0),COLOR005500;
STICKLINE(REF(趋势线,1)>趋势线,趋势线,REF(趋势线,1),2.0,0),COLOR007700;
STICKLINE(REF(趋势线,1)>趋势线,趋势线,REF(趋势线,1),1.2,0),COLOR009900;
STICKLINE(REF(趋势线,1)>趋势线,趋势线,REF(趋势线,1),0.4,0),COLOR00DD00;
下跌:IF(趋势线<REF(趋势线,1),趋势线,DRAWNULL),COLORGREEN,LINETHICK2;
上涨:IF(趋势线>REF(趋势线,1),趋势线,DRAWNULL),COLORRED,LINETHICK2;
GUA1:=趋势线,COLORWHITE;
GUA2:=MA(GUA1,2),COLORYELLOW,POINTDOT;
GUB1:=CROSS(GUA1,GUA2)*1000,COLORRED;
GUB2:=CROSS(GUA2,GUA1)*1000,POINTDOT,COLORBLUE;
DRAWTEXT(GUB2=1000,GUA1*1.05,'高卖' ),COLOR00FF00;
DRAWTEXT(GUB1=1000,GUA1*1.05,'低买'),COLORFFFFFF;
买:GUB1,NODRAW,COLORFFFFFF;
卖:GUB2,NODRAW,COLOR00FF00;
选股公式源码
{选股公式:低买}
GUP1:=LLV(LOW,10);
GUP2:=HHV(HIGH,15);
GUP3:=EMA((CLOSE-GUP1)/(GUP2-GUP1)*4,4);
趋势线:=MA(GUP3,2);
上涨:=IF(趋势线>REF(趋势线,1),趋势线,DRAWNULL),COLORRED,LINETHICK2;
GUA1:=趋势线,COLORWHITE;
GUA2:=MA(GUA1,2),COLORYELLOW;
GUB1:=CROSS(GUA1,GUA2)*1000,COLORRED;
GUB2:=CROSS(GUA2,GUA1)*1000,COLORBLUE;
低买:GUB1=1000;
{卖出公式:高卖}
GUP1:=LLV(LOW,10);
GUP2:=HHV(HIGH,15);
GUP3:=EMA((CLOSE-GUP1)/(GUP2-GUP1)*4,4);
趋势线:=MA(GUP3,2);
下跌:=IF(趋势线<REF(趋势线,1),趋势线,DRAWNULL),COLORGREEN,LINETHICK2;
GUA1:=趋势线,COLORWHITE;
GUA2:=MA(GUA1,2),COLORYELLOW;
GUB1:=CROSS(GUA1,GUA2)*1000,COLORRED;
GUB2:=CROSS(GUA2,GUA1)*1000,COLORBLUE;
高卖:GUB2=1000;
|