短線無(wú)敵 短線王 底部吸籌組合指標(biāo) 公式 源碼[通達(dá)信公式]
指標(biāo)代碼公式說(shuō)明及使用參考:
?
這段代碼是一個(gè)量化交易策略,根據(jù)一系列指標(biāo)進(jìn)行交易決策。下面是對(duì)每個(gè)指標(biāo)的具體解釋和使用建議:
1. cxh3:吸籌指標(biāo),計(jì)算最近3個(gè)周期內(nèi)底部吸籌的力度。建議觀察其趨勢(shì)變化,當(dāng)值大于0時(shí)表示底部吸籌力度增加,可能是買入時(shí)機(jī)。
2. cxh4:先知指標(biāo),通過(guò)綜合考慮收盤價(jià)和吸籌指標(biāo)的變化來(lái)預(yù)測(cè)價(jià)格走勢(shì)。建議觀察其趨勢(shì)變化,當(dāng)值大于0時(shí)表示價(jià)格有上漲趨勢(shì),可能是買入時(shí)機(jī)。
3. cxh8:獲利指標(biāo),計(jì)算獲利的潛力。當(dāng)值大于100時(shí)表示獲利潛力較高,可以考慮賣出。
4. 吸籌指標(biāo)和放量拉升:通過(guò)觀察吸籌指標(biāo)和放量拉升的交叉點(diǎn)來(lái)判斷買入時(shí)機(jī)。
5. 趨勢(shì)線:通過(guò)計(jì)算價(jià)格在一定周期內(nèi)的波動(dòng)幅度來(lái)判斷趨勢(shì)。當(dāng)趨勢(shì)線向上穿越10時(shí),可能是買入信號(hào)。
6. 出手就贏:通過(guò)判斷K線的變化來(lái)判斷賣出時(shí)機(jī)。當(dāng)K線大于7且相較前一周期有明顯上升時(shí),可能是賣出信號(hào)。
7. 建倉(cāng)區(qū):根據(jù)前一指標(biāo)來(lái)判斷是否處于建倉(cāng)區(qū)。當(dāng)值大于10時(shí)表示可以考慮建倉(cāng)。
使用建議:
- 這段代碼是一個(gè)量化交易策略的片段,具體的使用需要結(jié)合其他的交易規(guī)則和風(fēng)險(xiǎn)管理措施。
- 建議在實(shí)際應(yīng)用之前進(jìn)行回測(cè)和優(yōu)化,以驗(yàn)證策略的有效性。
- 注意根據(jù)自己的實(shí)際情況調(diào)整指標(biāo)參數(shù)和周期長(zhǎng)度。
- 交易決策不僅僅依賴于技術(shù)指標(biāo),還需要結(jié)合市場(chǎng)行情、資金管理等因素進(jìn)行綜合考慮。
- 建議在實(shí)盤交易中小心控制風(fēng)險(xiǎn),避免過(guò)度依賴單一指標(biāo)或信號(hào),始終保持謹(jǐn)慎和理性的態(tài)度。
- 如果不確定如何使用這段代碼,建議咨詢專業(yè)的金融投資機(jī)構(gòu)或量化交易專家的意見(jiàn)。
?
源碼:
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;吸籌指標(biāo):(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLOR00FF00;STICKLINE(CROSS(吸籌指標(biāo),-24),100,0,1,0), COLORFFFFFF;先知: (CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100, COLORFF00FF;放量拉升:IF(CROSS(吸籌指標(biāo),-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;趨勢(shì)線: 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(趨勢(shì)線,10),0,73,3,0), COLOR3366FF;DRAWTEXT(IF(CROSS(趨勢(shì)線,10),100,0),68,'底'),COLORWHITE ;DRAWTEXT(IF(CROSS(10,趨勢(shì)線),1,0), 10,'錢'),COLOR33FFCC;DRAWTEXT(REF("KDJ.J",1)<0 AND "KDJ.J">0,50,'買'),COLORRED ;DRAWTEXT(CROSS(吸籌指標(biāo),-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;建倉(cāng)區(qū): IF((cxhO7<10),0,20),LINETHICK3 ,COLORRED;{主圖:短線無(wú)敵}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;離場(chǎng):=IF(紅色持股,JRL,DRAWNULL);明離場(chǎng)價(jià):=離場(chǎng),COLORFF99FF,NODRAW;今離場(chǎng)價(jià):REF(離場(chǎng),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;進(jìn):=IF(青色觀望,JRH,DRAWNULL);明進(jìn)場(chǎng)價(jià):=進(jìn),COLOR33AACC,NODRAW;今進(jìn)場(chǎng)價(jià):REF(明進(jìn)場(chǎng)價(jià),1),COLORFF0000,NODRAW;短買:cxh19,COLOR33AACC,NODRAW;品紅離場(chǎng):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),今離場(chǎng)價(jià),今離場(chǎng)價(jià),30,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (青色觀望 OR REF(青色觀望,1)=1),今進(jìn)場(chǎng)價(jià),今進(jìn)場(chǎng)價(jià),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
?
公式導(dǎo)入教程: 【通達(dá)信公式源碼導(dǎo)入方法教程】 【同花順公式源碼導(dǎo)入方法教程】 【大智慧新一代公式源碼導(dǎo)入方法教程】
?
有思路,想編寫各種指標(biāo)公式,交易模型,選股公式,還原公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 或微信:cxhjy888 進(jìn)行 有償收費(fèi) 編寫!(注:由于人數(shù)限制,QQ或微信請(qǐng)選擇方便的一個(gè)聯(lián)系我們就行,加好友時(shí)請(qǐng)簡(jiǎn)單備注下您的需求,否則無(wú)法通過(guò)。謝謝您!)
(怎么收費(fèi),代編流程等詳情請(qǐng)點(diǎn)擊查閱!)
(注:由于人數(shù)限制,QQ或微信請(qǐng)選擇方便的一個(gè)聯(lián)系我們就行,加好友時(shí)請(qǐng)簡(jiǎn)單備注下您的需求,否則無(wú)法通過(guò)。謝謝您!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容