VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=MA(VAR1,5);
VAR3:=MA(VAR1,21);
VAR4:=MA(VAR1,60);
{调整:}
STICKLINE(CLOSE<OPEN,H,L,0,0),colorFFFF10;
STICKLINE(VAR1>=VAR2,CLOSE,OPEN,8,0),colorFF147C;
STICKLINE(VAR1>=VAR2,CLOSE,OPEN,6.9,0),colorFF5B74;
STICKLINE(VAR1>=VAR2,CLOSE,OPEN,5.8,0),colorFF747C;
STICKLINE(VAR1>=VAR2,CLOSE,OPEN,4.7,0),colorFF887C;
STICKLINE(VAR1>=VAR2,CLOSE,OPEN,3.6,0),colorFFAC10;
STICKLINE(VAR1>=VAR2,CLOSE,OPEN,2.5,0),colorFFD110;
STICKLINE(VAR1>=VAR2,CLOSE,OPEN,1,0),colorFFFF10;
{走强:}
STICKLINE(c>=o,h,l,0,0),COLOR0000FF;
STICKLINE(c>=o,h,l,0,0),COLOR00EEFF;
STICKLINE(c>=o,c,o,8,0),COLOR0000FF;
STICKLINE(c>=o,c,o,7,0),COLOR0022FF;
STICKLINE(c>=o,c,o,6,0),COLOR0044FF;
STICKLINE(c>=o,c,o,5,0),COLOR0066FF;
STICKLINE(c>=o,c,o,4,0),COLOR0088FF;
STICKLINE(c>=o,c,o,3,0),COLOR00AAFF;
STICKLINE(c>=o,c,o,2,0),COLOR00CCFF;
STICKLINE(c>=o,c,o,1,0),COLOR00EEFF;
{寻底:}
STICKLINE(VAR1<VAR2,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(VAR1<VAR2,CLOSE,OPEN,8,0),COLOR008800;
STICKLINE(VAR1<VAR2,CLOSE,OPEN,6,0),COLOR009900;
STICKLINE(VAR1<VAR2,CLOSE,OPEN,5,0),COLOR00AA00;
STICKLINE(VAR1<VAR2,CLOSE,OPEN,4,0),COLOR00BB00;
STICKLINE(VAR1<VAR2,CLOSE,OPEN,3,0),COLOR00CC00;
STICKLINE(VAR1<VAR2,CLOSE,OPEN,2,0),COLOR00DD00;
STICKLINE(VAR1<VAR2,CLOSE,OPEN,1,0),COLORYELLOW;
Varc:=AMOUNT/VOL/100;
VarD:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
VarE:=SUM(AMOUNT,5)/Varc/100;
VarF:=SUM(AMOUNT,13)/Varc/100;
Var5:=SUM(AMOUNT,40)/Varc/100;
Var6:=REF(VOL,1)+REF(VOL,2)+REF(VOL,3)+REF(VOL,4);
Var7:=Var6/CAPITAL;
Var8:=MA(CLOSE,13);
Var1A:=100*(Var8-REF(Var8,1))/REF(Var8,1);
Var1B:=CLOSE-LOW;
Var1C:=HIGH-LOW;
Var1D:=CLOSE-HIGH;
Var1E:=IF(CLOSE>=0,(Var1B/Var1C+Var1D/Var1C)*VOL,(Var1D/Var1C+Var1B/Var1C)*VOL);
Var1F:=SUM(Var1E,10)/10000;
Var9:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
Var10:=SMA(Var9,5,1);
Var11:=SMA(Var10,10,1);
Var12:=CROSS(Var11,Var10);
Var13:=Var11>80 OR Var10>80;
Var2A:=Var12 AND Var13;
Var2D:=CLOSE;
Var2E:=OPEN;
Var2F:=HIGH;
Var30:=LOW;
hsmc:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
hsmD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
hsmE:=REF(hsmD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
hsmF:=REF(hsmE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
hsm10:=REF(hsmF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
hsm11:=REF(hsm10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
hsm12:=REF(hsm11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
hsm13:=REF(hsm12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
hsm14:=REF(hsm13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
hsm15:=REF(hsm14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
hsm16:=REF(hsm15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
hsm17:=REF(hsm16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
hsm18:=REF(hsm17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
hsm19:=REF(hsmd OR hsmE OR hsmF OR hsm10 OR hsm11 OR hsm12 OR hsm13 OR
hsm14 OR hsm15 OR hsm16 OR hsm17 OR hsm18,1) AND hsmc ;
{低进:}
STICKLINE(hsm19,REF(CLOSE,1),REF(CLOSE,2),8,0),COLOR0000AA;
STICKLINE(hsm19,REF(CLOSE,1),REF(CLOSE,2),5,0),COLOR0000CC ;
STICKLINE(hsm19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR0000DD ;
STICKLINE(hsm19,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR0000FF;
pb1:=REF(CLOSE,1);
pb2:=REF(CLOSE,2);
pb3:=REF(CLOSE,3);
pb4:=REF(CLOSE,4);
pb5:=MAX(MAX(MAX(CLOSE,pb1),pb2),pb3);
{高出:}
STICKLINE(pb1=pb5 AND CLOSE<pb2 OR (pb2=pb5 AND pb1>pb3 OR pb3=pb5 AND pb1>pb2) AND pb2>=pb4 AND CLOSE<pb1,pb1,pb2,8,0 ),COLORaaaaaa;
STICKLINE(pb1=pb5 AND CLOSE<pb2 OR (pb2=pb5 AND pb1>pb3 OR pb3=pb5 AND pb1>pb2) AND pb2>=pb4 AND CLOSE<pb1,pb1,pb2,6,0 ),COLORbbbbbb;
STICKLINE(pb1=pb5 AND CLOSE<pb2 OR (pb2=pb5 AND pb1>pb3 OR pb3=pb5 AND pb1>pb2) AND pb2>=pb4 AND CLOSE<pb1,pb1,pb2,4,0 ),COLORcccccc;
STICKLINE(pb1=pb5 AND CLOSE<pb2 OR (pb2=pb5 AND pb1>pb3 OR pb3=pb5 AND pb1>pb2) AND pb2>=pb4 AND CLOSE<pb1,pb1,pb2,2,0 ),COLORdddddd;
STICKLINE(pb1=pb5 AND CLOSE<pb2 OR (pb2=pb5 AND pb1>pb3 OR pb3=pb5 AND pb1>pb2) AND pb2>=pb4 AND CLOSE<pb1,pb1,pb2,1 ,0 ),COLORcccccc;
STICKLINE(pb1=pb5 AND CLOSE<pb2 OR (pb2=pb5 AND pb1>pb3 OR pb3=pb5 AND pb1>pb2) AND pb2>=pb4 AND CLOSE<pb1,pb1,pb2,0 ,0 ),COLORcccccc;
STICKLINE(pb1=pb5 AND CLOSE<pb2 OR (pb2=pb5 AND pb1>pb3 OR pb3=pb5 AND pb1>pb2) AND pb2>=pb4 ,H,C,0,0 ),COLORcccccc;
bp1:=REF(CLOSE,1);
bp2:=REF(CLOSE,2);
bp3:=REF(CLOSE,3);
bp4:=MAX(MAX(MAX(CLOSE,bp1),bp2),bp3);
bp5:=MIN(MIN(MIN(CLOSE,bp1),bp2),bp3);
{变盘:}
STICKLINE(CLOSE=bp4 AND bp1=bp5,bp2,CLOSE,8,0),COLOR334499;
STICKLINE(CLOSE=bp4 AND bp1=bp5,bp2,CLOSE,6,0),COLOR0055AA;
STICKLINE(CLOSE=bp4 AND bp1=bp5,bp2,CLOSE,4,0),COLOR0077CC;
STICKLINE(CLOSE=bp4 AND bp1=bp5,bp2,CLOSE,2,0),COLOR0099DD;
STICKLINE(CLOSE=bp4 AND bp1=bp5,bp2,CLOSE,0,0),COLOR00AAFF;
Varv3:=REF(OPEN,2);
Varv4:=CLOSE;
Varv5:=(SUM(Varv4,4)+SUM(Varv3,4))/8;
操作线:Varv5,COLORYELLOW;
离合线:HHV(Varv5,4),COLORWHITE ;
分水岭:ma(c,21)COLORRED ;
中期线:ma(c,120)COLORCYAN;
长期线:sum(c*v,0)/sum(v,0)POINTDOT COLORBLUE LINETHICK2;
金叉1:=CROSS(操作线,长期线);
金叉2:=CROSS(操作线,中期线);
金叉3:=CROSS(c,分水岭);
PARTLINE(离合线>REF(离合线,1),离合线),COLORWHITElinethick2;
PARTLINE(操作线>REF(操作线,1),操作线),COLORYELLOWlinethick2;
PARTLINE(分水岭>REF(分水岭,1),分水岭),COLORRED linethick2;
PARTLINE(分水岭<REF(分水岭,1),分水岭),COLORGREEN;
画图标(信号过滤(金叉1,0),长期线,"Z5");
画图标(信号过滤(金叉2,0),中期线,"Z5");
画图标(信号过滤(金叉3,0),L,"Z5");
{以下追涨信号}
dz1:=(INDEXC-REF(INDEXC,2))/REF(INDEXC,2);
dz2:=(CLOSE-REF(CLOSE,2))/REF(CLOSE,2);
dz3:=IF(dz1>0.01, 0.9,2) AND IF(dz1>(-0.025),2, 1.2);
dz4:=dz3*(dz2-dz1)*100;
dz5:=SUM(dz4, 10);
dz6:=SMA(dz5, 40,2);
dz7:=IF(CLOSE and MA(VOL, 4)/240 AND CLOSE>REF(CLOSE,2)*1 AND CLOSE,88,0);
dz8:=IF(CLOSE/REF(CLOSE,1)>1.04AND VOL/CAPITAL*100<13 AND CLOSE<89 AND HIGH/CLOSE<1.01 AND dz7>0, 91, 0);
DRAWICON(dz8>90,LOW,4),;
DRAWTEXT(SYSPARAM(1)=BARPOS,CLOSE,"倚天长剑"),COLOR669933,ALIGN5;
DRAWTEXT(BARPOS=SYSPARAM(2),HIGH,"\n所属块:"+BLKNAME),ALIGN4,COLOR669933;
gdhm1:=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);
gdhm2:=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);
gdhm3:=gdhm1<REF(gdhm2,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(gdhm3 AND COUNT(gdhm3,30)=1,0,)COLOR669933 align5;股票论坛
如果觉得《请高手把这个公式改成大智慧的 谢谢!》对你有帮助,请点赞、收藏,并留下你的观点哦!