副图公式源码支持: 手机/电脑
A:70;B:90;
CHA1:=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;
CHA2:=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;
DRAWBAND(CHA1,RGB(150,030,030),CHA2,RGB(20,150,20));
IF(CHA1>=CHA2,CHA1,DRAWNULL),COLORLIMAGENTA,LINETHICK2;
IF(CHA1<CHA2,CHA1,DRAWNULL),COLORGREEN,LINETHICK2;
M1:=EMA(MA(CHA1,5),3);
STICKLINE(CHA1>100 AND CHA1>=M1,CHA1,100,3,1),COLORF0F000;
STICKLINE(CHA1<0 AND CHA1<=M1,CHA1,0,3,1),COLORLIGRAY;
底:=LLV(CHA1,2)=LLV(CHA1,8);
进:=IF(CROSS(CHA1,REF(CHA1+0.01,1)) AND 底 AND CHA1<0,20,0);
STICKLINE(CHA1<0 AND CHA1<M1,进,0,1,0),COLORFF6699;
CAI1:=REF(LOW,1);
CAI2:=SMA(ABS(LOW-CAI1),3,1)/SMA(MAX(LOW-CAI1,0),3,1)*100;
CAI3:=EMA(IF(CLOSE*1.2,CAI2*10,CAI2/10),3);
CAI4:=LLV(LOW,38);
CAI5:=HHV(CAI3,38);
CAI6:=IF(LLV(LOW,90),1,0);
CAI7:=EMA(IF(LOW<=CAI4,(CAI3+CAI5*2)/2,0),3)/618*CAI6;
CAI71:=IF(CAI7>=100,100,CAI7);
吸:CAI71,COLOR0000FF;
吸筹1:STICKLINE(CAI71,0,CAI71,6,0),COLOR0000FF;
吸筹2:STICKLINE(CAI71,0,CAI71,5,0),COLOR6600FF;
吸筹3:STICKLINE(CAI71,0,CAI71,4,0),COLORBB00FF;
吸筹4:STICKLINE(CAI71,0,CAI71,3,0),COLORFF00FF;
吸筹5:STICKLINE(CAI71,0,CAI71,2,0),COLORFF33FF;
吸筹6:STICKLINE(CAI71,0,CAI71,1,0),COLORFF66FF;
吸筹7:STICKLINE(CAI71,0,CAI71,0,0),COLORFF99FF;
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);
STICKLINE(CROSS(CHA2,2),0,15,1,0),COLORWHITE;
STICKLINE(CHA2<=10,0,8,2,0),COLORLIGREEN;
STICKLINE(CHA1<0 AND CHA1<M1,进,0,4,0),COLORFF9900;
DRAWICON(买 AND CHA2>10,10,13);
DRAWICON(CROSS(CHA2,11),-3,38);
选:=LAST(CHA2<REF(CHA2,1),2,1) AND CHA2>REF(CHA2,1) AND CHA2>15;
DRAWICON(选,-11,1);
选股公式源码
{选股公式一:红球图标}
CHA2:=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 CHA2>10;
{选股公式二:红三角图标}
CHA2:=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(CHA2,11);
{选股公式三:红箭头图标}
CHA2:=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);
选:=LAST(CHA2<REF(CHA2,1),2,1) AND CHA2>REF(CHA2,1) AND CHA2>15;
红箭头图标:选;
|