var1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
Var2:=REF(Var1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
Var3:=REF(Var2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
Var4:=REF(Var3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
Var5:=REF(Var4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
Var6:=REF(Var5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
Var7:=REF(Var6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
Var8:=REF(Var7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
Var9:=REF(Var8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VarA:=REF(Var9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VarB:=REF(VarA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VarC:=REF(VarB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VarD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VarE:=REF(VarD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VarF:=REF(VarE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
Var10:=REF(VarF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
Var11:=REF(Var10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
Var12:=REF(Var11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
Var13:=REF(Var12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
Var14:=REF(Var13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
Var15:=REF(Var14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
Var16:=REF(Var15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
Var17:=REF(Var16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
Var18:=REF(Var17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
Var19:=REF(VarD OR VarE OR VarF OR Var10 OR Var11 OR Var12 OR Var13 OR Var14 OR Var15 OR
Var16 OR Var17 OR Var18,1) AND Var1;
STICKLINE(Var19,REF(CLOSE,1),REF(CLOSE,2),14,1),colorff00ff;
Var1A:=REF(Var1 OR Var2 OR Var3 OR Var4 OR Var5 OR Var6 OR Var7 OR Var8 OR Var9 OR VarA OR
VarB OR VarC,1) AND VarD;
STICKLINE(Var1A,REF(CLOSE,1),REF(CLOSE,2),14,1),colorgreen;
{----------------------------------------------------------------------}
{mmgd买卖拐点}
VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
VAR2:=HIGH-REF(HIGH,1);
VAR3:=REF(LOW,1)-LOW;
VAR4:=SUM(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),25);
VAR5:=SUM(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),25);
VAR6:=VAR4*100/VAR1;
VAR7:=VAR5*100/VAR1;
VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);
VAR9:=(VAR8+REF(VAR8,15))/2;
A:=(VAR7>VAR6 AND VAR7>25 AND VAR6<25);
B:ZIG(3,50/5)*100,colorwhite;
G:MA(B,2),coloryellow;
D:=CROSS(B,G)*1000,colorred;
W:=CROSS(G,B)*1000,colorblue;
E:=REF(INDEXC,1);
F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1);
VAR10:=F AND F<8;
VAR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR12:=SMA(VAR11,3,1);
VAR13:=SMA(VAR12,3,1);
VAR14:=VAR13 AND VAR13<20;
MM:=A AND D AND VAR10 AND VAR14 ;
DRAWTEXT(W=1000,B*1.05,'卖' ),COLOR00FF00;
DRAWTEXT(D=1000,B*1.05,'买'),colorred;
{----------------------------------------------------------------------}
{cfgd财富拐点}{主图}
var1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
Var2:=REF(Var1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
Var3:=REF(Var2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
Var4:=REF(Var3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
Var5:=REF(Var4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
Var6:=REF(Var5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
Var7:=REF(Var6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
Var8:=REF(Var7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
Var9:=REF(Var8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VarA:=REF(Var9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VarB:=REF(VarA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VarC:=REF(VarB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VarD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VarE:=REF(VarD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VarF:=REF(VarE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
Var10:=REF(VarF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
Var11:=REF(Var10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
Var12:=REF(Var11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
Var13:=REF(Var12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
Var14:=REF(Var13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
Var15:=REF(Var14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
Var16:=REF(Var15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
Var17:=REF(Var16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
Var18:=REF(Var17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
Var19:=REF(VarD OR VarE OR VarF OR Var10 OR Var11 OR Var12 OR Var13 OR Var14 OR Var15 OR
Var16 OR Var17 OR Var18,1) AND Var1;
STICKLINE(Var19,REF(CLOSE,1),REF(CLOSE,2),14,1),colorred;
Var1A:=REF(Var1 OR Var2 OR Var3 OR Var4 OR Var5 OR Var6 OR Var7 OR Var8 OR Var9 OR VarA OR
VarB OR VarC,1) AND VarD;
STICKLINE(Var1A,REF(CLOSE,1),REF(CLOSE,2),14,1),colorgreen;
ma3:ema(c,3);
ma5:ema(c,5);
{-----------------------------------------------------------------}
{zqgd中期拐点}
t:=ma(c,30);
b:=FINANCE(7)>1500 and FINANCE(7)<30000 and C/FINANCE(33)>0 and C/FINANCE(33)<30;
a:=c>t and t>REF(t,1) AND REF(t,1)<REF(t,2);d:=(ema(c,12)-ema(c,26))<0;
中期拐点:a and b and d;
{------------------------------------------------------------}
{---------------------------------------------------------------------}
{jxgd均线拐点}
MA10:=SUM(AMOUNT,10)/SUM(VOL,10)/100;
MA20:=SUM(AMOUNT,20)/SUM(VOL,20)/100;
MA30:=SUM(AMOUNT,30)/SUM(VOL,30)/100;
MA40:=SUM(AMOUNT,40)/SUM(VOL,40)/100;
MA50:=SUM(AMOUNT,50)/SUM(VOL,50)/100;
MA60:=SUM(AMOUNT,60)/SUM(VOL,60)/100;
MA70:=SUM(AMOUNT,70)/SUM(VOL,70)/100;
MA80:=SUM(AMOUNT,80)/SUM(VOL,80)/100;
MA90:=SUM(AMOUNT,90)/SUM(VOL,90)/100;
MA100:=SUM(AMOUNT,100)/SUM(VOL,100)/100;
MA110:=SUM(AMOUNT,110)/SUM(VOL,110)/100;
MA120:=SUM(AMOUNT,120)/SUM(VOL,120)/100;
GG10:=-(MA120-MA10 )/MA10*100;
GG20:=-(MA120-MA20 )/MA20*100;
GG30:=-(MA120-MA30 )/MA30*100;
GG40:=-(MA120-MA40 )/MA40*100;
GG50:=-(MA120-MA50 )/MA50*100;
GG60:=-(MA120-MA60 )/MA60*100;
GG70:=-(MA120-MA70 )/MA70*100;
GG80:=-(MA120-MA80 )/MA80*100;
GG90:=-(MA120-MA90 )/MA90*100;
GG100:=-(MA120-MA100)/MA100*100;
GG110:=-(MA120-MA110)/MA110*100;
JXFX120:(GG10+GG20+GG30+GG40+GG50+GG60+GG70+GG80+GG90+GG100+GG110)/11;
{ZQS120}
ZQ120:=IF(CROSS(JXFX120,0) OR CROSS(0,JXFX120) OR JXFX120=0,0,1);
ZQ121:=IF(JXFX120>0,1,0);
ZQ122:=IF(JXFX120<0,-1,0);
ZQS120:=ZQ120*ZQ121+ZQ120*ZQ122,LINETHICK1;
W120:=BARSLAST(ZQ120=0)+1;
{240}
MA130:=SUM(AMOUNT,130)/SUM(VOL,130)/100;
MA140:=SUM(AMOUNT,140)/SUM(VOL,140)/100;
MA150:=SUM(AMOUNT,150)/SUM(VOL,150)/100;
MA160:=SUM(AMOUNT,160)/SUM(VOL,160)/100;
MA170:=SUM(AMOUNT,170)/SUM(VOL,170)/100;
MA180:=SUM(AMOUNT,180)/SUM(VOL,180)/100;
MA190:=SUM(AMOUNT,190)/SUM(VOL,190)/100;
MA200:=SUM(AMOUNT,200)/SUM(VOL,200)/100;
MA210:=SUM(AMOUNT,210)/SUM(VOL,210)/100;
MA220:=SUM(AMOUNT,220)/SUM(VOL,220)/100;
MA230:=SUM(AMOUNT,230)/SUM(VOL,230)/100;
MA240:=SUM(AMOUNT,240)/SUM(VOL,240)/100;
LL10:=-(MA240-MA10)/MA10*100;
LL20:=-(MA240-MA20)/MA20*100;
LL30:=-(MA240-MA30)/MA30*100;
LL40:=-(MA240-MA40)/MA40*100;
LL50:=-(MA240-MA50)/MA50*100;
LL60:=-(MA240-MA60)/MA60*100;
LL70:=-(MA240-MA70)/MA70*100;
LL80:=-(MA240-MA80)/MA80*100;
LL90:=-(MA240-MA90)/MA90*100;
LL100:=-(MA240-MA100)/MA100*100;
LL110:=-(MA240-MA110)/MA110*100;
LL120:=-(MA240-MA120)/MA120*100;
LL130:=-(MA240-MA130)/MA130*100;
LL140:=-(MA240-MA140)/MA140*100;
LL150:=-(MA240-MA150)/MA150*100;
LL160:=-(MA240-MA160)/MA160*100;
LL170:=-(MA240-MA170)/MA170*100;
LL180:=-(MA240-MA180)/MA180*100;
LL190:=-(MA240-MA190)/MA190*100;
LL200:=-(MA240-MA200)/MA200*100;
LL210:=-(MA240-MA210)/MA210*100;
LL220:=-(MA240-MA220)/MA220*100;
LL230:=-(MA240-MA230)/MA230*100;
JXFX240:(LL10+LL20+LL30+LL40+LL50+LL60+LL70+LL80+LL90+LL100+LL110+
LL120+LL130+LL140+LL150+LL60+LL170+LL180+LL190+LL200+LL210+LL220+LL230)
/23;
{ZQS240}
ZQ240:=IF(CROSS(JXFX240,0) OR CROSS(0,JXFX240) OR JXFX240=0,0,1);
ZQ241:=IF(JXFX240>0,1,0);
ZQ242:=IF(JXFX240<0,-1,0);
ZQS240:ZQ240*ZQ241+ZQ240*ZQ242,LINETHICK1;
W240:=BARSLAST(ZQ240=0)+1;
{计算时间拐点}
零:0,COLORAAACCC;
STICKLINE(零+0.01,零,零,2,1),COLORAAACCC;
{----------------------------------------------------------------------}
{jxgds均线拐点式}
M1:=ma(c,250);
gd250:(ref(M1,2)>=ref(M1,1)and M1>=ref(M1,1) or ref(M1,2)<=ref(M1,1)
and M1<=ref(M1,1));
DRAWTEXT(gd250>M1,l,'拐点250');
{----------------------------------------------------------------------}
{hdsgd黄点是拐点}
开收盘净值:=if((o-ref(o,1))/ref(o,1)<=-0.06 and c<o,(o-ref(c,1)),(c-ref(c,1)));
x:=5;
xx:=ma(sum(开收盘净值,0),1);
xy:=ma(sum(开收盘净值,0),x);
买卖指标:sum((xx-xy),1),coloryellow,linethick2;
drawtext(cross(买卖指标,0),买卖指标,'买'),colorred;
drawtext(cross(0, 买卖指标),买卖指标,'卖'),colorgreen;
drawtext(买卖指标>0 and (o-ref(c,1))/ref(c,1)>0.06 and c<o, 买卖指标*1.2,'高');
drawtext(买卖指标>0 and (c-ref(c,1))/ref(c,1)<-0.03 and c<o, 买卖指标*1.2,'小心');
drawtext(买卖指标>0 and (c-o)/c<-0.03 , 买卖指标*1.2,'止损') ,colorgreen;
0, colorwhite,pointdot,linethick2;
{买卖指示在实盘出现比较及时,但当天股价会有波动,导致0线位置出现会反复,但收盘时成定局。由
于没有T+o,买入时要谨慎一些。}
{--------------------------------------------------------------------}
{dzhgd大智慧拐点}
VAR1:=3;
VAR2:=((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)));
启动:=IF(CROSS(VAR2,VAR1),1,0),coloryellow;
买点:=IF((VAR2 <= 3),25,0);
增补仓:=IF((VAR2 < 5),45,0);
变量:ma((CLOSE-OPEN)/(HIGH-LOW)*VOL,10)/10000,colorffff00,LINETHICK2;
拐点:IF(CROSS(变量,0),1,0),colorred,LINETHICK2;
{------------------------------------------------------------------------}
{TSGD特色拐点}
VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
VAR2:=HIGH-REF(HIGH,1);
VAR3:=REF(LOW,1)-LOW;
VAR4:=SUM(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),25);
VAR5:=SUM(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),25);
VAR6:=VAR4*100/VAR1;
VAR7:=VAR5*100/VAR1;
VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);
VAR9:=(VAR8+REF(VAR8,15))/2;
A:=(VAR7>VAR6 AND VAR7>25 AND VAR6<25);
B:ZIG(3,50/5)*100,colorwhite;
G:MA(B,2),colorffcc66;
D:=CROSS(B,G)*1000,colorred;
W:=CROSS(G,B)*1000,colorblue;
E:=REF(INDEXC,1);
F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1);
VAR10:=F AND F<8;
VAR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR12:=SMA(VAR11,3,1);
VAR13:=SMA(VAR12,3,1);
VAR14:=VAR13 AND VAR13<20;
MM:=A AND D AND VAR10 AND VAR14 ;
DRAWTEXT(W=1000,B*1.05,'s' ),COLOR00FF00;
DRAWTEXT(D=1000,B*1.05,'b'),colorred;
{----------------------------------------------------------------------}
{zygd周阳拐点}{主图}
MA1:MA(CLOSE,8);
MA2:MA(CLOSE,13);
MA3:MA(CLOSE,21),LINETHICK2;
MA4:MA(CLOSE,34);
MA5:MA(CLOSE,20);
FFF:=(LOW<=MA1 AND LOW<=MA2 AND LOW<=MA3 AND CLOSE>=MA1 AND CLOSE>=MA2 AND CLOSE>=MA3 AND
CLOSE>REF(CLOSE,1));
DRAWICON(OPEN>MA1 AND OPEN>MA2 AND OPEN>MA5 AND CLOSE<MA1 AND CLOSE<MA2 AND
CLOSE<MA5,LOW,2);
BBB:=(LOW<=MA1 AND LOW<=MA2 AND LOW<=MA3 AND HIGH>=MA1 AND HIGH>=MA2 AND HIGH>=MA3 AND
CLOSE>OPEN AND CLOSE>REF(CLOSE,1));
STICKLINE(BBB,CLOSE,OPEN,8,0),COLOR9900FF;
A1:=REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(C,2)<REF(C,3);
A2:=REF(OPEN,1)<REF(CLOSE,2)AND REF(CLOSE,1)>REF(CLOSE,2) AND REF(CLOSE,1)>(REF(CLOSE,2)
+REF(OPEN,2))/2;
A3:=CLOSE>REF(CLOSE,1);
A4:=LLV(LOW,13)=REF(LOW,1);
MB:=BACKSET(A1 AND A2 AND A3 AND A4,3);
STICKLINE(MB,CLOSE,OPEN,7,0),COLOR0066FF;
DRAWTEXT(CROSS(0.5,MB),HIGH *1.08,'哈哈!,↑曙光初现'),COLOR0066FF;
DRAWTEXT(FFF,LOW*0.98,'↑阳拐点'),COLOR00FFFF;