多空转换: 公式用法说明 上线:由红变浅蓝时卖出, 下线:由红变浅蓝时买入。 N:=40; Var1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; Var2:=SMA(Var1,20,1); Var3:=SMA(Var2,15,1); Var4:=100-3*Var2+2*Var3; Var5:=(3*Var2+2*Var3)/4; Var6:=abs(abs(Var5)-abs(Var4)); D:(Var4+Var6)/2; S:=(Var6+Var5)/2; 多头A:STICKLINE(REF(S,1)<S,S,REF(S,1),5,0),COLOR0000FF; 多头B:STICKLINE(REF(S,1)>S,S,REF(S,1),5,0),COLORFFFF33; 空头A:STICKLINE(REF(D,1)<D,D,REF(D,1),5,0),COLORFF3333; 空头B:STICKLINE(REF(D,1)>D,D,REF(D,1),5,0),COLOR00FF99; 地线:0,POINTDOT; 天线:100,POINTDOT; A公主秋纤: 短线逃顶( 顶尖财经 股票学院: http://www.58188.com ) Var1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70; Var2:=SMA(Var1,9,1)+100; Var3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; Var4:=SMA(Var3,3,1); Var5:=SMA(Var4,3,1)+100; Var6:=Var5-Var2; S: IF(Var6>100,Var6-100,0) ,COLORFFAA66; STICKLINE(REF(S,1)<S,S,REF(S,1),5,0) ,COLOR9900ff; STICKLINE(REF(S,1)>S,S,REF(S,1),5,0), COLORcccc66; 买入指标: {买入指标 n:2} Var1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1); Var2:=SMA(ABS(LOW-Var1),13,1)/SMA(MAX(LOW-Var1,0),10,1); Var3:=EMA(Var2,10); Var4:=LLV(LOW,33); Var5:=EMA(IF(LOW<=Var4,Var3,0),3); Va6:=(2*CLOSE+HIGH+LOW)/4; Va8:=LLV(LOW,34); VarB:=HHV(HIGH,34); VarC:=EMA((Va6-Va8)/(VarB-Va8)*100,13); VarD:=EMA(0.667*REF(VarC,1)+0.333*VarC,2); 长趋势:EMA(VarD,N),colorff00ff,linethick2; 趋势线: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); 判断底:SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*5; Var15:=CROSS(趋势线,长趋势)AND 长趋势<25; 全仓买入:STICKLINE(趋势线<10 AND 判断底>0,0,30,6,1),COLORffee44; STICKLINE(Var15,0,50,8,0) ,COLORffff30; 主力进场:STICKLINE(Var5>REF(Var5,1),0,Var5,7,0 ),COLORred; 洗盘:STICKLINE(Var5<REF(Var5,1),0,Var5,7,0),COLORgreen; DRAWGBKLAST(CLOSE>0,strip(RGB(0,200,205),RGB(30,30,0),2)); 绝杀: MA6:=MA(CLOSE,6); MA18:=MA(CLOSE,18); MA3:(3)*(MA18) - (2)*(MA6),LINETHICK1,COLORD39D91; MA4:(3)*(MA6) - (2)*(MA18),LINETHICK2,COLOR87B08B; M1:SUM((EMA((CLOSE + LOW)/(2),2))/(2.98),3),POINTDOT,COLORFFFFFF; M2:EMA(M1,21),COLORFF00FF; M30:MA(CLOSE,30),LINETHICK1,COLORFF0000; VAR1:=(2)*(MA((LLV((CLOSE + LOW)/(2),8))*(1.1),13)) - EMA((CLOSE + LOW)/(2),3) - ((CLOSE + LOW)/(2))*(0.1); VAR2:=IF(((EMA((CLOSE + LOW)/(2),3) - VAR1)*(5) > 0),(POW((EMA((CLOSE + LOW)/(2),3) - VAR1)*(5),2))/(10),(((-1))*(POW((EMA((CLOSE + LOW)/(2),3) - VAR1)*(5),2)))/(10)); VAR3:=IF((VAR2 > 0),VAR2 - 0,(-1)); DRAWTEXT(CROSS(VAR3,0) AND ((CLOSE + LOW)/(2) > MA((CLOSE + LOW)/(2),8)),(M2)*(1.01),'绝杀'),LINETHICK2,COLORYELLOW; STICKLINE(CROSS(VAR3,0) AND ((CLOSE + LOW)/(2) > MA((CLOSE + LOW)/(2),8)),(LOW)*(0.99),(LOW)*(0.95),4,0),COLORYELLOW; |