以下是同花顺GBS简单交易公式
同花顺GBS简单交易公式
源码
VAR1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
VAR2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR3:=(SMA(VAR2,6,1)-18)*1.55;
VAR4:=SMA(VAR3,3,1);
VAR5:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100;
VAR6:=SMA(VAR5,10,1);
VAR7:=(EMA(SMA(VAR6,8,1),34)-25)*2.6;
VAR8:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VAR9:=POW(MA(LOW,5),2)+MA(LOW,5);
VARA:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VARB:=((VAR8-LLV(VAR9,64))/(HHV(VARA,64)-LLV(VAR9,64))*150+65-10)/2;
VARC:=SMA(VARB,3,1)*1.5-46;
VARD:=SMA(VARC,3,1);
VARE:=3*VARC-2*VARD;
VARF:=(VAR1+VAR2+VAR5)/3;
VAR10:=((VAR3+VAR3+VAR6+VARC)/4-15)*1.67;
VAR11:=((VAR4+VAR4+VAR7+VARD)/4-15)*1.67;
VAR12:=((VAR1+VAR5*2+VARF+VAR10+VAR11+VARB+VARC+VARD+VARE)/10-15)*1.67;
VAR13:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))*(-1)+0.9;
VAR14:=(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*(-1)+0.92;
VAR15:=(HHV(HIGH,15)-CLOSE)/(HHV(HIGH,15)-LLV(LOW,15))*(-1)+0.93;
VAR16:=(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55))*(-1)+0.94;
VAR17:=(HHV(HIGH,89)-CLOSE)/(HHV(HIGH,89)-LLV(LOW,89))*(-1)+0.95;
VAR18:=(HHV(HIGH,120)-CLOSE)/(HHV(HIGH,120)-LLV(LOW,120))*(-1)+0.91;
VAR19:=(HHV(HIGH,180)-CLOSE)/(HHV(HIGH,180)-LLV(LOW,180))*(-1)+0.96;
VAR1A:=((VAR13*8+VAR14*8+VAR15*8+VAR16+VAR17+VAR18+VAR19)/28-0.1)*185;
VAR1B:=SMA(VAR1A,7.5,1);
VAR1C:=(SMA(VAR1B,8,1)-8)*1.18;
短期筹码: (VAR10+VAR11+VAR12+VARC+VARD+VARE+VAR1C+VAR7)/13,LINETHICK0,colorred;
中期筹码: (VAR10+VAR11+VAR12+VARC+VARD+VARE+VAR1C+VAR7)/21,LINETHICK0;
长期筹码: (VAR10+VAR11+VAR12+VARC+VARD+VARE+VAR1C+VAR7)/34,LINETHICK0,colorgreen;
获利筹码: (VAR3+VAR6+VAR1B*2)/4,LINETHICK0,colorblue;
趋势:3*SMA((C-LLV(L,900))/(HHV(H,900)-LLV(L,900))*100,900,1)-2*SMA(SMA((C-LLV(L,700))/(HHV(H,700)-LLV(L,700))*100,810,1),550,1),coloryellow,LINETHICK1;
趋势1:-趋势+100,colorblue,LINETHICK1;
趋势高宝生:3*SMA((C-LLV(L,300))/(HHV(H,300)-LLV(L,300))*100,450,1)-2*SMA(SMA((C-LLV(L,240))/(HHV(H,240)-LLV(L,240))*100,410,1),450,1),colorred,LINETHICK3;
趋势高宝生1:-趋势高宝生+100,colorgreen,LINETHICK3;
趋势高浩銘:3*SMA((C-LLV(L,150))/(HHV(H,150)-LLV(L,150))*100,270,1)-2*SMA(SMA((C-LLV(L,120))/(HHV(H,120)-LLV(L,120))*100,180,1),230,1),colormagenta,LINETHICK2;
趋势高浩銘1:-趋势高浩銘+100,colorcyan,LINETHICK2;
趋势高江林:3*SMA((C-LLV(L,1800))/(HHV(H,1800)-LLV(L,1800))*100,750,1)-2*SMA(SMA((C-LLV(L,900))/(HHV(H,900)-LLV(L,900))*100,500,1),650,1),colorwhite,LINETHICK1;
趋势高江林1:-趋势高江林+100,colorcyan,LINETHICK1;
50,LINETHICK1,colorwhite;
0,LINETHICK1,colorred;
顶部1: 85,colorgreen,LINETHICK1;
底1: 15,coloryellow,LINETHICK1;
100,LINETHICK1,colorblue;
DRAWTEXT(CROSS(趋势高江林,趋势高江林1) AND 趋势<=趋势1 AND 趋势高宝生>=趋势高宝生1,95,’有大快涨’),colorwhite;
DRAWTEXT(CROSS(趋势,趋势1),17,’3金叉买入’),colorred;
DRAWTEXT(CROSS(趋势,趋势1) AND 趋势高宝生<=趋势高宝生1 AND 趋势高江林>=趋势高江林1,95,’有大涨’),colorwhite;
DRAWTEXT(CROSS(趋势高宝生,趋势高宝生1),12,’2金叉买入’),colorred;
DRAWTEXT(CROSS(趋势高宝生,趋势高宝生1) AND 趋势高浩銘>趋势高浩銘1 AND 趋势>=趋势1,95,’有主升’),colorwhite;
DRAWTEXT(CROSS(趋势高宝生,趋势高宝生1) AND 趋势高浩銘<趋势高浩銘1 AND 趋势高江林>=趋势高江林1 AND 趋势>=趋势1,95,’有主升’),colorred;
DRAWTEXT(CROSS(趋势高宝生,趋势高宝生1) AND 趋势高浩銘<趋势高浩銘1 AND 趋势高江林<趋势高江林1,95,’涨,关注3的配合’),colorwhite;
DRAWTEXT(CROSS(趋势高浩銘,趋势高浩銘1) AND 趋势高江林>趋势高江林1,50,’1金叉买入’),colorred;
DRAWTEXT(CROSS(趋势高浩銘,趋势高浩銘1) AND 趋势高江林<趋势高江林1,7,’1金叉买入’),coloryellow;
DRAWTEXT(CROSS(趋势1,趋势),83,’3死叉卖出’),colorgreen;
DRAWTEXT(CROSS(趋势高宝生1,趋势高宝生),79,’2死叉卖出’),colorgreen;
DRAWTEXT(CROSS(趋势高浩銘1,趋势高浩銘) AND 趋势高江林<趋势高江林1,75,’1死叉卖出’),colorgreen;
DRAWTEXT(CROSS(趋势高浩銘1,趋势高浩銘) AND 趋势高江林>趋势高江林1,75,’1死叉卖出’),colorcyan;
DRAWTEXT(CROSS(趋势高江林1,趋势高江林),90,’大死叉跑’),colorgreen;
VARA1:=(C-LLV(L,60.13547854))/(HHV(H,60.13547854)-LLV(L,60))*80;
VARC1:=SMA(VARB1,5,1);
VAR2N:=LLV(L,3)<=LLV(L,60);
VAR3N:= C>O AND (C/O>1.03 OR C>1.03*REF(C,1));
绝地反击:IF(VAR2N AND VAR3N AND 趋势高宝生<0,90,0),coloryellow,LINETHICK2;
抄底买入1:IF(趋势<0 AND 趋势高宝生<0 AND 趋势高江林<10 AND 趋势高浩銘<15,50,0),colorred,LINETHICK3;
抄底买入2:IF(趋势高浩銘<0 AND 趋势高江林<10,95,0),colorred,LINETHICK1;
抄底买入3:IF(趋势高浩銘<0 AND 趋势高江林<5,100,0),colorred,LINETHICK2;
抄底买入4:IF(趋势高浩銘<0 AND 趋势高江林<20,100,0),colormagenta,LINETHICK3;
抄底买入5:IF(趋势高江林<0 AND 趋势<0,90,0),colorred,LINETHICK5;
抄底买入6:IF(趋势高宝生<0 AND 趋势高浩銘<5,30,0),colormagenta,LINETHICK2;
抄底买入7:IF(趋势高江林<0,30,0),colorwhite,LINETHICK1;
逃顶卖出:IF(趋势高宝生>100,30,100),colorblue,LINETHICK3;
逃顶卖出1:IF(趋势高浩銘>100,20,100),colorgreen,LINETHICK2;
逃顶卖出2:IF(趋势>100,40,100),colorcyan,LINETHICK3;
逃顶卖出3:IF(趋势高江林>100 AND 趋势>100,3,100),colorgreen,LINETHICK4;
DRAWTEXT(CROSS(趋势,趋势高宝生) AND 趋势高宝生<80 AND 趋势高江林>50 AND 趋势高宝生>67 AND 趋势高浩銘>趋势高浩銘1,87,’斜率上大涨’),coloryellow;
DRAWTEXT(CROSS(趋势,趋势高江林1) AND 趋势<85 AND 趋势>50 AND 趋势高宝生>50,趋势,’拿好筹码’),colorred;
DRAWTEXT(CROSS(趋势高宝生,趋势高江林1) AND 趋势<85 AND 趋势>50 AND 趋势高宝生>50,趋势高宝生,’有上涨’),coloryellow;
DRAWTEXT(CROSS(趋势高宝生,趋势1) AND 趋势<85 AND 趋势高宝生>50 AND 趋势高江林>50,趋势高宝生,’买点’),coloryellow;
STICKLINE(短期筹码<0,短期筹码,-0,9,0),colorred;
STICKLINE(短期筹码>80,100,短期筹码,12,0),colorgreen;
评论(0)