金字塔趨勢(shì)盤(pán)整指標(biāo)[金字塔模型]
相關(guān)標(biāo)簽:盤(pán)整 指標(biāo),如何區(qū)分趨勢(shì)和盤(pán)整,股票縮量盤(pán)整,低位盤(pán)整,盤(pán)整,盤(pán)整背馳的三種情況,盤(pán)整是什么意思,盤(pán)整后必漲的k線圖解,盤(pán)整突破識(shí)別,
模型策略源碼:
ADX:
runmode:0;
input:p(14,2,100,10);
input:m(6,1,100,10);
tr1 := sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),p);
hd := high-ref(high,1);
ld := ref(low,1)-low;
dmp:= sum(if(hd>0 and hd>ld,hd,0),p);
dmm:= sum(if(ld>0 and ld>hd,ld,0),p);
pdi:= dmp*100/tr1;
mdi:=dmm*100/tr1;
adx: ma(abs(mdi-pdi)/(mdi+pdi)*100,m);
input:p(14,2,100,10);
input:m(6,1,100,10);
tr1 := sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),p);
hd := high-ref(high,1);
ld := ref(low,1)-low;
dmp:= sum(if(hd>0 and hd>ld,hd,0),p);
dmm:= sum(if(ld>0 and ld>hd,ld,0),p);
pdi:= dmp*100/tr1;
mdi:=dmm*100/tr1;
adx: ma(abs(mdi-pdi)/(mdi+pdi)*100,m);
市場(chǎng)效率:
runmode:0;
input:length(10);
direction:=abs(close-ref(close,length));
volatility:=sum(abs(close-ref(close,1)),length);
mk:direction/volatility;
input:length(10);
direction:=abs(close-ref(close,length));
volatility:=sum(abs(close-ref(close,1)),length);
mk:direction/volatility;
市場(chǎng)褶皺:
runmode:0;
input:length(10);
direction:=abs(close-ref(close,length));
volatility:=hhv(high,length)-llv(low,lenth);
ck:direction/volatility;
input:length(10);
direction:=abs(close-ref(close,length));
volatility:=hhv(high,length)-llv(low,lenth);
ck:direction/volatility;
{別忘了將本網(wǎng)告訴您身邊的朋友,向朋友傳達(dá)有用資料,也是一種人情,你朋友會(huì)感謝你的。}
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容