副图公式 源码 支持手机/电脑
GUP1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,GUP1*(HIGH-LOW),IF(CLOSE<OPEN,GUP1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
卖量:=IF(CLOSE>OPEN,GUP1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,GUP1*(HIGH-LOW),VOL/2));
总量:=(买量+卖量);
买:买量/1000000,NODRAW;
总:总量/1000000,NODRAW;
GUA1:=(C*2+H+L)/4*10;
GUA2:=EMA(GUA1,12);
GUA3:=EMA(GUA1,34);
GUB1:=SMA((C-LLV(L,60))/(HHV(H,60)-LLV(L,60))*100,5,1);
GUB2:=SMA(GUB1,3,1);
GUB3:=3*GUB1-2*GUB2;
GUA14:=GUA2-GUA3;
GUA15:=EMA(GUA14,5);
GUA16:=2*(GUA14-GUA15)*5.5;
GUA17:=EMA(GUB3,3);
GUA18:=GUA16>=0 AND GUA17<13;
主力现身:=FILTER(GUA18,5);
DRAWTEXT(主力现身,-3,'主力'),COLORRED;
GUPE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
GUPF:=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);
GUP10:=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);
GUP11:=GUPF<REF(GUP10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(GUP11 AND COUNT(GUP11,30)=1,-3,'异动'),LINETHICK1,COLORFF00FF;
GUP12:=(HIGH+LOW+CLOSE)/3;
GUP13:=(GUP12-MA(GUP12,14))/(0.015*AVEDEV(GUP12,14));
GUP14:=(GUP12-MA(GUP12,70))/(0.015*AVEDEV(GUP12,70));
GUP15:=IF(GUP13>=150 AND GUP13<200 AND GUP14>=150 AND GUP14<200,10,0);
GUP16:=IF(GUP13<=-150 AND GUP13>-200 AND GUP14<=-150 AND GUP14>-200,-10,GUP15);
GUP17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
GUP18:=100-ABS(GUP17);
GUP19:=IF(GUP18<90,GUP18,100);
GUP1A:=IF(GUPE>0,GUPE,0);
GUP1B:=IF(GUP14>=200 AND GUP13>=150,15,IF(GUP14<=-200 AND GUP13<=-150,-15,GUP16))+60;
GUP1C:=GUP1A>48 AND GUP1B>60 AND GUP19<100;
DRAWTEXT(GUP1C AND COUNT(GUP1C,30)=1,-3,'抛售'),LINETHICK1,COLORFFCC66;
买比:买/总*100,NODRAW,COLORBLACK;
STICKLINE(总,0,总,5,0),COLORLIGREEN;
STICKLINE(买,0,买,5,0),COLORRED;
STICKLINE(买比>=86.5,0,买,5,0),COLORBLACK;
STICKLINE(买比<=13.5,0,买,5,0),COLORBLUE;
STICKLINE(H/REF(C,1)>1.08 AND 买比<86.5 AND 买比>47,0,买,5,0),COLORCYAN;
STICKLINE(买比>=47 AND 买比<=53,0,买,5,0),COLORBROWN;
STICKLINE(买比>13.5 AND 买比<47,0,买,5,0),COLORGREEN;
选股公式源码
{选股公式一:异动}
GUPE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
GUPF:=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);
GUP10:=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);
GUP11:=GUPF<REF(GUP10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
{DRAWTEXT(GUP11 AND COUNT(GUP11,30)=1,-3,'异动'),LINETHICK1,COLORFF00FF;}
异动:GUP11 AND COUNT(GUP11,30)=1;
{选股公式二:主力}
GUP1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
GUA1:=(C*2+H+L)/4*10;
GUA2:=EMA(GUA1,12);
GUA3:=EMA(GUA1,34);
GUB1:=SMA((C-LLV(L,60))/(HHV(H,60)-LLV(L,60))*100,5,1);
GUB2:=SMA(GUB1,3,1);
GUB3:=3*GUB1-2*GUB2;
GUA14:=GUA2-GUA3;
GUA15:=EMA(GUA14,5);
GUA16:=2*(GUA14-GUA15)*5.5;
GUA17:=EMA(GUB3,3);
GUA18:=GUA16>=0 AND GUA17<13;
主力现身:=FILTER(GUA18,5);
{DRAWTEXT(主力现身,-3,'主力'),COLORRED;}
主力:主力现身; |