均線角度macd指標(biāo) 公式 源碼[其他軟件公式]
指標(biāo)公式源碼分析及使用參考說明:
?
源碼:
m1:=ema(c,89);
m2:=ema(c,26);
m3:=ema(c,12);
m4:=ema(c,233);
a1:=atan((m1/ref(m1,1)-1)*100)*100;
a2:=atan((m2/ref(m2,1)-1)*100)*100;
a3:=atan((m3/ref(m3,1)-1)*100)*100;
a4:=atan((m4/ref(m4,1)-1)*100)*100;
ang1:ema(a1,m),,COLORGREEN;{http://m.kzuj.com.cn}
ang2:ema(a4,m),coloraa00aa;
DEA:ema(a2,m),coloryellow;
DIFF:ema(a3,m),COLORwhite;
partline(ang1>0,ang1),colorred;
//partline(between(ang1,-3,3),ang1),coloraa11aa;
macd:1.5*(DIFF-DEA),colorstick;
b1:=cross(0,dea);
b2:=cross(dea,0);
b3:=cross(0,macd);
b4:=cross(macd,0);
b5:=count(last(macd>0,2,4) and b3,barslast(b1));
b6:=llv(dea,barslast(b3))>llv(dea,barslast(b1)) or llv(diff,barslast(b3))>llv(diff,barslast(b1));
b7:=l<=llv(l,sumbars(b1,2))*1.001 and ref(ang1,llvbars(l,sumbars(b1,2)))<-4;
b8:=llv(macd,barslast(b3))>llv(macd,sumbars(b1,2));
b9:=llv(dea,barslast(b3))>llv(dea,sumbars(b1,2)) or llv(diff,barslast(b3))>llv(diff,sumbars(b1,2));
頂背:(b5>1 and b6 and b7) or (b5<=1 and b7 and b8 and b9),linethick0;
stickline(頂背,dea,diff,5,0),colorred;
c1:=count(last(macd<0,2,4) and b4,barslast(b2));
c2:=hhv(dea,barslast(b4))<hhv(dea,barslast(b2)) or hhv(diff,barslast(b4))<hhv(diff,barslast(b2));
c3:=h>=hhv(h,sumbars(b2,2))*0.999 and ref(ang1,hhvbars(h,sumbars(b2,2)))>4;
c4:=hhv(macd,barslast(b4))<hhv(macd,sumbars(b2,2));
c5:=hhv(dea,barslast(b4))<hhv(dea,sumbars(b2,2)) or hhv(diff,barslast(b4))<hhv(diff,sumbars(b2,2));
底背:(c1>1 and c2 and c3) or (c1<=1 and c3 and c4 and c5),linethick0;
stickline(底背,dea,diff,5,0),COLORGREEN;{http://m.kzuj.com.cn}
{程序化交易 m.kzuj.com.cn }
?
公式導(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)單備注下您的需求,否則無法通過。謝謝您!)
(怎么收費(fèi),代編流程等詳情請(qǐng)點(diǎn)擊查閱!)
(注:由于人數(shù)限制,QQ或微信請(qǐng)選擇方便的一個(gè)聯(lián)系我們就行,加好友時(shí)請(qǐng)簡(jiǎn)單備注下您的需求,否則無法通過。謝謝您!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容