以下是通达信蚂蝗叮庄源码副图
VAR1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VAR2:=2*ABS(VAR1);
VAR3:=100-(100-3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1),15,1));
VAR4:=100-(100-3*SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1),15,1));
VAR5:=(HIGH+LOW+CLOSE)/3;
VAR6:=(VAR5-MA(VAR5,10))/(0.015*AVEDEV(VAR5,10));
VAR7:=(VAR5-MA(VAR5,30))/(0.015*AVEDEV(VAR5,30));
VAR8:=IF(VAR6>=150 AND VAR6<200 AND VAR7>=150 AND VAR7<200,10,0);
VAR9:=IF(VAR6<=(-150) AND VAR6>(-200) AND VAR7<=(-150) AND VAR7>(-200),(-10),VAR8);
VAR10:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR11:=100-ABS(VAR10);
VAR12:=3*SMA((INDEXC-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1)-2*SMA(SMA((INDEXC-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1),15,1);
VAR13:=3*SMA((INDEXO-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1)-2*SMA(SMA((INDEXO-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1),15,1);
VAR14:=REF(LOW,1)*0.9;
VAR15:=LOW*0.9;
VAR16:=(VAR15*VOL+VAR14*(CAPITAL-VOL))/CAPITAL;
VAR17:=EMA(VAR16,30);
VAR18:=VAR17-CLOSE;
VAR19:=REF(CLOSE,1);
VAR20:=SMA(MAX(CLOSE-VAR19,0),7,1)/SMA(ABS(CLOSE-VAR19),7,1)*100;
VAR21:=SMA(MAX(CLOSE-VAR19,0),13,1)/SMA(ABS(CLOSE-VAR19),13,1)*100;
VAR22:=BARSCOUNT(CLOSE);
VAR23:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
VAR24:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;
VAR25:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR26:=(SMA(VAR25,4,1)-50)*2;
VAR27:=SMA(VAR26,3,1);
VAR28:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR29:=SMA(VAR28,4,1);
VAR30:=SMA(VAR29,3,1);
VAR31:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR32:=IF(VAR23<=25 AND VAR24<(-95) AND VAR31>20 AND VAR27<(-30) AND VAR30<30 AND VAR18>=(-0.25) AND VAR20<22 AND VAR21<28 AND VAR22>50,80,0);
大趋势:VAR3;
顶线:IF(VAR11<90,VAR11,100);
多方:IF(VAR1>0,VAR1,0),LINESTICK;
空方:-IF(VAR1<0,VAR2,0),LINESTICK;
抄底:VAR32,COLORRED,LINETHICK2;
预警系统:IF(VAR7>=200 AND VAR6>=150 OR CROSS(65,多方),15,IF(VAR7<=(-200) AND VAR6<=(-150),(-15),VAR9))+65;
STICKLINE(VAR3<=REF(VAR4,1),VAR3,VAR4,8,0),COLORWHITE;
STICKLINE(VAR3>REF(VAR4,1),VAR3,VAR4,8,0),COLORRED;
VAR33:=CLOSE>MA(CLOSE,20) AND MA(CLOSE,20)>=REF(MA(CLOSE,20),1);
VAR34:=CLOSE;
VAR35:=多方>60 AND 预警系统>65 AND 顶线=100;
VAR36:=多方>48 AND 预警系统>65 AND 顶线<100;
VAR37:=空方<(-38) AND 预警系统<65;
VAR38:=抄底>50 AND 顶线<90;
VAR39:=VAR3>REF(VAR4,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
VAR40:=VAR3<=REF(VAR4,1) AND CLOSE AND 空方>=REF(空方,1) AND VAR12;
DRAWTEXT(VAR33 AND COUNT(VAR33,30)=1,10,5),COLORYELLOW;
DRAWTEXT(VAR34 AND COUNT(VAR34,30)=1,55,6),COLORYELLOW;
DRAWTEXT(VAR35 AND COUNT(VAR35,30)=1,55,7),COLORYELLOW;
DRAWTEXT(VAR36 AND COUNT(VAR36,30)=1,75,8),COLORYELLOW;
DRAWTEXT(VAR37 AND COUNT(VAR37,30)=1,50,9),COLORYELLOW;
DRAWTEXT(VAR38 AND COUNT(VAR38,30)=1,30,10),COLORYELLOW;
DRAWTEXT(VAR39 AND COUNT(VAR39,30)=1,(-10),11),COLORYELLOW;
DRAWTEXT(VAR40 AND COUNT(VAR40,30)=1,90,12),COLORYELLOW;
评论(0)