副图公式源码支持: 手机/电脑
GUP1:=(2*CLOSE+HIGH+LOW)/4;
GUP2:=LLV(LOW,34);
GUP3:=HHV(HIGH,34);
GUP4:=EMA((GUP1-GUP2)/(GUP3-GUP2)*100,3);
GUP5:=EMA(0.667*REF(GUP4,1)+0.333*GUP4,2);
STICKLINE(CROSS(GUP4,GUP5),CLOSE,OPEN,10.8,0),COLORRED;
STICKLINE(CROSS(GUP5,GUP4),CLOSE,OPEN,10.8,0),COLORYELLOW;
DRAWTEXT(CROSS(GUP4,GUP5),LOW,'买'),COLORBLUE;
DRAWTEXT(CROSS(GUP5,GUP4),HIGH,'卖'),COLORWHITE;
GUP6:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
DRAWTEXT(CROSS(GUP6,9),LOW,'小牛'),COLORRED;
选股公式源码
{选股公式一:小牛}
GUP1:=(2*CLOSE+HIGH+LOW)/4;
GUP2:=LLV(LOW,34);
GUP3:=HHV(HIGH,34);
GUP4:=EMA((GUP1-GUP2)/(GUP3-GUP2)*100,3);
GUP5:=EMA(0.667*REF(GUP4,1)+0.333*GUP4,2);
GUP6:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
{DRAWTEXT(CROSS(GUP6,9),LOW,'小牛'),COLORRED;}
小牛:CROSS(GUP6,9);
{选股公式二:买}
GUP1:=(2*CLOSE+HIGH+LOW)/4;
GUP2:=LLV(LOW,34);
GUP3:=HHV(HIGH,34);
GUP4:=EMA((GUP1-GUP2)/(GUP3-GUP2)*100,3);
GUP5:=EMA(0.667*REF(GUP4,1)+0.333*GUP4,2);
{STICKLINE(CROSS(GUP4,GUP5),CLOSE,OPEN,10.8,0),COLORRED;
DRAWTEXT(CROSS(GUP4,GUP5),LOW,'买'),COLORBLUE;}
买:CROSS(GUP4,GUP5);
{卖出公式:卖}
GUP1:=(2*CLOSE+HIGH+LOW)/4;
GUP2:=LLV(LOW,34);
GUP3:=HHV(HIGH,34);
GUP4:=EMA((GUP1-GUP2)/(GUP3-GUP2)*100,3);
GUP5:=EMA(0.667*REF(GUP4,1)+0.333*GUP4,2);
GUP6:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
{STICKLINE(CROSS(GUP5,GUP4),CLOSE,OPEN,10.8,0),COLORYELLOW;
DRAWTEXT(CROSS(GUP5,GUP4),HIGH,'卖'),COLORWHITE;}
卖:CROSS(GUP5,GUP4); |