软件名称:[B]蚂蚁力士,自用指标[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:分享版
软件大小:7.00 KB
官方主页:Home Page
更新时间:2024-01-02 00:04:01
软件简介:
蚂蚁力士,自用指标
// 买入抄底
VAR1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=LLV(LOW,5);
VAR6:=HHV(HIGH,5);
VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2;
VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2);
VAR9:=3*VAR7-2*VAR8;
VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VARB:=POW(MA(LOW,5),2)+MA(LOW,5);
VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;
VARE:=SMA(VARD,3,1)*1.5-100;
VARF:=SMA(VARE,3,1);
VAR10:=3*VARE-2*VARF;
VAR11:=(HIGH+LOW+CLOSE*2)/4;
VAR12:=EMA(VAR11,13);
VAR13:=STD(VAR11,13);
VAR14:=(VAR11-VAR12)*100/VAR13;
VAR15:=EMA(VAR14,5);
VAR17:=EMA(VAR15,13)+200-100;
VAR18:=EMA(VAR17,10);
VAR19:=3*VAR17-2*VAR18;
VAR1A:=VAR2+VAR7+VARE+VAR17;
VAR1B:=VAR3+VAR8+VARF+VAR18;
VAR1C:=VAR4+VAR9+VAR10+VAR19;
VAR1D:=(HIGH+LOW+CLOSE)/3;
VAR20:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));
VAR22:=(HIGH+LOW+CLOSE+VAR1D)/4;
VAR23:=EMA(VAR22,24);
VAR24:=STD(VAR22,24);
VAR25:=(VAR22-VAR23)/VAR24*100;
VAR26:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));
VAR27:=EMA(VAR25,5);
VAR2A:=((VAR27+VAR26+VAR20)/3+165)/4;
VAR2B:=(EMA(EMA(EMA(VAR2A,15),10),5)-25)*2;
VAR2C:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;
VAR2D:=EMA(VAR2C,7);
VAR2E:=(VAR2A+VAR2C)/2/1.1;
超短:EMA(VAR2E,3),colorred;
短线:EMA(超短,5),colorwhite;
趋势线:EMA((VAR2B+VAR2D)/2,2) ,coloryellow;
短买1:=CROSS(趋势线,0);// 买点
短卖1:=CROSS(99,超短);// 卖点
看底:=(趋势线>REF(趋势线,1)AND REF(趋势线,1)<REF(趋势线,2)AND COUNT(CROSS(超短,短线),3)=1 AND 短线<30);// 买点
// 短期短卖的买点优化
VARM1:=HHV(HIGH,25);
VARM2:=LLV(LOW,25);
VARM3:=EMA((CLOSE-VARM2)/(VARM1-VARM2)*100,20);
VARM4:=EMA((CLOSE-VARM2)/(VARM1-VARM2)*100,5);
短买2:=CROSS(VARM4,VARM3) AND (超短<60 OR 短线<60); // 买点
短卖2:=CROSS(VARM3,VARM4); // 卖点
// macd
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
短买4:=(CROSS(DIFF,DEA) AND COUNT(短买2,6)<=0 AND (超短<60 OR 短线<60)); // 买点,6天内没有出现短买2
短卖4:=(CROSS(DEA,DIFF) AND COUNT(短卖2,6)<=0); // 卖点,6天内没有出现短卖2
// 6天内谁先触发就先展示谁,后触发的不展示
短买5:= ((短买2 AND COUNT(短买4,6)<=0) OR (短买4 AND COUNT(短买2,6)<=0)); // 买点
短卖5:=((短卖2 AND COUNT(短卖4,6)<=0) OR (短卖4 AND COUNT(短卖2,6)<=0)) OR (COUNT(短买5,6)>0 AND (NOT (短买5)) AND (CROSS(VARM3,VARM4) OR CROSS(DEA,DIFF))); // 卖点
短买6:=短买5 AND 超短>60; // 过热买点
// 买(短期买卖买点好些)
条件买1:=SUM(IF(看底,1,0),5) = 1 AND SUM(IF(短买1,1,0),5) = 1 AND SUM(IF(短买5,1,0),5) = 1;
条件买2:=SUM(IF(看底,1,0),3) = 1 AND SUM(IF(短买5,1,0),3) = 1 AND (NOT (条件买1));
条件买3:=看底 AND COUNT(短买5,3)=1 AND (NOT (条件买1)) AND (NOT (条件买2));
条件买4:=短买5;
条件买5:=短买6;
DRAWTEXT(条件买1,趋势线,'满仓'),colorred;
DRAWTEXT(条件买2,趋势线,'9层'),colorred;
DRAWTEXT(条件买3,趋势线,'建'),coloryellow;
DRAWICON(条件买4,趋势线,1); // 买点
DRAWTEXT(条件买5,趋势线,'过热'),coloryellow;
// 卖(macd卖点好一些)
条件卖1:=短卖1;
条件卖2:=短卖5 AND (NOT (短卖1));
条件卖3:=((VOL > LLV(VOL,6)*3.8) OR (VOL > LLV(VOL,15)*5)) AND 超短>60 AND ((VOL > REF(VOL,1)) OR (VOL*1.1 > REF(VOL,1))) AND (NOT (条件卖1)) AND (NOT (条件卖2)) AND (NOT (条件买4)); // 高位放量N倍
STICKLINE(条件卖1,趋势线,(趋势线-30),5,0),coloryellow;
DRAWTEXT(条件卖1,(趋势线-30),'清仓'),coloryellow; // 卖点
DRAWICON(条件卖2 AND (NOT (REF(条件卖2, 1))),趋势线,2);
DRAWTEXT(条件卖2 AND (NOT (REF(条件卖2, 1))),趋势线,'短卖'),colorgreen; // 卖点
STICKLINE(条件卖3,0,50,5,0),colorgreen;
DRAWTEXT(条件卖3,0,'减3-5'),colorblue; // 卖点
[url=http://www.70822.com/soft/sort013/sort036/down-170626.html]蚂蚁力士,自用指标[/url]