切换到宽版
  • 3234阅读
  • 1回复

江恩秘密买卖点指标 [复制链接]

上一主题 下一主题
离线木木子
 

发帖
258
金币
23
威望
37
贡献值
0
开心币
244
只看楼主 倒序阅读 使用道具 楼主  发表于: 2012-10-14
ma1:ma(c,5),coloryellow;
ma2:ma(c,10),color00ff00;
ma3:ma(c,30),colorf00ff0;
Var1:=IF(YEAR>=2034 AND MONTH>9,0,1);
江恩线: EMA(CLOSE,144), colorblue,linethick2;
Var2:=IF(YEAR<=2003 AND MONTH<4,0,1);
Var3:=IF(YEAR=2003 AND MONTH=5,0,1);
Var4:=IF(YEAR<2003,0,1);
Var5:=IF(YEAR=2002 AND MONTH=6 AND DAY=28,1,0);
Var6:=IF(YEAR=2002 AND MONTH=3 AND DAY=21,1,0);
Var7:=IF(YEAR=2001 AND MONTH=12 AND DAY=5,1,0);
Var8:=IF(YEAR=2001 AND MONTH=6 AND DAY=14,1,0);
Var9:=IF(YEAR=2001 AND MONTH=1 AND DAY=11,1,0);
VarA:=IF(YEAR=2000 AND MONTH=11 AND DAY=23,1,0);
VarB:=IF(YEAR=2000 AND MONTH=8 AND DAY=22,1,0);
VarC:=IF(YEAR=2000 AND MONTH=4 AND DAY=21,1,0);
VarD:=IF(YEAR=1999 AND MONTH=6 AND DAY=30,1,0);
VarE:=IF(YEAR=1999 AND MONTH=4 AND DAY=9,1,0);
VarF:=IF(YEAR=1998 AND MONTH=11 AND DAY=17,1,0);
Var10:=IF(YEAR=1998 AND MONTH=6 AND DAY=4,1,0);
Var11:=IF(YEAR=1997 AND MONTH=5 AND DAY=12,1,0);
Var12:=IF(YEAR=1996 AND MONTH=12 AND DAY=11,1,0);
Var13:=IF(YEAR=1994 AND MONTH=9 AND DAY=13,1,0);
Var14:=IF(YEAR=1993 AND MONTH=2 AND DAY=16,1,0);
Var15:=IF(YEAR=1992 AND MONTH=5 AND DAY=26,1,0);
Var16:=IF(YEAR=2003 AND MONTH=3 AND DAY=4,1,0);
Var17:=IF(YEAR=2003 AND MONTH=4 AND DAY=16,1,0);
var18:=(CROSS(100,"KDJ.J"(9,3,3)) OR CROSS("KDJ.K"(9,3,3),"KDJ.J"(9,3,3))) AND "KDJ.D"(9,3,3)>75;
Var19:=IF(YEAR>1990 AND YEAR<2003,0,1);
Var1A:=IF(YEAR=2003 AND MONTH=1 AND DAY=3,1,0);
Var1B:=IF(YEAR=2002 AND MONTH=6 AND DAY=6,1,0);
Var1C:=IF(YEAR=2002 AND MONTH=1 AND DAY=29,1,0);
Var1D:=IF(YEAR=2001 AND MONTH=10 AND DAY=22,1,0);
Var1E:=IF(YEAR=2001 AND MONTH=2 AND DAY=22,1,0);
Var1F:=IF(YEAR=2000 AND MONTH=9 AND DAY=26,1,0);
Var20:=IF(YEAR=1999 AND MONTH=12 AND DAY=28,1,0);
Var21:=IF(YEAR=1999 AND MONTH=5 AND DAY=17,1,0);
Var22:=IF(YEAR=1999 AND MONTH=2 AND DAY=9,1,0);
Var23:=IF(YEAR=1998 AND MONTH=8 AND DAY=18,1,0);
Var24:=IF(YEAR=1998 AND MONTH=3 AND DAY=26,1,0);
Var25:=IF(YEAR=1997 AND MONTH=2 AND DAY=20,1,0);
Var26:=IF(YEAR=1994 AND MONTH=7 AND DAY=29,1,0);
Var27:=IF(YEAR=2000 AND MONTH=5 AND DAY=15,1,0);
Var28:=IF(YEAR=1996 AND MONTH=1 AND DAY=19,1,0);
Var29:=IF(YEAR=1992 AND MONTH=11 AND DAY=20,1,0);
Var2A:=IF(YEAR=2003 AND MONTH=3 AND DAY=26,1,0);
Var2B:=IF(YEAR=2003 AND MONTH=5 AND DAY=13 AND CLOSE>200,1,0);
Var2C:=MA(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),5)*Var19;
Var2D:=5;
Var2E:=CROSS(Var2C,Var2D);
Var2F:=Var1A OR Var1B OR Var1C OR Var1D OR Var1E OR Var1F OR Var20 OR Var21 OR Var22 OR Var23 OR Var24 OR Var25 OR Var26 OR Var27 OR Var28 OR Var29 OR Var2A OR Var2B OR Var2E;
Var30:=(var18 or Var5 OR Var6 OR Var7 OR Var8 OR Var9 OR VarA OR VarB OR VarC OR VarD OR VarE OR VarF OR Var10 OR Var11 OR Var12 OR Var13 OR Var14 OR Var15 OR Var16 OR Var17){ AND CLOSE>200};
DRAWICON(Var2F,LOW-LOW*1/100,1);
DRAWICON(Var2F AND CLOSE>江恩线,LOW,1);
DRAWICON(Var30,HIGH,2);
DRAWTEXT(Var2F AND CLOSE<江恩线,LOW,'秘密买点!'), coloryellow;
DRAWTEXT(Var2F AND CLOSE>江恩线,LOW,'强势买点!'), colorred;
DRAWTEXT(var30,HIGH,'秘密抛点'), color00ff00;
秘密买点:if(Var2F AND CLOSE<江恩线,1,0),linethick0,coloryellow;
离线木木子

