章萌主 发表于 2023-6-2 14:23:59

2023主力异动现身 彩色买卖量能《通达信+指标+公式+副图+源码》


副图公式 源码 支持手机/电脑



CHP1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,CHP1*(HIGH-LOW),IF(CLOSE<OPEN,CHP1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
卖量:=IF(CLOSE>OPEN,CHP1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,CHP1*(HIGH-LOW),VOL/2));
总量:=(买量+卖量);
买:买量/1000000,NODRAW;
总:总量/1000000,NODRAW;
CHA1:=(C*2+H+L)/4*10;
CHA2:=EMA(CHA1,12);
CHA3:=EMA(CHA1,34);
CHB1:=SMA((C-LLV(L,60))/(HHV(H,60)-LLV(L,60))*100,5,1);
CHB2:=SMA(CHB1,3,1);
CHB3:=3*CHB1-2*CHB2;
CHA14:=CHA2-CHA3;
CHA15:=EMA(CHA14,5);
CHA16:=2*(CHA14-CHA15)*5.5;
CHA17:=EMA(CHB3,3);
CHA18:=CHA16>=0 AND CHA17<13;
主力现身:=FILTER(CHA18,5);
DRAWTEXT(主力现身,-3,'主力'),COLORRED;
CHPE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
CHPF:=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);
CHP10:=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);
CHP11:=CHPF<REF(CHP10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(CHP11 AND COUNT(CHP11,30)=1,-3,'异动'),LINETHICK1,COLORFF00FF;
CHP12:=(HIGH+LOW+CLOSE)/3;
CHP13:=(CHP12-MA(CHP12,14))/(0.015*AVEDEV(CHP12,14));
CHP14:=(CHP12-MA(CHP12,70))/(0.015*AVEDEV(CHP12,70));
CHP15:=IF(CHP13>=150 AND CHP13<200 AND CHP14>=150 AND CHP14<200,10,0);
CHP16:=IF(CHP13<=-150 AND CHP13>-200 AND CHP14<=-150 AND CHP14>-200,-10,CHP15);
CHP17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
CHP18:=100-ABS(CHP17);
CHP19:=IF(CHP18<90,CHP18,100);
CHP1A:=IF(CHPE>0,CHPE,0);
CHP1B:=IF(CHP14>=200 AND CHP13>=150,15,IF(CHP14<=-200 AND CHP13<=-150,-15,CHP16))+60;
CHP1C:=CHP1A>48 AND CHP1B>60 AND CHP19<100;
DRAWTEXT(CHP1C AND COUNT(CHP1C,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;

选股公式源码



{选股公式一:异动}
CHPE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
CHPF:=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);
CHP10:=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);
CHP11:=CHPF<REF(CHP10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
{DRAWTEXT(CHP11 AND COUNT(CHP11,30)=1,-3,'异动'),LINETHICK1,COLORFF00FF;}
异动:CHP11 AND COUNT(CHP11,30)=1;
{选股公式二:主力}
CHP1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
CHA1:=(C*2+H+L)/4*10;
CHA2:=EMA(CHA1,12);
CHA3:=EMA(CHA1,34);
CHB1:=SMA((C-LLV(L,60))/(HHV(H,60)-LLV(L,60))*100,5,1);
CHB2:=SMA(CHB1,3,1);
CHB3:=3*CHB1-2*CHB2;
CHA14:=CHA2-CHA3;
CHA15:=EMA(CHA14,5);
CHA16:=2*(CHA14-CHA15)*5.5;
CHA17:=EMA(CHB3,3);
CHA18:=CHA16>=0 AND CHA17<13;
主力现身:=FILTER(CHA18,5);
{DRAWTEXT(主力现身,-3,'主力'),COLORRED;}
主力:主力现身;

男人何来妮称幸 发表于 2023-6-11 14:18:46

这是什么东东啊

我偏爱飞飞脊 发表于 2023-7-15 22:24:39

爱分享,爱生活

请叫我小纯洁7 发表于 2023-7-27 19:05:08

感谢感谢!楼主功德无量,哈哈!

吃瓜围观小分队 发表于 2023-10-7 11:18:32

群众力量就是大,分享万岁!
页: [1]
查看完整版本: 2023主力异动现身 彩色买卖量能《通达信+指标+公式+副图+源码》