副图公式源码支持 手机/电脑
GUP1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
GUP2:=SMA(ABS(LOW-GUP1),13,1)/SMA(MAX(LOW-GUP1,0),10,1);
GUP3:=EMA(GUP2,10);
GUP4:=LLV(LOW,33);
趋势线: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),COLOR00FFFF;
见底:1;
买入:IF(CROSS(趋势线,见底),100,0),COLORRED,LINETHICK2;
GUP5:=EMA(IF(LOW<=GUP4,GUP3,0),3);
STICKLINE(GUP5>REF(GUP5,1),0,GUP5,4,0 ),COLOR00FFFF;
STICKLINE(GUP5<REF(GUP5,1),0,GUP5,4,0),COLOR00FFFF;
牛底:IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,100,0),LINETHICK2,COLORRED;
DRAWICON(牛底=100,100,1),LINETHICK0,COLORRED;
RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
X:=LLV(J,2)=LLV(J,8);
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,10,'低买'),COLORFFFF00;
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,25,'▲'),COLORRED;
小散:= EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,4)-LLV(LOW,5))*100,4);
庄家:= EMA(0.667*REF(小散,1)+0.333*小散,2);
DRAWTEXT(CROSS(庄家,小散) AND 小散>70,90.5,'逃顶'),COLOR00FF00;
逃顶:100*(CROSS(庄家,小散) AND 小散>70),COLOR00FF00;
DRAWTEXT(买入=100,买入,'买');
DRAWTEXT(逃顶=100,逃顶,'卖');
选股公式源码
{选股公式一:低买}
RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
X:=LLV(J,2)=LLV(J,8);
低买:CROSS(J,REF(J+0.01,1)) AND X AND J<19;
{选股公式二:红箭头图标}
GUP1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
GUP2:=SMA(ABS(LOW-GUP1),13,1)/SMA(MAX(LOW-GUP1,0),10,1);
牛底:=IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,100,0),LINETHICK2,COLORRED;
红箭头图标:牛底=100;
{选股公式三:买}
GUP1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
GUP2:=SMA(ABS(LOW-GUP1),13,1)/SMA(MAX(LOW-GUP1,0),10,1);
趋势线:=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),COLOR00FFFF;
见底:=1;
买入:=IF(CROSS(趋势线,见底),100,0),COLORRED,LINETHICK2;
买:买入=100; |