通达信机构进出指标公式

[复制链接]
查看76 | 回复0 | 2021-8-20 00:50:28 | 显示全部楼层 |阅读模式

以下是通达信机构进出指标公式(无源码的请下载附件导入)

通达信机构进出指标公式

MA5:MA(CLOSE,5),COLORCCCCCC,LINETHICK1;
MA10:MA(CLOSE,10),COLORGREEN,LINETHICK1;
MA21:MA(CLOSE,21),COLORLIBLUE,LINETHICK1;
MA30:MA(CLOSE,30),COLORYELLOW,LINETHICK1;
MA60:MA(CLOSE,60),COLORRED,LINETHICK1;
MA120:MA(CLOSE,120),COLOR990099,LINETHICK1;
买线:=ZIG(3,10);
卖线:=MA(买线,2);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(BU,L*0.99,'←机构进场'),LINETHICK2,COLOR00FFFF;
DRAWTEXT(SEL,H*1.0,'←机构清仓'),LINETHICK1,COLOR00FF00;
STICKLINE(买线>=卖线,LOW,HIGH,0.1,0),COLOR0000CC;
STICKLINE(买线>=卖线,CLOSE,OPEN,1,0),COLOR0000CC;
STICKLINE(买线<卖线,CLOSE,OPEN,1,0),COLORCCCC00;
STICKLINE(买线<卖线,LOW,HIGH,0.1,0),COLORCCCC00;
STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,1,0),COLOR00AAFF;
STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,1,0),COLOR00DD00;
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND
(REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.99,1);
DRAWICON((ZIG(3,5)=REF(ZIG(3,5),2)) AND
(REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),H,2);
VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND
(REF(ZIG(3,5),2)<=REF(ZIG(3,5),3));
VARD:=(ZIG(3,5)=REF(ZIG(3,5),2)) AND
(REF(ZIG(3,5),2)>=REF(ZIG(3,5),3));
DRAWTEXT((VARC=1),L,'←买'),COLOR0000FF;
DRAWTEXT((VARD=1),H,'←卖'),COLOR00FF00;
V10:=PEAKBARS(3,15,1)<10;
V12:=IF(V10=1,50,0);
头部:= IF(V12=50,100,0);
DRAWTEXT(IF(头部>REF(头部,1),H,0),H*1.02,'←拉升减仓 '),COLORWHITE,LINETHICK1;
V9:=TROUGHBARS(3,15,1)<10;
V11:=IF(V9=1,50,0);
DRAWTEXT(IF( IF(V11=50,50,0)>REF(IF(V11=50,50,0),1),L,0),L*0.96,'↖抄底 '),COLORMAGENTA;
VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VARF:=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);
VAR10:=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);
VAR11:=VARF<REF(VAR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,L*0.99,'←短线资金进'),LINETHICK1,COLORLIMAGENTA;
VAR12:=(HIGH+LOW+CLOSE)/3;
VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));
VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));
VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);
VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);
VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR18:=100-ABS(VAR17);
VAR19:=IF(VAR18<90,VAR18,100);
VAR1A:=IF(VARE>0,VARE,0);
VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;
VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;
DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,H*1,'←短线资金出'),LINETHICK1,COLORLIBLUE;
WVARE:=REF(LOW,1)*0.9;
WVARF:=LOW*0.9;
WVAR10:=(WVARF*VOL+WVARE*(CAPITAL-VOL))/CAPITAL;
WVAR11:=EMA(VAR10,30);
WVAR12:=CLOSE-REF(CLOSE,1);
WVAR13:=MAX(WVAR12,0);
WVAR14:=ABS(WVAR12);
WVAR15:=SMA(WVAR13,7,1)/SMA(WVAR14,7,1)*100;
WVAR16:=SMA(WVAR13,13,1)/SMA(WVAR14,13,1)*100;
WVAR17:=BARSCOUNT(CLOSE);
WVAR18:=SMA(MAX(WVAR12,0),6,1)/SMA(ABS(WVAR12),6,1)*100;
WVAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
WVAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
WVAR1B:=SMA((SMA(WVAR1A,4,1)-50)*2,3,1);
WVAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
WVAR1D:=SMA(WVAR1C,4,1);
VAR1E:=SMA(WVAR1D,3,1);
VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR15<22 AND VAR16<28 AND VAR17>50;
VAR21:=(HIGH+LOW+CLOSE)/3;
VAR22:=(VAR21-MA(VAR21,14))/(0.015*AVEDEV(VAR21,14));
VAR23:=(VAR21-MA(VAR21,70))/(0.015*AVEDEV(VAR21,70));
VAR24:=IF(VAR22>=150 AND VAR22<200 AND VAR23>=150 AND VAR23<200,10,0);
VAR25:=IF(VAR22<=-150 AND VAR22>-200 AND VAR23<=-150 AND VAR23>-200,-10,VAR24);
DRAWTEXT(VAR20 AND COUNT(VAR20,1)=1,H*0.99,'↖基金建仓!') , COLORMAGENTA;
DRAWTEXT(VAR24 AND COUNT(VAR24,1)=1,L*1.1,'↙基金清仓!') , COLOR00FF00;


 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则