您现在的位置:程序化交易>> 股票公式>> 同花顺>> 同花顺公式>>正文内容

GGF精准波段[同花顺公式]

指标公式解析及使用说明:

指标包括多个技术指标的综合运用,主要通过对趋势线、均线、波动率等多个指标的组合来进行分析,并根据指标和价格之间的关系给出不同的操作信号。

具体来说,该指标中包括了如下技术指标:

ZIG:用于绘制股价波动的非连续折线。

MA:移动平均线,用于平滑股价波动,通过不同时间段的均值计算来分析价格走势。

REF:引用前一天的值。

VOL、AMOUNT:成交量、成交额,用于衡量市场的交易活跃程度。

HHV、LLV:求最高价和最低价。

EMA:指数平均线,同样用于平滑股价波动。

CROSS:两条线交叉。

IF、AND、OR:分别为条件判断语句中的“如果”、“且”、“或”。

COUNT:统计满足条件的数量。

FILTER:用于过滤信号。

SUM、INTPART:分别为求和函数和取整函数。

通过以上指标的综合运用,该指标能够较全面地反映市场的短期和中长期趋势,同时还能提供买卖信号和波动性分析等多方面的参考信息。在使用该指标进行交易时,可以结合自己的交易策略和风险偏好进行操作,同时应注意风险控制,避免过度依赖单一指标造成盲目操作。

 

源码:

DRAWICON(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW*0.97,7);

