副图公式源码支持 手机/电脑
CHP1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
CHP2:=SMA(CHP1,3,1);
CHP3:=SMA(CHP2,3,1);
CHP4:=SMA(CHP3,3,1);
牛:CHP3,COLORWHITE;
马:CHP4,COLORYELLOW;
CHP6:=CROSS(CHP3,CHP4) AND CHP3<20;
DRAWTEXT(FILTER(CHP6,10)=1,40,'买入'),LINETHICK1,COLOR00AAFF;
STICKLINE(FILTER(CHP6,10)=1,0,90,1,0),COLORRED;
CHP7:=CROSS(CHP4,CHP3) AND CHP3>80;
STICKLINE(FILTER(CHP7,5)=1,0,90,1,0),COLORGREEN ;
DRAWTEXT(FILTER(CHP7,5)=1,70,'卖出'),LINETHICK1,COLORFFCC66;
趋势:=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),LINETHICK0,COLORWHITE;
CHP8:=CROSS(CHP2,CHP3) AND CHP3>80 AND CHP3>CHP4;
CHP9:=CROSS(趋势,CHP2) AND 趋势<20 AND 趋势<马;
逐步卖出:STICKLINE(CHP8,50,90,1,0),COLOR008360,LINETHICK3;
逐步买入:STICKLINE(CHP9,40,0,1,0),COLOR000080,LINETHICK3;
90,COLORBLUE;
0,COLORLIRED;
CHP01:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);
资金线:CHP01,COLORRED;
CHA6:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
CHA7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
CHA8:=CHA6[REF(VOL,1) AND CLOSE>REF(CLOSE,1);]
STICKLINE(CHA8 AND COUNT(CHA8,30)=1,0,18,0.5,0),COLORBLUE,LINETHICK3;
STICKLINE(CHA8 AND COUNT(CHA8,30)=1,18,36,0.5,0),COLORFF7700,LINETHICK3;
STICKLINE(CHA8 AND COUNT(CHA8,30)=1,36,60,1,0),COLORYELLOW;
DRAWTEXT(CHA8 AND COUNT(CHA8,30)=1,90,'庄家现身★'),COLORRED;
CHB1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
CHB2:=(HIGH+LOW+CLOSE)/3;
CHB3:=(CHB2-MA(CHB2,14))/(0.015*AVEDEV(CHB2,14));
CHB4:=(CHB2-MA(CHB2,70))/(0.015*AVEDEV(CHB2,70));
CHB5:=IF(CHB3>=150 AND CHB3<200 AND CHB4>=150 AND CHB4<200,10,0);
CHB6:=IF(CHB3<=-150 AND CHB3>-200 AND CHB4<=-150 AND CHB4>-200,-10,CHB5);
CHB7:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
CHB8:=100-ABS(CHB7);
CHB9:=IF(CHB8<90,CHB8,100);
CHBA:=IF(CHB1>0,CHB1,0);
CHCHPB:=IF(CHB4>=200 AND CHB3>=150,15,IF(CHB4<=-200 AND CHB3<=-150,-15,CHB6))+60;
CHBC:=CHBA>48 AND CHCHPB>60 AND CHB9<100;
DRAWTEXT(CHBC AND COUNT(CHBC,25)=1,80,'逐步出货'),LINETHICK1,COLORFFCC66;
STICKLINE(CHBC AND COUNT(CHBC,25)=1,90,60,0.5,0),COLORFFCC66;
选股公式源码
{选股公式一:庄家现身}
CHA6:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
CHA7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
CHA8:=CHA6[REF(VOL,1) AND CLOSE>REF(CLOSE,1);]
{STICKLINE(CHA8 AND COUNT(CHA8,30)=1,0,18,0.5,0),COLORBLUE,LINETHICK3;
STICKLINE(CHA8 AND COUNT(CHA8,30)=1,18,36,0.5,0),COLORFF7700,LINETHICK3;
STICKLINE(CHA8 AND COUNT(CHA8,30)=1,36,60,1,0),COLORYELLOW;}
庄家现身:CHA8 AND COUNT(CHA8,30)=1;
{选股公式二:买入}
CHP1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
CHP2:=SMA(CHP1,3,1);
CHP3:=SMA(CHP2,3,1);
CHP4:=SMA(CHP3,3,1);
CHP6:=CROSS(CHP3,CHP4) AND CHP3<20;
{STICKLINE(FILTER(CHP6,10)=1,0,90,1,0),COLORRED;}
买入:FILTER(CHP6,10)=1;
{选股公式三:逐步买入}
CHP1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
CHP2:=SMA(CHP1,3,1);
CHP3:=SMA(CHP2,3,1);
CHP4:=SMA(CHP3,3,1);
牛:=CHP3,COLORWHITE;
马:=CHP4,COLORYELLOW;
CHP7:=CROSS(CHP4,CHP3) AND CHP3>80;
趋势:=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),LINETHICK0,COLORWHITE;
CHP8:=CROSS(CHP2,CHP3) AND CHP3>80 AND CHP3>CHP4;
CHP9:=CROSS(趋势,CHP2) AND 趋势<20 AND 趋势<马;
逐步买入:STICKLINE(CHP9,40,0,1,0),COLOR000080,LINETHICK3; |