副图公式源码支持 手机/电脑
DRAWKLINE(H,O,L,C);
GUA1:=(C+H+L)/3;
GUA2:=MA(GUA1,4);
操盘:GUA2,COLORWHITE;
持股LV(GUA2,8),COLORCYAN;
上涨:HHV(GUA2,13),COLORYELLOW;
压力:HHV(GUA2,55),COLORMAGENTA;
GUP6:=(2*CLOSE+HIGH+LOW)/4;
GUP7:=LLV(LOW,14);
GUP8:=HHV(HIGH,14);
GUP9:=EMA((GUP6-GUP7)/(GUP8-GUP7)*100,14);
GUPA:=EMA(0.667*REF(GUP9,1)+0.333*GUP9,7);
多头:=CROSS(操盘,持股) AND (GUP9>GUPA) OR CROSS(GUP9,GUPA) AND (操盘>持股);
空头:=CROSS(上涨,操盘) AND (GUPA>GUP9) OR CROSS(GUPA,GUP9) AND (操盘<上涨);
STICKLINE((操盘>持股)AND(GUPA<GUP9),OPEN,CLOSE,3,0),COLORMAGENTA;
STICKLINE((操盘<上涨)AND(GUPA>GUP9),OPEN,CLOSE,3,0),COLORBLUE;
DRAWICON(多头,LOW,1);
DRAWICON(空头,HIGH,2);
选股公式源码
{选股公式:红箭头图标}
GUA1:=(C+H+L)/3;
GUA2:=MA(GUA1,4);
操盘:=GUA2,COLORWHITE;
持股:=LLV(GUA2,8),COLORCYAN;
GUP6:=(2*CLOSE+HIGH+LOW)/4;
GUP7:=LLV(LOW,14);
GUP8:=HHV(HIGH,14);
GUP9:=EMA((GUP6-GUP7)/(GUP8-GUP7)*100,14);
GUPA:=EMA(0.667*REF(GUP9,1)+0.333*GUP9,7);
多头:=CROSS(操盘,持股) AND (GUP9>GUPA) OR CROSS(GUP9,GUPA) AND (操盘>持股);
红箭头图标:多头;
{卖出公式:绿箭头图标}
GUA1:=(C+H+L)/3;
GUA2:=MA(GUA1,4);
操盘:=GUA2,COLORWHITE;
上涨:=HHV(GUA2,13),COLORYELLOW;
GUP6:=(2*CLOSE+HIGH+LOW)/4;
GUP7:=LLV(LOW,14);
GUP8:=HHV(HIGH,14);
GUP9:=EMA((GUP6-GUP7)/(GUP8-GUP7)*100,14);
GUPA:=EMA(0.667*REF(GUP9,1)+0.333*GUP9,7);
空头:=CROSS(上涨,操盘) AND (GUPA>GUP9) OR CROSS(GUPA,GUP9) AND (操盘<上涨);
绿箭头图标:空头; |