以下是通达信股市藏宝图指标公式修改版

VAR1:=1/WINNER(CLOSE);
 VAR2:=MA(CLOSE,13);
 VAR3:=100-ABS((CLOSE-VAR2)/VAR2*100);
 VAR4:=LLV(LOW,75);
 VAR5:=HHV(HIGH,75);
 VAR6:=(VAR5-VAR4)/100;
 VAR7:=SMA((CLOSE-VAR4)/VAR6,20,1);
 VAR8:=SMA((OPEN-VAR4)/VAR6,20,1);
 VAR9:=3*VAR7-2*SMA(VAR7,15,1);
 VARA:=3*VAR8-2*SMA(VAR8,15,1);
 VARB:=100-VARA;
 VARC:=IF(900101<DATE AND DATE<9999999,1,0);
进场系数: (100-VAR9)*VARC, , {000B0001};
出货量: MA(WINNER(CLOSE*0.95)*100,3)*VARC, , COLORYELLOW;
进货量: (100-IF(VAR1>5,IF(VAR1<100,VAR1,VAR3-10),0))*VARC, , COLORGREEN;
 VARD:=出货量>VAR3;
 VARE:=REF(LOW,1)*0.9;
 VARF:=LOW*0.9;
 VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;
 VAR11:=EMA(VAR10,30);
 VAR12:=CLOSE-REF(CLOSE,1);
 VAR13:=MAX(VAR12,0);
 VAR14:=ABS(VAR12);
 VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;
 VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;
 VAR17:=BARSCOUNT(CLOSE);
 VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;
 VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
 VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
 VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);
 VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
 VAR1D:=SMA(VAR1C,4,1);
 VAR1E:=SMA(VAR1D,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);
 VAR26:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
 VAR27:=REVERSE(VAR26);
 VAR28:=SMA(VAR26,3,1);
散户: SMA(VAR28,3,1)*VARC, , COLORMAGENTA;
庄家: SMA(散户,3,1)*VARC, , COLORYELLOW;
见顶: IF(CROSS(散户,庄家) AND 散户<30,庄家,0)*VARC, , COLORRED;
见底: IF(CROSS(庄家,散户) AND 庄家>75,庄家,100)*VARC, , COLORGREEN;
 DRAWTEXT(CROSS(散户,庄家) AND 散户<30,庄家,’低吸 !’), ,COLORWHITE;
 DRAWTEXT(CROSS(庄家,散户) AND 庄家>75,庄家,”), , COLORGREEN;
预警: (IF(VAR23>=200 AND VAR22>=150,15,IF(VAR23<=-200 AND VAR22<=-150,-15,VAR25))+50)*VARC, , {00050006};
 DRAWTEXT(CROSS(VAR20,0.5) AND COUNT(VAR20=1,10)=1,35,’抄底‘), , COLORYELLOW;
 DRAWTEXT(CROSS(VARD,0.5) AND COUNT(VARD=1,10)=1,65,’逃顶‘), , COLORCYAN;
 STICKLINE(VARD,100,25,1,0), , COLORCYAN;
 STICKLINE(1,出货量,0,1,0), , COLORYELLOW;
 STICKLINE(1,进货量,100,1,0), , {00010001};
 STICKLINE(VAR20,0,80,1,0), , COLORRED;

买:=IF(“KDJ.J”<0,10,0);
条件:=CROSS(9.9,买);
VARW:=(2*CLOSE+HIGH+LOW)/4;
 VARQ:=LLV(LOW,5);
 VARR:=HHV(HIGH,5);
 VART:=EMA((VARW-VARQ)/(VARR-VARQ)*100,5);
 MA1:=MA(VART,2);
 BBB5:=VART>MA1 AND REF(VART,1)<30;
 DRAWICON(CROSS(9.9,买) OR FILTER(BBB5 ,5),5 ,1);
 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。