根据理想技术指标公式提取黄金分割点选股指标 选股 源码[大智慧公式]
指标代码分析及使用参考说明:
这段代码是一个股票指标的计算公式,主要包括了一些技术指标的计算和图形的绘制。具体包括:
1. MA10、MA20:分别为10日均线和20日均线,用于判断股价的短期和中期趋势。
2. RSI1、RSI2、RSI3:分别为相对强弱指标的6日、12日、24日计算结果,用于衡量股价的超买超卖情况。
3. MACD:表示移动平均线的差离值,用于判断股票的买卖信号。
4. CCI:表示顺势指标,用于判断股票的超买超卖情况。
5. 金叉和死叉信号:通过KDJ指标的交叉情况来判断买入和卖出信号。
6. 黄金分割点:用于判断股价的重要支撑和阻力位。
综合以上指标,可以给出以下简要总结思路及操作建议:
- 当股价出现MA10上穿MA20、RSI值低于30且MACD出现金叉时,可能是买入信号。
- 当股价出现MA10下穿MA20、RSI值高于70且MACD出现死叉时,可能是卖出信号。
- 当股价接近或突破黄金分割点的阻力位时,可能是卖出信号;当股价接近或突破黄金分割点的支撑位时,可能是买入信号。
需要注意的是,以上只是基于技术指标的简要思路和建议,具体的操作还需要结合个人风险承受能力、行情判断等因素进行综合考虑。建议在实际操作中谨慎判断,合理控制风险。
源码:
1、B点选股:
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);
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);
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);
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);
停牌:=(DYNAINFO(4)=0);
买:=(cxh11+cxh13+cxh15+cxh17);
买>0 AND low-0.02 and not(停牌);
2、D点选股
cxh1:=ma(close,26);
cxh3:=llv(high,240);
cxh4:=100*(close-cxh3)/cxh3;
cxh5:=(close-llv(low,528))/(hhv(high,528)-llv(low,528))*100;
cxh6:=(close-llv(close,530))/(hhv(close,530)-llv(close,530))*100;
cxh7:=0;
cxh8:=sma(max(close-ref(close,1),0),34,1)/sma(abs(close-ref(close,1)),7,1)*100;
cxh9:=sma(max(close-ref(close,1),0),13,1)/sma(abs(close-ref(close,1)),13,1)*100;
cxha:=barscount(close);
cxhb:=cxh8<20 and cxh9<23 and cxha>35;
cxhc:=cxhb and count(cxhb,1)=1;
cxhd:=ema(close,21)-ema(close,8);
cxhe:=ema(cxhd,5);
cxhf:=troughbars(3,6,1)<4 and cross(cxhd,cxhe);
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),1) and ref(zig(3,6),1)>=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),1) and ref(zig(3,22),1)>=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),1) and ref(zig(3,51),1)>=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),1) and ref(zig(3,72),1)>=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;
cxh20:=(cxh1f-ma(cxh1f,14))/(0.015*avedev(cxh1f,14));
cxh21:=cross(cxh1e,low);
cxh2:=ma(close,10);
cxh3a:=ma(close,30);
cxh4a:=ma(close,60);
cxh5a:=ema(cost(85),7);
cxh6a:=ema(cost(15),7);
cxh7a:=sum(close*vol*100,4)/sum(vol*100,4);
cxh8a:=intpart(cxh7a*100)/100;
cxh9a:=sum(close*vol*100,7)/sum(vol*100,7);
cxhaa:=intpart(cxh9a*100)/100;
cxhba:=sum(close*vol*100,28)/sum(vol*100,28);
cxhca:=intpart(cxhba*100)/100;
cxhda:=ema(close,5)-ema(close,10);
cxhea:=ema(cxhda,9);
cxhfa:=(-100)*(hhv(close,5)-close)/(hhv(close,5)-llv(low,5))+100;
cxh10a:=(-100)*(hhv(close,10)-close)/(hhv(close,10)-llv(low,10))+100;
cxh11a:=(-100)*(hhv(close,20)-close)/(hhv(close,20)-llv(low,20))+100;
cxh12a:=(-100)*(hhv(close,30)-close)/(hhv(close,30)-llv(low,30))+100;
cxh13a:=ref(cxhea,1);
cxh14a:=cxhea;
cxh15a:=cxh14a-cxh13a;
cxh16a:=ref(cxhda,1);
cxh17a:=cxhda;
cxh18a:=cxh17a-cxh16a;
cxh19a:=open;
cxh1k:=close;
停牌:=(DYNAINFO(4)=0);if(cxh19a<=cxh1 and cxh19a<=cxh2 and cxh19a<=cxh3a and cxh1k>=cxh1 and
cxh1k>=cxhca and cxh15a>0 and cxh18a>0,0.5,0) AND NOT(停牌);3、变盘
cxh1R:=(HIGH+LOW+CLOSE*2)/4;
cxh2R:=EMA(cxh1R,21);
cxh3R:=STD(cxh1R,21);
cxh4R:=((cxh1R-cxh2R)/cxh3R*100+200)/4;
cxh5R:=(EMA(cxh4R,5)-25)*1.56;
AK:=EMA(cxh5R,2)*1.22;
AD1:=EMA(AK,2);
停牌:=(DYNAINFO(4)=0);CROSS(AD1,AK) AND NOT(停牌);
4、资金运转
cxh1:=SMA(AMOUNT,10,1)/10000;
cxh2:=REF(cxh1,1);
cxh3:=SMA(AMOUNT,10,1)/10000;
AA:=cxh1>cxh2;
BB:=cxh1< cxh2;
停牌:=(DYNAINFO(4)=0);
AA AND REF(BB,1) AND NOT(停牌);
5、
MA5:=MA(CLOSE,5);
MA21:=MA(CLOSE,21);
MA65:=MA(CLOSE,65);
EA5:=EMA(CLOSE,5);
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);RSV:=(CLOSE-LLV(LOW, 55))/(HHV(HIGH, 55)-LLV(LOW, 55))*100;
K:=SMA(RSV, 13, 1);
D:=SMA(K, 5, 1);
J:=3*K-2*D;
KM3:=EMA(K, 3);LC:=REF(CLOSE,2);
RSI:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;多排:=COUNT(MA21>MA65,10)=10;
GX:=MAX(MA5,MAX(MA21,MA65));
DX:=MIN(MA5,MIN(MA21,MA65));
整理:=ABS(GX/DX-1)*100<=15;
强势:=COUNT(MACD<0,10)=10;
目标:=IF(多排 AND 整理 AND 强势,5,0);
停牌:=(DYNAINFO(4)=0);CROSS(0.1,目标) AND CROSS(MACD,0) AND NOT(停牌);
6、拐点
上线:=SMA(C,6.5,1);
下线:=SMA(C,13.5,1);
上线1:=SMA(C,3,1);
下线1:=SMA(C,8,1);
停牌:=(DYNAINFO(4)=0);
CROSS(C,下线) AND LOW AND NOT(停牌);7、可买
多头线:=DMA(MA((2*CLOSE+OPEN+HIGH+LOW)/5,8),VOL/SUM(VOL,4));
空头线:=LLV(多头线,8);
停牌:=(DYNAINFO(4)=0);CROSS(C,空头线) AND LOW*0.97 AND NOT(停牌);8、拉抬
VUR0:=(((((2 * OPEN) + HIGH) + LOW) + (3 * CLOSE)) / 7);
VUR1:=(CAPITAL * VUR0);
VUR2:=(SMA(AMOUNT,10,1) / 1000);
VUR3:=MA((CLOSE * 3),5);
VUR4:=((((VUR2 * (CLOSE * 3)) / VUR3) * 1) / 10);
VUR5:=((((VUR2 * (OPEN * 3)) / VUR3) * 1) / 10);
VUR6:=((((VUR2 * (HIGH * 3)) / VUR3) * 1) / 10);
VUR7:=((((VUR2 * (LOW * 3)) / VUR3) * 1) / 10);
VUR8:=(((((2 * VUR5) + VUR6) + VUR7) + (3 * VUR4)) / 7);
VUR9:=EMA(DMA(EMA(VUR4,2),(SUM(VOL,1) * VUR8)),2);
VURA:=EMA((VUR1 - VUR9),1);
VU1:=IF((VURA > REF(VURA,1)),((VURA - REF(VURA,1)) * 15 / 1000),0);
VU3:=SUM(VU1,15);
VU4:=EMA(VU3,10);
VU5:=REF(VU4,1);
VUF:=((VU4 > VU5) AND VUD);
拉抬:=VUF AND VU5 AND VU4 * 1.1;
停牌:=(DYNAINFO(4)=0);CROSS(拉抬,0) AND NOT(停牌);
9、极品
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
停牌:=(DYNAINFO(4)=0);BU:CROSS(买线,卖线) AND LOW*0.999 AND NOT(停牌);
10、持仓
N:=22;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
SVZL:=SUM(((QJ1+QJ2)-(QJ3+QJ4))/SUM(VOL,60),0);
CZ:=SVZL-REF(SVZL,1);
停牌:=(DYNAINFO(4)=0);
CROSS(CZ,0) and not(停牌);
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容