紅財神均線 公式 指標(biāo) 源碼[其他軟件公式]
指標(biāo)代碼分析及使用建議:
這段代碼主要是針對股票K線圖的技術(shù)指標(biāo)進(jìn)行計算并進(jìn)行可視化展示。其中包括MA5、MA10、MA20、MA60、MA120等多條移動平均線,以及ZIG指標(biāo)、KDJ指標(biāo)、量比等。
具體來說,CXH3-CXH7計算了一個綜合的相對強(qiáng)度指標(biāo),并通過EMA和HHV/LVV函數(shù)進(jìn)行平滑和極值計算。CXH8-CXHA部分則是通過判斷價格的相對位置和KDJ指標(biāo)的數(shù)值進(jìn)行信號判斷,給出了底部信號和大資金活動信號。CXHE-CXH1C部分則是通過一些復(fù)雜的公式計算大筆成交信號。
建議在使用該指標(biāo)前,先根據(jù)自己的需求和投資策略進(jìn)行適當(dāng)?shù)膮?shù)調(diào)整和組合。同時,在具體的操作中,需要結(jié)合其他信息和市場情況進(jìn)行綜合判斷,避免盲目追隨指標(biāo)信號。
?
?
源碼:
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,1) ;
DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.01,2);
CXH3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
CXH4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
CXH5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
CXH6:=(CXH3+CXH4+CXH5)/3;
CXH7:=EMA(CXH6,5);
ZB:=EMA(EMA(CXH3,5),5)*3, COLORSTICK;
CXH8:=IF(CXH6<=-20,10,0);
CXH9:=HHV(CXH8,10);
CXHA:=IF(CXH9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
K:=EMA(CXH7,5)*2, , COLORFF00FF;
D:=EMA(K,5), , COLORWHITE;
J:=K*3-D*2, ,COLORYELLOW;
CXHB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;
HS:=VOL/CAPITAL*100, , COLORGREEN;{http://www.kzuj.com.cn}
DRAWTEXT(CXH8=10 AND FILTER(CXH8=10,5),LOW*0.93,'接近底部') COLORMAGENTA;
DRAWTEXT(CXHA=20,LOW*0.95,'底部') COLORYELLOW;CXHE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
CXHF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
CXH10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
CXH11:=CXHF<REF(CXH10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(CXH11 AND COUNT(CXH11,30)=1,LOW*0.95,'大資金活動'),LINETHICK1,COLORFF00FF;
CXH12:=(HIGH+LOW+CLOSE)/3;
CXH13:=(CXH12-MA(CXH12,14))/(0.015*AVEDEV(CXH12,14));
CXH14:=(CXH12-MA(CXH12,70))/(0.015*AVEDEV(CXH12,70));
CXH15:=IF(CXH13>=150 AND CXH13<200 AND CXH14>=150 AND CXH14<200,10,0);
CXH16:=IF(CXH13<=-150 AND CXH13>-200 AND CXH14<=-150 AND CXH14>-200,-10,CXH15);
CXH17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
CXH18:=100-ABS(CXH17);
CXH19:=IF(CXH18<90,CXH18,100);
CXH1A:=IF(CXHE>0,CXHE,0);
CXH1B:=IF(CXH14>=200 AND CXH13>=150,15,IF(CXH14<=-200 AND CXH13<=-150,-15,CXH16))+60;
CXH1C:=CXH1A>48 AND CXH1B>60 AND CXH19<100;
DRAWTEXT(CXH1C AND COUNT(CXH1C,30)=1,LOW*0.95,'大筆成交') COLORWHITE;
?
公式導(dǎo)入教程: 【通達(dá)信公式源碼導(dǎo)入方法教程】 【同花順公式源碼導(dǎo)入方法教程】 【大智慧新一代公式源碼導(dǎo)入方法教程】
?
有思路,想編寫各種指標(biāo)公式,交易模型,選股公式,還原公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 或微信:cxhjy888 進(jìn)行 有償收費(fèi) 編寫!(注:由于人數(shù)限制,QQ或微信請選擇方便的一個聯(lián)系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)
(怎么收費(fèi),代編流程等詳情請點(diǎn)擊查閱!)
(注:由于人數(shù)限制,QQ或微信請選擇方便的一個聯(lián)系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容