发帖
258
金币
23
威望
37
贡献值
0
开心币
244
只看该作者 沙发  发表于: 2012-10-14
一大堆无用的代码,忽悠人/:156*

除了特定的日子,决定买卖点就5句:
江恩线: EMA(CLOSE,144), colorblue,linethick2;
var18:=(CROSS(100,"KDJ.J"(9,3,3)) OR CROSS("KDJ.K"(9,3,3),"KDJ.J"(9,3,3))) AND "KDJ.D"(9,3,3)>75;
Var2C:=MA(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),5)*Var19;
Var2D:=5;
Var2E:=CROSS(Var2C,Var2D);

  1990-2003年哪些代码可以去掉,修改如下:


MA1:MA(C,5),COLORYELLOW;
MA2:MA(C,10),COLOR00FF00;
MA3:MA(C,30),COLORF00FF0;
江恩线:EMA(C,144),COLORBLUE,LINETHICK2;
VAR18:=(CROSS(100,"KDJ.J"(9,3,3)) OR CROSS("KDJ.K"(9,3,3),"KDJ.J"(9,3,3))) AND "KDJ.D"(9,3,3)>75;
VAR2C:=MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5);
VAR2D:=5;
VAR2E:=CROSS(VAR2C,VAR2D);
秘密买点:=IF(VAR2E AND C<江恩线,1,0),LINETHICK0,COLORYELLOW;
DRAWICON(VAR2E,L-L*1/100,1);
DRAWICON(VAR2E AND C>江恩线,L,1);
DRAWICON(VAR18,H,2);;{KDJ逃顶}
DRAWTEXT(VAR2E AND C<江恩线,L,'秘密买点!'), COLORYELLOW;
DRAWTEXT(VAR2E AND C>江恩线,L,'强势买点!'), COLORRED;
DRAWTEXT(VAR18,H,'秘密抛点'), COLOR00FF00;{KDJ逃顶}

快速回复
限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
上一个 下一个