九毛八公式指标
:资金标枪: VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100; VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100; VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100; VAR6:=(VAR3+VAR4+VAR5)/3; VAR7:=EMA(VAR6,5); 指标: EMA(EMA(VAR3,5),5)*3, COLORSTICK; VAR8:=IF(VAR6<=-20,10,0); VAR9:=HHV(VAR8,10); STICKLINE(VAR8=10,20,10,5,0),COLOR6666FF; VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0); K:EMA(VAR7,5)*2, COLORFF00FF; D:EMA(K,5), COLORWHITE; J:K*3-D*2, COLORYELLOW;VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10; 换手:= VOL/CAPITAL*100; 成交〖万手〗:=VOL/10000; DRAWTEXT(VAR8=10 AND FILTER(VAR8=10,5),-10{15},'近底'),LINETHICK1,COLORYELLOW; STICKLINE(VAR8=10 AND FILTER(VAR8=10,5),-1.6{20},-10,5,0),COLORYELLOW; DRAWTEXT(VARA=20,15,'底'),LINETHICK1,COLORWHITE; STICKLINE((VARA=20),0,10,5,0),COLORWHITE; 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)); STICKLINE((VARC=1),(-14),0,4,0),COLOR0000FF; DRAWTEXT((VARC=1),(-14),'买'),COLOR0000FF; STICKLINE((VARD=1),14,0,4,0),COLOR00FF00; DRAWTEXT((VARD=1),18,'卖'),COLOR00FF00; 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); 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,15,''),LINETHICK1,COLORFFCC66; STICKLINE(VAR1C AND COUNT(VAR1C,30)=1,0,10,5,0),COLORFFCC66; 要求:资金标枪出现红色买信号预警 震荡器: VAR1:=REF(CLOSE,1); VAR2:=SUM(VOL,2)/((HHV(HIGH,2)-LLV(LOW,2))*100); VAR3:=(CLOSE-VAR1)*VAR2; VAR4:=SUM(VAR3,0); VAR5:=SMA(VAR4,5,1); VAR6:=SMA(VAR4,8,1); OSC: VAR5-VAR6; OSCMA: MA(OSC,4); OSC, COLORSTICK; VD: SUM(IF(OSC>0,OSC*1.003,OSC*1.003>0),34)/34; VE: SUM(IF(OSC<=0,OSC*0.97,OSC*0.97<0),34)/34; 0; 要求:白线上穿黄线时预警 水精灵: WY1001:=(2*CLOSE+HIGH+LOW)/4; WY1002:=EMA(WY1001,4); WY1003:=EMA(WY1002,4); WY1004:=EMA(WY1003,4); XYS0:(WY1004-REF(WY1004,1))/REF(WY1004,1)*100; STICKLINE(XYS0>=0,XYS0,0,2,0),COLORRED; STICKLINE(XYS0<0,XYS0,0,2,0),COLORGREEN; PJGJ:=AMOUNT/VOL/100; SSRYDJX:=MA(PJGJ,13); SSRCJL:=EMA(VOL,13); SSRCJE:=EMA(AMOUNT,13); SSRCBJX:=SSRCJE/SSRCJL/100; CYS13:=(CLOSE-SSRCBJX)/SSRCBJX*100; XYSHSL:=EMA(VOL/CAPITAL*100,13); ZZX:0,COLORWHITE; STICKLINE(XYSHSL>6.1 AND CYS13>5 ,2 ,0 ,2 ,0 ),COLORGREEN; STICKLINE(XYSHSL>3.8 AND CYS13>5 ,1.5 ,0 ,2 ,0 ),COLORYELLOW; STICKLINE(XYSHSL>2.1 AND CYS13>5 ,1 ,0 ,2 ,0 ),COLORCYAN; STICKLINE(XYSHSL>1.8 AND CYS13>5 ,0.5 ,0 ,2 ,0 ),COLORBLUE; XYS1:MA(XYS0,2); XYS2:MA(XYS0,1); 要求:绿线上穿紫线时预警 拉升逃顶: VAR1:=(HIGH+LOW+CLOSE*2)/4; VAR2:=EMA(VAR1,21); VAR3:=STD(VAR1,21); VAR4:=((VAR1-VAR2)/VAR3*100+200)/4; VAR5:=(EMA(VAR4,89)-25)*1.56; VAR6:=EMA(VAR5,5)*1.22; VAR7:=EMA(VAR6,3); VAR8:=3*VAR6-2*VAR7; VAR1A:=IF(CROSS(VAR6,VAR8) AND CROSS(VAR7,VAR8) AND CROSS(VAR7,VAR6),1,0); VAR1B:=EMA(CLOSE,3)-EMA(CLOSE,89); VAR1C:=EMA(VAR1B,21); VAR1D:=(VAR1B-VAR1C)*10; VAR1F:=POW(VAR1D,3)*0.1+POW(VAR1D,2); 拉升资金:IF(VAR1D>0.015,VAR1F,0)/45,COLORMAGENTA; VAR9:=EMA(CLOSE,2)-EMA(CLOSE,55); VAR10:=EMA(VAR9,13); VAR11:=2*(VAR9-VAR10); 主力资金:POW(VAR11,3)*0.1+POW(VAR11,1),COLORRED; 0,COLORYELLOW; 要求:紫线上穿0轴预警 感谢老师辛苦付出
公式模块:
{资金标枪-红色买信号有未来}
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)); {震荡器-白线上穿黄线时预警} VAR1:=REF(CLOSE,1); VAR2:=SUM(vol,2)/((HHV(HIGH,2)-LLV(LOW,2))*100); VAR3:=(CLOSE-VAR1)*VAR2; VAR4:=SUM(VAR3,0); VAR5:=SMA(VAR4,5,1); VAR6:=SMA(VAR4,8,1); OSC:=VAR5-VAR6; OSCMA:=MA(OSC,4); crOSS(OSC,OSCMA); {水精灵-绿线上穿紫线} WY1001:=(2*CLOSE+HIGH+LOW)/4; WY1002:=EMA(WY1001,4); WY1003:=EMA(WY1002,4); WY1004:=EMA(WY1003,4); XYS0:=(WY1004-REF(WY1004,1))/REF(WY1004,1)*100; XYS1:=MA(XYS0,2); XYS2:=MA(XYS0,1); CROSS(XYS2,XYS1); {拉升逃顶-紫线上穿0轴} VAR1:=(HIGH+LOW+CLOSE*2)/4; VAR2:=EMA(VAR1,21); VAR3:=STD(VAR1,21); VAR4:=((VAR1-VAR2)/VAR3*100+200)/4; VAR5:=(EMA(VAR4,89)-25)*1.56; VAR6:=EMA(VAR5,5)*1.22; VAR7:=EMA(VAR6,3); VAR8:=3*VAR6-2*VAR7; VAR1A:=IF(CROSS(VAR6,VAR8) AND CROSS(VAR7,VAR8) AND CROSS(VAR7,VAR6),1,0); VAR1B:=EMA(CLOSE,3)-EMA(CLOSE,89); VAR1C:=EMA(VAR1B,21); VAR1D:=(VAR1B-VAR1C)*10; VAR1F:=POW(VAR1D,3)*0.1+POW(VAR1D,2); 拉升资金:=IF(VAR1D>0.015,VAR1F,0)/45; CROSS(拉升资金>0.01,0.5);
200>