包你赚公式 指标 选股 源码[大智慧公式]
指标公式代码分享及使用参考说明:
该指标是一个复杂的趋势线系统,包含了多个变量和条件。根据给定的代码,我们可以得到以下的总结思路和操作建议:
1. 趋势线计算:通过计算移动平均线(SMA)和指数移动平均线(EMA),得到趋势线的数值。可以使用趋势线来判断市场的走势。
2. 买入信号:通过一系列条件判断,得出买入信号。条件包括但不限于:趋势线的值超过阈值、收盘价高于特定水平、成交量适中等。当这些条件同时满足时,可以考虑买入。
3. 牛市信号:通过一系列条件判断,得出牛市信号。条件包括但不限于:短期均线上涨、长期均线上涨、成交量增加等。当这些条件同时满足时,可以判断为牛市。
4. 卖出信号:通过一系列条件判断,得出卖出信号。条件包括但不限于:趋势线与指定值交叉、收盘价低于特定水平等。当这些条件同时满足时,可以考虑卖出。
5. 其他指标:还有一些其他的指标和变量,如相对强弱指标(SK和SD)、价格波动指标(cxh29)等,可以用来辅助判断市场走势。
综合以上分析,我们可以根据买入信号和卖出信号来进行交易决策。但需要注意的是,该指标较为复杂,操作起来可能需要一定的经验和技巧。建议在实际交易中,结合其他技术分析工具和资金管理策略,进行综合判断和决策。同时,也建议在模拟交易中进行测试和验证,以提高交易的成功率和风险控制能力。
源码:
cxh1:=1;
趋势线: ((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)-50)*1.032+50),COLORRED;
cxh2:=(2*CLOSE+HIGH+LOW+OPEN)/5;
cxh3:=LLV(LOW,34);
cxh4:=HHV(HIGH,34);
SK: EMA((cxh2-cxh3)/(cxh4-cxh3)*100,13)*cxh1,colorwhite;
SD: EMA(SK,2),coloryellow;
cxh5:=EMA(CLOSE,12)-EMA(CLOSE,26);
cxh6:=EMA(cxh5,9);
cxh7:=cxh1*CLOSE*1.236<MA(CLOSE,60);
cxh8:=CLOSE/REF(CLOSE,1)>1.021;
cxh9:=(HIGH-CLOSE)*1.36<=CLOSE-OPEN;
cxhA:=(MA(CLOSE,120)-CLOSE)/CLOSE*100;
cxhB:=ABS(cxh5-cxh6);
cxhC:=STD(CLOSE,90)*10;
cxhD:=COUNT((REF(CLOSE,15)-CLOSE)/CLOSE*100>45,5);
买:IF( cxh1*cxh7 AND cxh8 AND cxh9 AND cxhC<25 AND CLOSE<8 AND cxhA<114 AND cxhB<=0.23*40,55,0),colorred;
cxhE:=SLOPE(CLOSE,40);
cxhF:=COUNT((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<-0.098,90);
cxh10:=(MA(CLOSE,120)-CLOSE)/CLOSE*100;
cxh11:=STD(CLOSE,63)*10;
cxh12:=(MA(CLOSE,76)-MA(CLOSE,13)/3);
cxh13:=MA((CLOSE-cxh12)/cxh12,1);
cxh14:=MA(CLOSE,5);
cxh15:=MA(CLOSE,10);
cxh16:=MA(CLOSE,20);
cxh17:=MA(CLOSE,30);
cxh18:=MA(CLOSE,60);
cxh19:=MA(CLOSE,150);
cxh1A:=MA(CLOSE,250);
cxh1B:=VOL/CAPITAL*100;
cxh1C:=(CLOSE-cxh1A)/cxh1A*100;
cxh1D:=(CLOSE/REF(CLOSE,1)-1)*100;
cxh1E:=PWINNER(1,CLOSE);
cxh1F:=IF(cxh1>0.75 AND cxh1<0.901,0.618,1);
牛: IF(cxh14>cxh15 AND cxh15>cxh16 AND cxh16>cxh17 AND cxh16>cxh18 AND cxh19>cxh1A AND (cxh1E>=0.9 OR cxh1E>0.76 AND cxh1E<0.901 AND cxh1D>5 AND cxh1B>5) AND cxh1D>1.8 AND cxh1C<40 AND CLOSE>3 AND (CLOSE-cxh18)/cxh18<0.25 AND cxh1B<=6 AND cxh4*cxh1B>=1 AND CLOSE<18.5,35,0), colorf00f00;
cxh20:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
cxh21:=(MA(CLOSE,48)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
cxh22:=cxh1*(MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,48)+MA(CLOSE,96))/4;
cxh23:=cxh1*MA(CLOSE,250);
cxh24:=MA(CLOSE,125);
cxh25:=CLOSE/MA(CLOSE,3)>=1.05 AND CLOSE=HHV(CLOSE,3) AND MA(VOL,2)/MA(VOL,40)>=3 AND MA(VOL,2)=HHV(MA(VOL,2),3) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
cxh26:=REF(CLOSE,1);
cxh27:=SMA(MAX(CLOSE-cxh26,0),5,1)/SMA(ABS(CLOSE-cxh26),5,1)*100;
cxh28:=cxh1*COUNT(cxh27<25,20)>=1;
cxh29:=(HIGH-LOW)/HIGH*100+(CLOSE-cxh26)/cxh26*100;
cxh2A:=EMA(MA(cxh29,41),6);
cxh2B:=cxh2A>LLV(cxh2A,6)*1.02 AND REF(cxh2A,1)<REF(LLV(cxh2A,6),1)*1.02 AND LLV(cxh2A,29)=LLV(cxh2A,6);
cxh2C:=cxh1*LLV(LOW,6)=LLV(LOW,41) AND LLV(LOW,6)<HHV(LOW,41)*71/100;
cxh2D:=HIGH>LOW*1.033;
涨势确立: cxh1*(cxh2C>0 AND cxh2D*16+81.5)*cxh1,Color80FFFF ;
买入:IF(CROSS(趋势线,21),50,18.5),linethick1,coloraaa0ff;
卖出:IF(CROSS(87,趋势线),60,81.5 ),colorFFAA00;
DRAWTEXT(cxh2C>0 AND cxh2D,88,'↑'),colorwhite;
cxh2E:=IF(CROSS(SK,SD),25,18.5);
cxh2F:=IF(CROSS(SD,SK),75,81.5);
卖线: cxh2F, colorwhite;
买线: cxh2E,colorred;
cxh13<0.06*(-10)+81.5,colorwhite;
cxh30:0-SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*5;
STICKLINE(cxh30<-2,0,cxh30,1.5,1);
drawtext(买入>cxh2E,61,'短买'),coloraaaaff;
drawtext(卖出<cxh2F,58,'短卖'),colorffaa00;
drawtext(买>1.0,65,'长买'),colorred;
drawtext(牛>1.0,40,'长牛'),colorf00f00;
{程序化交易 www.cxh99.com }
{程序化交易 www.cxh99.com }
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容