絕妙主圖指標(biāo)公式 趨勢(shì)軌道[其他軟件公式]
相關(guān)標(biāo)簽:獲利線指標(biāo)公式 、 百日地量指標(biāo)公式 、 價(jià)值中樞指標(biāo)公式 、 k線指標(biāo)公式 、 金鉆指標(biāo)公式 、 通達(dá)信軌道線指標(biāo)公式 、 一根線的金盾指標(biāo)公式 、 精準(zhǔn)線主圖指標(biāo)公式 、 大道線主圖指標(biāo)公式 、 主力成本線指標(biāo)公式 、 買入趨勢(shì)線指標(biāo)公式 、 大道七線指標(biāo)公式 、
?
{絕妙飛狐主圖 趨勢(shì)軌道}覺得好的幫我頂頂,(附件為主圖,未破解;源碼為破解版本,懇求指標(biāo)高手改為同花順版本)趨勢(shì)軌道 副圖-選股
input:n(30,2,300),n1(90,2,300);
fh:=forcast(h,n);
fl:=forcast(l,n);
kh:=slope(h,n);
kl:=slope(l,n);
th:=0;
tl:=0;
for i=0 to n-1 do begin
th:=th+abs(ref(h,i)-(fh-kh*i));
tl:=tl+abs(ref(l,i)-(fl-kl*i));
end;
stdph:=th/n;
stdpl:=tl/n;
up:fh+2*stdph+kh,shift1,colorff9900,linedot;
dn:fl-2*stdpl+kl,shift1,colorff9900,linedot;
mid:0.5*(up+dn),shift1,,colorff9900,linethick1;
fh1:=forcast(h,n1);
fl1:=forcast(l,n1);
kh1:=slope(h,n1);
kl1:=slope(l,n1);
th1:=0;
tl1:=0;
for i=0 to n1-1 do begin
th1:=th1+abs(ref(h,i)-(fh1-kh1*i));
tl1:=tl1+abs(ref(l,i)-(fl1-kl1*i));
end;
stdph1:=th1/n1;
stdpl1:=tl1/n1;
up1:fh1+2*stdph1+kh1,shift1,coloryellow,linedot;
dn1:fl1-2*stdpl1+kl1,shift1,coloryellow,linedot;
mid1:0.5*(up1+dn1),shift1,,coloryellow;
weight:if(stktype=0 or v=0,(h+l+c)/3,0.01*amount/v),circledot,colorffffff;
參考:ma(c,2),shift1,linethick2,colormagenta;
?
公式導(dǎo)入教程: 【通達(dá)信公式源碼導(dǎo)入方法教程】 【同花順公式源碼導(dǎo)入方法教程】 【大智慧新一代公式源碼導(dǎo)入方法教程】
?
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 或微信:cxhjy888 進(jìn)行 有償收費(fèi) 編寫!(注:由于人數(shù)限制,QQ或微信請(qǐng)選擇方便的一個(gè)聯(lián)系我們就行,謝謝您!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容