飓风眼指标 公式 源码[通达信公式]
指标公式源码分析及使用参考建议:
根据给定的指标分析公式,可以得出以下思路和操作建议:
cxh5X指标:该指标计算了价格相对于过去100个交易日内最低价和最高价的位置。操作建议:当cxh5X值较小且出现上升趋势时,可考虑买入;当cxh5X值较大且出现下降趋势时,可考虑卖出。
cxh11和cxh12指标:这两个指标计算了价格相对于过去5个交易日内最低价和最高价的位置,并进行了加权平均。操作建议:当cxh11值大于cxh12值,并且出现上升趋势时,可考虑买入;当cxh11值小于cxh12值,并且出现下降趋势时,可考虑卖出。
cxh17和cxh18指标:这两个指标计算了收盘价相对于过去5个交易日内最低价和最高价的位置,并进行了加权平均。操作建议:当cxh17值较大且出现上升趋势时,可考虑买入;当cxh17值较小且出现下降趋势时,可考虑卖出。
cxh21、cxh22和cxh23指标:这些指标计算了价格的平均值、指数移动平均和标准差。操作建议:当价格偏离指数移动平均较远时,可考虑买入或卖出。
cxh33指标:该指标计算了收盘价、最高价和最低价的平均值,并进行了加权平均。操作建议:当cxh33值处于较低水平且出现上升趋势时,可考虑买入;当cxh33值处于较高水平且出现下降趋势时,可考虑卖出。
源码:
cxh5X:=(CLOSE-LLV(LOW, 100))/(HHV(HIGH, 100)-LLV(LOW, 100))*200;cxh6X:=SMA(cxh5X, 3, 1);cxh7X:=SMA(cxh6X, 3, 1);cxh8X:=3*cxh6X-2*cxh7X;cxh11:=EMA((CLOSE-LLV(LOW, 5))/(HHV(HIGH, 5)-LLV(LOW, 5))*100, 4)*2;cxh12:=EMA(0.667*REF(cxh11, 1)+0.333*cxh11, 2);cxh13:=3*cxh11-2*cxh12;cxh14:=POW(MA(CLOSE, 5), 2)+MA(CLOSE, 5);cxh15:=POW(MA(LOW, 5), 2)+MA(LOW, 5);cxh16:=POW(MA(HIGH, 5), 2)+MA(HIGH, 5);cxh17:=(cxh14-LLV(cxh15, 64))/(HHV(cxh16, 64)-LLV(cxh15, 64))*150+65-10;cxh18:=SMA(cxh17, 3, 1)*1.5-100;cxh19:=SMA(cxh18, 3, 1);cxh20:=3*cxh18-2*cxh19;cxh21:=(HIGH+LOW+CLOSE*2)/4;cxh22:=EMA(cxh21, 13);cxh23:=STD(cxh21, 13);cxh24:=(cxh21-cxh22)*100/cxh23;cxh25:=EMA(cxh24, 5);cxh26:=EMA(cxh25, 13);cxh27:=EMA(cxh25, 13)+200-100;cxh28:=EMA(cxh27, 10);cxh29:=3*cxh27-2*cxh28;cxh30:=cxh6X+cxh11+cxh18+cxh27;cxh31:=cxh7X+cxh12+cxh19+cxh28;cxh32:=cxh8X+cxh13+cxh20+cxh29;cxh33:=(HIGH+LOW+CLOSE)/3;cxh34:=AMOUNT/VOL/100;cxh35:=SUM(AMOUNT, 5)/SUM(VOL, 5)/100;cxh36:=(cxh33-MA(cxh33, 34))/(0.015*AVEDEV(cxh33, 34));cxh41:=(cxh33-EMA(cxh33, 24))/STD(cxh33, 24)*100;cxh42:=(cxh33-MA(cxh33, 24))/(0.015*AVEDEV(cxh33, 24));cxh43:=EMA(cxh41, 5);cxh44:=(cxh34-MA(cxh34, 21))/(0.015*AVEDEV(cxh34, 21));cxh45:=(cxh35-MA(cxh35, 90))/(0.015*AVEDEV(cxh35, 90));cxh46:=((cxh45+cxh44+cxh43+cxh42+cxh36)/5+165)/4;cxh47:=(EMA(EMA(EMA(cxh46, 15), 10), 5)-25)*2+DMA(AMOUNT/VOL/100, VOL/CAPITAL);cxh48:=(cxh30+cxh31+cxh32*30)/32/5-15;cxh49:=EMA(cxh48, 13);cxh51:=(cxh47+cxh49)/2;cxh52:=EMA(cxh51, 1);ZX:EMA(cxh52, 2),LINETHICK0, COLORFF7710;{STICKLINE(ZX-REF(ZX, 2)<0, ZX, 10, 9, 0),COLORBROWN;{COLOR9CA010;}STICKLINE(ZX-REF(ZX, 2)>0, ZX, 10, 9, 0),COLORLIRED;{LINETHICK0, COLOREEEEEE;}cxh1:=IF(YEAR>=2038 AND MONTH>=1,0,1);cxh2:=REF(LOW,1)*cxh1;cxh3:=SMA(ABS(LOW-cxh2),3,1)/SMA(MAX(LOW-cxh2,0),3,1)*100*cxh1;GG:=100*(1-WINNER(C))>99.8 AND V/CAPITAL*100<5 AND 100*(WINNER(1.1*C)-WINNER(0.9*C))<3.9;最佳建仓点:=C>REF(C,1) AND REF(GG,1)>0 AND cxh3,COLORRED;STICKLINE(C>REF(C,1) AND REF(GG,1)>0 AND cxh3,0,80,4,0),COLORRED;{DRAWTEXT(C>REF(C,1) AND REF(GG,1)>0 AND cxh3,85,'低位建仓'),COLORYELLOW;}{1指.能量线}能量线:=EMA(100*(C-LLV(L,34))/(HHV(H,34)-LLV(L,34)),3),LINETHICK0;{2指.RSI} RSI:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100,LINETHICK0;{3指.KDJ} RSVF:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,LINETHICK0;KF:=SMA(RSVF,3,1);DF:=SMA(KF,3,1);JF:=3*KF-2*DF;威廉WR:=(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))*100;TYP := (HIGH + LOW + CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),LINETHICK0;五指A:WMA((能量线+RSI+JF-威廉WR+CCI)/2.5,5);五指B:WMA((能量线+RSI+JF-威廉WR+CCI)/4,13);KC:=FORCAST(((2*C+H+L)/4*0.618+C*0.382),3);AAX:=(KC-MA(KC,9))/MA(KC,9)*100;cxh0:=MIN(EXIST(KC,55),9);AAX1:=EMA(AAX,cxh0)*cxh0;AAX2:=MA(AAX1,3);AAX3:=MA(AAX1,5);卖:=AAX3>3 AND AAX1<REF(AAX1,1) AND CROSS(AAX2,AAX1);VBA:=FILTER(卖,5);VB2:=EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6)*100;VB3:=IF(LLV(VB2,3)=LLV(VB2,11) AND COUNT(VB2<0,2) AND CROSS(VB2,MA(VB2,2)),1,0);VB4:=FILTER(VB3=1,5);DRAWBAND(五指A,RGB(255,200,0),五指B,RGB(0,40,55));{亮度}{MA((能量线+RSI+JF-威廉WR+CCI)/5,5),COLORLICYAN,LINETHICK3;{淡青色线}IF(五指A>REF(五指A,1),五指A,DRAWNULL),COLORRED,LINETHICK4;{红色线};DRAWTEXT_FIX(1,0.02,0,0,'◆能量线,RSI3.KDJ,W&R,CCI,【五个指标共振线.[红].[绿].变化是买卖信号.颜色及标记是配合信号】'),COLOR00FFFF,LINETHICK3;DRAWTEXT(VB4,五指A*0.97,'低买'),COLOR00FFFF;{飓风眼,红色下叉带}cxh11F:=(HHV(HIGH,8)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20))*100;cxh33F:=100-3*SMA((CLOSE-LLV(LOW,72))/(HHV(HIGH,72)-LLV(LOW,72))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,20,1),15,1);{72}冷气OAMV:=EMA(cxh33,2),COLORRED;冷气南下:=EMA(EMA(SMA(cxh11,6,1)-7,2),2);WR线:=EMA(EMA(100*(HHV(HIGH,42)-CLOSE)/(HHV(HIGH,42)-LLV(LOW,42)),3),3),COLORWHITE,DOTLINE;SBZLPA1:=BARSLAST(L=HHV(L,7));SBZLPA2:=EMA(SBZLPA1*SBZLPA1,13);暖气北上:=IF(SBZLPA2>88,88+SQRT(SBZLPA2-88),SBZLPA2);TPV:=(暖气北上+冷气南下+冷气OAMV)/3;T冷气南下:=(暖气北上+TPV)/2+8,COLORWHITE,DOTLINE;T暖气北上:=(冷气南下+TPV)/2+8,COLORBLUE,DOTLINE;T飓风形成:=(T暖气北上+T冷气南下)/2,COLORGRAY,DOTLINE;WR慢:=EMA(EMA(100*(HHV(HIGH,42)-CLOSE)/(HHV(HIGH,42)-LLV(LOW,42)),2),2);ZLCQ:=EMA((WINNER(CLOSE) * 69),3);SHCQ:=EMA(((WINNER((CLOSE * 1.1)) - WINNER((CLOSE * 0.93))) * 80),3);主力控盘Q:=EMA(((ZLCQ / (ZLCQ+ SHCQ)) * 110),2),COLORFF11FF,LINETHICK2;上限Q:=HHV(主力控盘Q,20),COLORGRAY,LINETHICK3;下限Q:=LLV(主力控盘Q,20),COLORGRAY,LINETHICK3;圈Q:=100*(HHV(HIGH,42)-C)/(HHV(HIGH,42)-LLV(LOW,42));M圈Q:=EMA(EMA(圈Q,3),2);MM圈Q:=EMA(EMA(EMA(圈Q,4),3),2);控盘主升Q:=EMA(主力控盘Q,2);KONGQ0:=(上限Q/控盘主升Q)*(下限Q/控盘主升Q)*50;KONGQ:=IF(KONGQ0>100,100,IF(KONGQ0<1,1,KONGQ0));MAXV:=MAX(T冷气南下,T暖气北上);MINV:=MIN(T冷气南下,T暖气北上);MMV0:=MAXV/MINV;MMV1:=T冷气南下/REF(T冷气南下,1);MMV2:=T暖气北上/REF(T暖气北上,1);散筹集中度Q:=EMA(EMA((WINNER(C*1.1)-WINNER(C*0.9))*50/(WR慢/MM圈Q)/MMV0/MMV1/MMV2,3),2);KKONG0:=KONGQ*KONGQ*5/SQRT(散筹集中度Q)/控盘主升Q;KKONG:=IF(KKONG0>100,100,KKONG0);KV0:=KKONG/KONGQ;KV1:=KONGQ/REF(KONGQ,1);KV2:=KKONG/REF(KKONG,1);KV3:=EMA(KV0*KV0*KV1*KV2*30,2);OKV:=IF(KV3>100,100,IF(KV3<0,0,KV3));WVQ0:=1.18*(上限Q*下限Q+5)/(KONGQ+2)/SQRT(SQRT((OKV+2)/(KONGQ+5)));WVQ1:=100-IF(WVQ0>70,70+SQRT(WVQ0-1),IF(WVQ0<1,1,WVQ0));{90}WVVQ:=(IF(WVQ1<05,0.5,WVQ1));EVVQ:=EMA(EMA(WVVQ*0.97,3),3);DRAWBAND(WVVQ,RGB(11,60,55),EVVQ,RGB(240,11,33));{红色下叉变色}{要拉一波}cxh1A:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);cxh4AA:=CLOSE/(REF(CLOSE,1))>1.05 AND (HIGH/CLOSE<1.01);{1.05;1.01}游资进场:=(FILTER(cxh4AA>0,34)AND DYNAINFO(4)>0)*8,COLORYELLOW;A10:10,COLORYELLOW;{STICKLINE(XYSHSL>2.1 AND CYS13>5,53,86,5,0 ),COLOR000055;}STICKLINE(游资进场,10,66,6,0),COLORBLUE;LS:=C/REF(C,1)>1.048 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));拉升:=FILTER(LS,28);M:=10;N:=9;散户线:100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),COLORGREEN,LINETHICK2;{COLORFFFF00青线}RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容