副图公式源码支持 手机/电脑
顶部:97,COLOR0000FF;底部:8;
趋势线: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),COLORFFFFFF;
CAI1:=HHV(HIGH,9)-LLV(LOW,9);
CAI2:=HHV(HIGH,9)-CLOSE;
CAI3:=CLOSE-LLV(LOW,9);
CAI4:=CAI2/CAI1*100-70;
CAI5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60));
CAI6:=(2*CLOSE+HIGH+LOW)/4;
CAI7:=SMA(CAI3/CAI1*100,3,1);
CAI8:=LLV(LOW,34);
CAI9:=SMA(CAI7,3,1)-SMA(CAI4,9,1);
CAI10:=IF(CAI9>100,CAI9-100,0);
CAI11:=HHV(HIGH,34);
CAI12:=EMA((CAI6-CAI8)/(CAI11-CAI8)*100,13);
CAI13:=EMA(0.667*REF(CAI12,1)+0.333*CAI12,2);
CAI13,COLOR000000;
STICKLINE(CAI12-CAI13>0,CAI12,CAI13,3,0),COLORRED;
STICKLINE(CAI12-CAI13<0,CAI12,CAI13,3,0),COLOR00FF00;
CHA1:=HHV(HIGH,50)/LLV(LOW,100)>1.5;
CHA2:=(HHV(HIGH,50)-LOW)/(HHV(HIGH,50)-LLV(LOW,100));
CHA3:=(LOW-LLV(LOW,100))/(HHV(HIGH,50)-LLV(LOW,100));
CHA4:=HHVBARS(HIGH,50)<LLVBARS(LOW,100);
CHA5:=CHA1 AND CHA2>0.5 AND CHA3>0.3 AND CHA4;
CHA6:=COUNT(CHA5,20)=1;
反攻:IF(CHA6 AND CHA5 ,23,0),STICK,LINETHICK4,COLOR0000FF;
DRAWTEXT(反攻,35,'反攻'),COLOR0000FF;
CHB1:=100-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
CHB2:=EMA(CHB1,3);
CHB3:=EMA(CHB1,7);
CHB4:=EMA(CHB3,5);
CHB5:=CROSS(CHB2,CHB4) AND CHB4<20;
买入:IF(CROSS(趋势线,底部),50,0),COLOR0000FF,LINETHICK2;
DRAWICON(LONGCROSS(趋势线,顶部,0 ),顶部*1,2),COLORGREEN;
选股公式源码
{选股公式一:买入}
趋势线:=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),COLORFFFFFF;
底部:=8;
CHB1:=100-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
CHB2:=EMA(CHB1,3);
CHB3:=EMA(CHB1,7);
CHB4:=EMA(CHB3,5);
CHB5:=CROSS(CHB2,CHB4) AND CHB4<20;
买入:IF(CROSS(趋势线,底部),50,0),COLOR0000FF,LINETHICK2;
{选股公式二:反攻}
CHA1:=HHV(HIGH,50)/LLV(LOW,100)>1.5;
CHA2:=(HHV(HIGH,50)-LOW)/(HHV(HIGH,50)-LLV(LOW,100));
CHA3:=(LOW-LLV(LOW,100))/(HHV(HIGH,50)-LLV(LOW,100));
CHA4:=HHVBARS(HIGH,50)<LLVBARS(LOW,100);
CHA5:=CHA1 AND CHA2>0.5 AND CHA3>0.3 AND CHA4;
CHA6:=COUNT(CHA5,20)=1;
反攻:IF(CHA6 AND CHA5 ,23,0),LINETHICK4,COLOR0000FF; |