DRAWTEXT(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW*0.94,'');
DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.04,8);
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.01,'');
MA10:=MA(C,10);
MA20:=MA(C,20);
买线:=ZIG(3,10);
卖线:=MA(买线,3);
换手:=V/CAPITAL*100;
基线:MA(REF(LLV(C,30),1),2),NODRAW;
量能饱和度:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100),NODRAW;
MA5:MA(C,5),COLORF00FF0;
X1:=(C+L+H)/3;
//www.cxh99.com
X2:=EMA(X1,6);
X3:=EMA(X2,5);
STICKLINE(CROSS(买线,卖线),O,C,9,0),COLOR00AAFF;
STICKLINE(买线<卖线,H,L,0,0),COLORGREEN;//http://www.cxh99.com
STICKLINE(买线<卖线,C,O,9,0),Color007700;
STICKLINE(买线<卖线,C,O,8,0),Color008E00;
STICKLINE(买线<卖线,C,O,7,0),Color009900;
STICKLINE(买线<卖线,C,O,6,0),Color00A600;
STICKLINE(买线<卖线,C,O,5,0),Color00B500;
STICKLINE(买线<卖线,C,O,4,0),Color00C600;
STICKLINE(买线<卖线,C,O,3,0),Color00D500;
STICKLINE(买线<卖线,C,O,2,0),Color00E600;
STICKLINE(买线>=卖线,H,L,0,0),Color0000FF;
STICKLINE(买线>=卖线,C,O,9,0),Color0000A3;
STICKLINE(买线>=卖线,C,O,8,0),Color0000B7;
STICKLINE(买线>=卖线,C,O,6,0),Color0000C8;
STICKLINE(买线>=卖线,C,O,5,0),Color0000D9;
STICKLINE(买线>=卖线,C,O,4,0),Color0000CD;
STICKLINE(买线>=卖线,C,O,3,0),Color0000E9;
STICKLINE(买线>=卖线,C,O,2,0),Color0000EA;
STICKLINE(买线>=卖线,C,O,1,0),Color0000FF;
CXHF1:=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);
CXH101:=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);
CXH111:=CXHF1<REF(CXH101,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
游资:=(CXH111 AND COUNT(CXH111,30)=1 AND 买线>=卖线);
DRAWTEXT(游资,(基线*0.97),'--游资进'),colorliblue;
STICKLINE(游资,(基线*0.96),(基线+0.2),9,0),colorliblue;
CXHS1:=(C-LLV(L,36))/(HHV(H,36)-LLV(L,36))*100;
CXHS2:=SMA(CXHS1,3,1);//www.cxh99.com
CXHS3:=SMA(CXHS2,3,1);
CXHS4:=SMA(CXHS3,3,1);
抄底:=((FILTER((CROSS(CXHS3,CXHS4) AND CXHS3<20),10)=1) AND 买线>=卖线);
DRAWTEXT(抄底,(基线*0.94),'--抄底'),COLORFF00FF;
STICKLINE(抄底,(基线*0.92),基线,9,0),COLORFF00FF;
YY:=(CROSS(X2,X3) AND (买线>=卖线));
DRAWTEXT(YY,(L*0.99),'--精准买'),coloryellow;
STICKLINE(YY,C,(L*0.98),9,0),coloryellow;
F:=100*(C-REF(C,1))/REF(C,1);
S1:=IF(C<REF(O,1) AND F<0,1,0);
S2:=IF(C<REF(O,2) AND F<0,1,0);
短买点:=((CROSS((SMA(MAX(C-(REF(C,1)),0),4.1,1)/SMA(ABS(C-(REF(C,1))),4.1,1)*100),11)*1) AND S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND 换手>=3 AND 买线>=卖线);
DRAWTEXT(短买点,(基线*0.94),'--短买点'),COLORFF00FF;
STICKLINE(短买点,(基线*0.92),(基线*0.98),9,0),COLORFF00FF;
CXH5:=(3*(SMA(SMA(((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57)-2*(EMA((SMA(SMA(((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57),5)));
奔牛:=(CROSS(CXH5,(SMA(SMA(((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57)) AND 买线>=卖线);
DRAWTEXT(奔牛,(基线*0.98),'--奔牛'),COLOR00AAFF;
STICKLINE(奔牛,(基线*0.96),基线,9,0),COLOR00AAFF;
CXHQ1:=EMA(CLOSE,3);
CXHQ2:=EMA(CLOSE,21);
CXHQ3:=BARSLAST(CROSS(CXHQ2,CXHQ1))>15;
CXHQ4:=VOL>MA(VOL,5)*2 AND VOL<MA(VOL,5)*5;
黑马:=((CROSS(CXHQ1,CXHQ2) AND CXHQ4 AND CXHQ3) AND 买线>=卖线);
DRAWTEXT(黑马,(基线*0.98),'--黑马'),COLORFF6600;
STICKLINE(黑马,(基线*0.96),基线,9,0),COLORFF6600;
波段买点:=CROSS((ZIG(3,10)),(MA((ZIG(3,10)),3)));
DRAWTEXT(波段买点,(基线*0.98),'--波段买'),color00aaff;
STICKLINE(波段买点,(基线*0.96),基线,9,0),colorlired;
CXHDD:=(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));
DRAWTEXT((CXHDD=1),(H*1.05),'波段卖'),colorwhite;
STICKLINE((CXHDD=1),(H*1.01),(H*1.03),9,0),colorwhite;
大黑马:=(IF(CROSS((MA(3*SMA(((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100,6,1)-2*SMA(SMA(((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100,5,1),5,1),2)),0)AND EMA(3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),5)<40,8,0) AND 买线>=卖线);
DRAWTEXT(大黑马,(基线*0.94),'-大黑马'),colorblue;
STICKLINE(大黑马,(基线*0.92),基线,9,0),colorblue;
CXH10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
CXH11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
CXH12:=ZIG(3,6)=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
CXH13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
CXH14:=ZIG(3,22)=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
CXH15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
CXH16:=ZIG(3,51)=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
CXH17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
CXH18:=ZIG(3,72)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
CXH19:=EMA(CLOSE,2)-EMA(CLOSE,150);
CXH1A:=EMA(CXH19,100);
CXH1B:=2*(CXH19-CXH1A);
CXH1C:=POW(CXH1B,3)*0.1+POW(CXH1B,1);
CXH1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
CXH1E:=EMA(CXH1D*0.97,3);
CXH1F:=(HIGH+LOW+CLOSE)/3;
买点1:=CXH10;
买点2:=(CXH11+CXH13+CXH15+CXH17);
CXH1:=MA(CLOSE,5);
CXH2:=MA(CLOSE,10);
CXH3:=MA(CLOSE,30);
CXH4:=MA(CLOSE,60);
CXH5:=EMA(COST(85),7);
CXH6:=EMA(COST(15),7);
CXH7:=SUM(CLOSE*VOL*100,4)/SUM(VOL*100,4);
CXH8:=INTPART(CXH7*100)/100;
CXH9:=SUM(CLOSE*VOL*100,7)/SUM(VOL*100,7);
CXHA:=INTPART(CXH9*100)/100;
CXHB:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);
CXHC:=INTPART(CXHB*100)/100;
CXHD:=EMA(CLOSE,5)-EMA(CLOSE,10);
CXHE:=EMA(CXHD,9);
CXH13:=REF(CXHE,1);
CXH14:=CXHE;
CXH15:=CXH14-CXH13;
CXH16:=REF(CXHD,1);
CXH19:=OPEN;
买点3:=IF(CXH19<=CXH1 AND CXH19<=CXH2 AND CXH19<=CXH3 AND CXH1A>=CXH1 AND CXH1A>=CXHC AND CXH15>0 AND CXH18>0,0.5,0);
VERLINE(买点3>0 OR 买点1>0 OR 买点2>0, 2),Color0000FF;
DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.928,'绝佳') ,LINETHICK1,colorred;
 

 

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

怎么收费,代编流程等详情请点击查阅!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容