短线无敌 短线王 底部吸筹组合指标 公式 源码[通达信公式]
指标代码公式说明及使用参考:
这段代码是一个量化交易策略,根据一系列指标进行交易决策。下面是对每个指标的具体解释和使用建议:
1. cxh3:吸筹指标,计算最近3个周期内底部吸筹的力度。建议观察其趋势变化,当值大于0时表示底部吸筹力度增加,可能是买入时机。
2. cxh4:先知指标,通过综合考虑收盘价和吸筹指标的变化来预测价格走势。建议观察其趋势变化,当值大于0时表示价格有上涨趋势,可能是买入时机。
3. cxh8:获利指标,计算获利的潜力。当值大于100时表示获利潜力较高,可以考虑卖出。
4. 吸筹指标和放量拉升:通过观察吸筹指标和放量拉升的交叉点来判断买入时机。
5. 趋势线:通过计算价格在一定周期内的波动幅度来判断趋势。当趋势线向上穿越10时,可能是买入信号。
6. 出手就赢:通过判断K线的变化来判断卖出时机。当K线大于7且相较前一周期有明显上升时,可能是卖出信号。
7. 建仓区:根据前一指标来判断是否处于建仓区。当值大于10时表示可以考虑建仓。
使用建议:
- 这段代码是一个量化交易策略的片段,具体的使用需要结合其他的交易规则和风险管理措施。
- 建议在实际应用之前进行回测和优化,以验证策略的有效性。
- 注意根据自己的实际情况调整指标参数和周期长度。
- 交易决策不仅仅依赖于技术指标,还需要结合市场行情、资金管理等因素进行综合考虑。
- 建议在实盘交易中小心控制风险,避免过度依赖单一指标或信号,始终保持谨慎和理性的态度。
- 如果不确定如何使用这段代码,建议咨询专业的金融投资机构或量化交易专家的意见。
源码:
cxh2:=REF(LOW,1);cxh3:=SMA(ABS(LOW-cxh2),3,1)/SMA(MAX(LOW-cxh2,0),3,1)*100;cxh4:=EMA(IF(CLOSE*1.3,cxh3*10,cxh3/10),3);cxh5:=LLV(LOW,30);cxh6:=HHV(cxh4,30);cxh7:=IF(MA(CLOSE,58),1,0);cxh8:=EMA(IF(LOW<=cxh5,(cxh4+cxh6*2)/2,0),3)/618*cxh7;cxh9:=IF(cxh8>100,100,cxh8);STICKLINE(cxh9>-150,0,cxh9,0.1,0), COLORFF00FF;吸筹指标:(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLOR00FF00;STICKLINE(CROSS(吸筹指标,-24),100,0,1,0), COLORFFFFFF;先知: (CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100, COLORFF00FF;放量拉升:IF(CROSS(吸筹指标,-24),1,0), COLORFFFFFF;获利:STICKLINE(REF("KDJ.J",1)<0 AND "KDJ.J">0,60,0,1,0),COLOR0000FF;cxhK1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;cxhK2:=REVERSE(cxhK1);cxhK3:=SMA(cxhK1,3,1);波段王:SMA(cxhK3,3,1), COLORRED,LINETHICK2;波段鬼:SMA(波段王,2.5,1),COLORYELLOW,LINETHICK2;趋势线: 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),COLORFF6666,LINETHICK2;RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K1:SMA(RSV9,3,1);DK1:K1-REF(K1,1),COLORSTICK;出手就赢:IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,50,0), STICK,COLORYELLOW;DRAWICON(出手就赢>0,50 ,1);STICKLINE( CROSS(趋势线,10),0,73,3,0), COLOR3366FF;DRAWTEXT(IF(CROSS(趋势线,10),100,0),68,'底'),COLORWHITE ;DRAWTEXT(IF(CROSS(10,趋势线),1,0), 10,'钱'),COLOR33FFCC;DRAWTEXT(REF("KDJ.J",1)<0 AND "KDJ.J">0,50,'买'),COLORRED ;DRAWTEXT(CROSS(吸筹指标,-24),80,'底'),COLORWHITE ;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);短期底部:=LLV(OPEN,30);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=((3 * K) - (2 * D));AA10:=MA(CLOSE,10);AA12:=MA(CLOSE,12);BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);cxhB:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);cxhC:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);cxhD:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);cxhE:=(((cxhB + (2 * cxhC)) + (3 * cxhD)) / 6);cxhF:=MA(cxhE,3);STICKLINE((CROSS(J,0) AND (cxhF <= (0 - 7))),0,88,2,0),COLORBLUE;DRAWICON((CROSS(J,0) AND (cxhF <= (0 - 7))),88,9);cxhO2:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100;cxhO3:=SMA(SMA(cxhO2,3,1),3,1);cxhO4:=EMA(cxhO3,5);cxhO5:=LLV(LOW,26);cxhO6:=HHV(HIGH,34);cxhO7:=EMA((CLOSE-cxhO5)/(cxhO6-cxhO5)*4,4)*25;STICKLINE(CROSS(cxhO4,10) AND cxhO4>10,25,0,1,0),COLORYELLOW;建仓区: IF((cxhO7<10),0,20),LINETHICK3 ,COLORRED;{主图:短线无敌}JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;cxh1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));cxh2:=(REF(cxh1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));cxh3:=(REF(cxh2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));cxh4:=(REF(cxh3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));cxh5:=(REF(cxh4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));cxh6:=(REF(cxh5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));cxh7:=(REF(cxh6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));cxh8:=(REF(cxh7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));cxh9:=(REF(cxh8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));cxhA:=(REF(cxh9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));cxhB:=(REF(cxhA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));cxhC:=(REF(cxhB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));cxhD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));cxhE:=(REF(cxhD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));cxhF:=(REF(cxhE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));cxh10:=(REF(cxhF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));cxh11:=(REF(cxh10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));cxh12:=(REF(cxh11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));cxh13:=(REF(cxh12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));cxh14:=(REF(cxh13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));cxh15:=(REF(cxh14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));cxh16:=(REF(cxh15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));cxh17:=(REF(cxh16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));cxh18:=(REF(cxh17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));cxh19:=((REF(cxhD OR cxhE OR cxhF OR cxh10 OR cxh11 OR cxh12 OR cxh13 OR cxh14 OR cxh15 OR cxh16 OR cxh17 OR cxh18,1)) AND cxh1);cxh1A:=((REF(cxh1 OR cxh2 OR cxh3 OR cxh4 OR cxh5 OR cxh6 OR cxh7 OR cxh8 OR cxh9 OR cxhA OR cxhB OR cxhC,1)) AND cxhD);红色持股:cxh1 OR cxh2 OR cxh3 OR cxh4 OR cxh5 OR cxh6 OR cxh7 OR cxh8 OR cxh9 OR cxhA OR cxhB OR cxhC,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:REF(离场,1)COLOR0000FF,NODRAW;青色观望:cxhD OR cxhE OR cxhF OR cxh10 OR cxh11 OR cxh12 OR cxh13 OR cxh14 OR cxh15 OR cxh16 OR cxh17 OR cxh18,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:REF(明进场价,1),COLORFF0000,NODRAW;短买:cxh19,COLOR33AACC,NODRAW;品红离场:cxh1A,COLORFF99FF,NODRAW;急速超跌:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORFFFFFF,NODRAW;辰星线:(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(YTSL,4)+15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+11*REF(YTSL,9)+10*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7*REF(YTSL,13)+6*REF(YTSL,14)+5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YTSL,17)+2*REF(YTSL,18)+REF(YTSL,20))/211,COLOR0000FF;牵牛线:MA(CLOSE,26),COLORFF00FF;等待:=IF(MA3>辰星线,辰星线,MA3);IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK2,COLOR00FFFF;IF(辰星线>REF(辰星线,1),辰星线,DRAWNULL),LINETHICK2,COLOR0000FF;IF(辰星线<REF(辰星线,1),辰星线,DRAWNULL),COLOR00FF00;IF(牵牛线>REF(牵牛线,1),牵牛线,DRAWNULL),LINETHICK1,COLORFF00FF;IF(牵牛线<REF(牵牛线,1),牵牛线,DRAWNULL),COLOR669933;STICKLINE(ISLASTBAR AND (红色持股 OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (青色观望 OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;STICKLINE(C>=O,L,H,0,0),COLOR0000CC;STICKLINE(C<O,L,H,0,0),COLOR999900;STICKLINE(1,C,O,3.5,0),COLOR858500;STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5;STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055;STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088;STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA;STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC;STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE;STICKLINE(青色观望,CLOSE,O,2.8,0),COLOR555500;STICKLINE(青色观望,CLOSE,O,2,0),COLOR888800;STICKLINE(青色观望,CLOSE,O,1.5,0),COLORAAAA00;STICKLINE(青色观望,CLOSE,O,1,0),COLORCCCC00;STICKLINE(青色观望,CLOSE,O,0.5,0),COLOREEEE00;CO:=(C-O);STICKLINE(急速超跌,O,C-CO/2,2.8,0),COLO
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容