副图公式源码支持 手机/电脑
波段:5*SMA((CLOSE- LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2,1),NODRAW;
GUPA:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),NODRAW;
M1:=EMA(MA(波段,5),3);
底部:=LLV(波段,2)=LLV(波段,8);
进场:=IF(CROSS(波段,REF(波段+0.01,1)) AND 底部 AND 波段 < 0,20,0);
GUP1:=REF(LOW,1);
GUP2:=SMA(ABS(LOW-GUP1),3,1)/SMA(MAX(LOW-GUP1,0),3,1)*100;
GUP3:=EMA(IF(CLOSE*1.2,GUP2*10,GUP2/10),3);
GUP4:=LLV(LOW,38);
GUP5:=HHV(GUP3,38);
GUP6:=IF(LLV(LOW,90),1,0);
GUP7:=EMA(IF(LOW <=GUP4,(GUP3+GUP5*2)/2,0),3)/618*GUP6;
GUP71:=IF(GUP7 >=100,100,GUP7);
MA5:=MA(CLOSE,5);
MA15:=MA(CLOSE,15);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
离散30:=100*(MA5-(MA15+MA30)/2)/MA30+50,COLOR00FFFF;
离散60:100*(MA5-(MA15+MA30+MA60)/3)/MA60+50,COLORFFAA00;
粘合K:-3*(离散30-离散60)+50,COLORRED,LINETHICK2;
粘合D:=EMA(粘合K,3);
RSV:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
买入:=(CROSS(K,D) AND K < 30);
买:=买入 AND FILTER(买入,10);
XG:=LAST(GUPA < REF(GUPA,1),2,1) AND GUPA > REF(GUPA,1) AND GUPA > 15;
A:70;
B:90;
DRAWBAND(波段,RGB(150,030,030),GUPA,RGB(20,150,20));
IF(波段 >=GUPA,波段,DRAWNULL),COLORLIMAGENTA,LINETHICK2;
IF(波段 < GUPA,波段,DRAWNULL),COLORGREEN,LINETHICK2;
STICKLINE(波段 > 100 AND 波段 >=M1,波段,100,3,1),COLORF0F000;
STICKLINE(波段 < 0 AND 波段 <=M1,波段,0,3,1),COLORLIGRAY;
STICKLINE(波段 < 0 AND 波段 < M1,进场,0,1,0),COLORFF6699;
主力进:GUP71,COLOR0000FF;
吸筹1:STICKLINE(GUP71,0,GUP71,6,0),COLOR0000FF;
吸筹2:STICKLINE(GUP71,0,GUP71,5,0),COLOR6600FF;
吸筹3:STICKLINE(GUP71,0,GUP71,4,0),COLORBB00FF;
吸筹4:STICKLINE(GUP71,0,GUP71,3,0),COLORFF00FF;
吸筹5:STICKLINE(GUP71,0,GUP71,2,0),COLORFF33FF;
吸筹6:STICKLINE(GUP71,0,GUP71,1,0),COLORFF66FF;
吸筹7:STICKLINE(GUP71,0,GUP71,0,0),COLORFF99FF;
主升:BARSLAST(CROSS(粘合K,粘合D))*(粘合K > 粘合D),COLORLIMAGENTA;
STICKLINE(粘合K > 108,105,粘合K,5,1),COLORGREEN;
STICKLINE(主升,主升,主升+2,4,1),COLORLIMAGENTA;
DRAWICON(CROSS(离散60,粘合K),离散60*1.05,1);
DRAWICON(CROSS(粘合K,离散60),离散60*0.98,2);
STICKLINE(CROSS(GUPA,2),0,15,1,0),COLORWHITE;
STICKLINE(GUPA <=10,0,8,2,0),COLORLIGREEN;
STICKLINE(波段 < 0 AND 波段 < M1,进场,0,4,0),COLORFF9900;
DRAWICON(买 AND GUPA > 10,10,9);
DRAWICON(CROSS(GUPA,11),-3,25);
DRAWICON(XG,-11,38);
选股公式源码
{选股公式一:钱袋图标}
GUPA:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
RSV:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
买入:=(CROSS(K,D) AND K < 30);
买:=买入 AND FILTER(买入,10);
钱袋图标:买 AND GUPA > 10;
{选股公式二:红钻图标}
GUP1:=REF(LOW,1);
GUP2:=SMA(ABS(LOW-GUP1),3,1)/SMA(MAX(LOW-GUP1,0),3,1)*100;
GUP3:=EMA(IF(CLOSE*1.2,GUP2*10,GUP2/10),3);
GUPA:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
红钻图标:CROSS(GUPA,11);
{选股公式三:红三角图标}
GUP1:=REF(LOW,1);
GUP2:=SMA(ABS(LOW-GUP1),3,1)/SMA(MAX(LOW-GUP1,0),3,1)*100;
GUP3:=EMA(IF(CLOSE*1.2,GUP2*10,GUP2/10),3);
GUPA:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
XG:=LAST(GUPA < REF(GUPA,1),2,1) AND GUPA > REF(GUPA,1) AND GUPA > 15;
红三角图标:XG;
{选股公式四:红箭头图标}
MA5:=MA(CLOSE,5);
MA15:=MA(CLOSE,15);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
离散30:=100*(MA5-(MA15+MA30)/2)/MA30+50,COLOR00FFFF;
离散60:=100*(MA5-(MA15+MA30+MA60)/3)/MA60+50,COLORFFAA00;
粘合K:=-3*(离散30-离散60)+50,COLORRED,LINETHICK2;
粘合D:=EMA(粘合K,3);
红箭头图标:CROSS(离散60,粘合K); |