副图公式 源码支持手机/电脑
GUP2:=(2*CLOSE+HIGH+LOW)/4;
GUP3:=IF(YEAR>=2099 AND MONTH>2,0,1);
GUP4:=LLV(LOW,5);
GUP5:=HHV(HIGH,4);
散:=EMA((GUP2-GUP4)/(GUP5-GUP4)*100,4)*GUP3;
庄:=EMA(0.667*REF(散,1)+0.333*散,2)*GUP3;
DRAWICON(CROSS(散,庄) AND 散<30,L-0.05,1);
DRAWICON(CROSS(庄,散) AND 散>70,H+0.05,2);
GUP9:=CLOSE-REF(CLOSE,5);
GUPA:=EMA(EMA(GUP9,5),5)/EMA(EMA(ABS(GUP9),5),5);
GUPC:=EMA(EMA(GUP9,20),20)/EMA(EMA(ABS(GUP9),20),20);
卖:=IF(GUPA>0 AND CROSS(GUPC,GUPA),90,100);
DRAWICON(卖<0,H+0.05,2);
VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;
GUA0:=(L+H+C*2)/4;
GUA1:=EMA(GUA0,14),COLORBLUE,LINETHICK2;
GUA2:=EMA(GUA0,25),COLORLIBLUE,LINETHICK2;
GUA3:=(GUA1-REF(GUA1,1))/REF(GUA1,1)*100,NODRAW;
GUA4:=(GUA2-REF(GUA2,1))/REF(GUA2,1)*100,NODRAW;
看多:IF(GUA3>=0 AND BARSLAST(CROSS(GUA3,0))>0,REF((C+O)/2,BARSLAST(CROSS(GUA3,0))),DRAWNULL),COLORMAGENTA,LINETHICK2;
看空:IF(GUA3<0 AND BARSLAST(CROSS(0,GUA3))>0,REF((C+O)/2,BARSLAST(CROSS(0,GUA3))),DRAWNULL),COLORCYAN,LINETHICK2;
做多:IF(GUA3>=0,GUA1,DRAWNULL),COLORRED,LINETHICK3;
做空:IF(GUA3<0 AND GUA4<0,GUA1,DRAWNULL),COLORGREEN,LINETHICK3;
STICKLINE(CROSS(GUA3,0),H,L,0,0 ),COLOR9933FF;
STICKLINE(CROSS(GUA3,0),C,O,3,0 ),COLOR0000CC;
STICKLINE(CROSS(GUA3,0),C,O,1,0 ),COLOR0033FF;
STICKLINE(CROSS(0,GUA3),L,H,0,0 ),COLOR66CC33;
选股公式源码
{选股公式一:深红K线}
VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;
GUA0:=(L+H+C*2)/4;
GUA1:=EMA(GUA0,14),COLORBLUE,LINETHICK2;
GUA2:=EMA(GUA0,25),COLORLIBLUE,LINETHICK2;
GUA3:=(GUA1-REF(GUA1,1))/REF(GUA1,1)*100;
GUA4:=(GUA2-REF(GUA2,1))/REF(GUA2,1)*100;
{STICKLINE(CROSS(GUA3,0),H,L,0,0 ),COLOR9933FF;
STICKLINE(CROSS(GUA3,0),C,O,3,0 ),COLOR0000CC;
STICKLINE(CROSS(GUA3,0),C,O,1,0 ),COLOR0033FF;}
深红K线:CROSS(GUA3,0);
{选股公式二:红箭头图标}
GUP2:=(2*CLOSE+HIGH+LOW)/4;
GUP3:=IF(YEAR>=2099 AND MONTH>2,0,1);
GUP4:=LLV(LOW,5);
GUP5:=HHV(HIGH,4);
GUP9:=CLOSE-REF(CLOSE,5);
GUPA:=EMA(EMA(GUP9,5),5)/EMA(EMA(ABS(GUP9),5),5);
GUPC:=EMA(EMA(GUP9,20),20)/EMA(EMA(ABS(GUP9),20),20);
散:=EMA((GUP2-GUP4)/(GUP5-GUP4)*100,4)*GUP3;
庄:=EMA(0.667*REF(散,1)+0.333*散,2)*GUP3;
{DRAWICON(CROSS(散,庄) AND 散<30,L-0.05,1);}
红箭头图标:CROSS(散,庄) AND 散<30; |