求程序糾錯(cuò) [金字塔]
- 咨詢內(nèi)容:
收盤價(jià)大于50根K線的最高價(jià)開多單,小于
50根K線的最小價(jià)開空單回抽17個(gè)點(diǎn)平倉,不會(huì)開單求程序糾錯(cuò)
input:cc(50,10,150,5);
h_1:=hhv(h,enterbars+1);l_1:=llv(l,enterbars+1);hh:=hhv(h,cc);ll:=llv(l,cc);
kd:=c>hh;kk:=c<ll;
buy(kd and holding=0,1,market);buyshort(kk and holding=0,1,market);
if l<h_1-17 then sell(1,0,market);if h>l_1+17 then sellshort(1,0,market); - 金字塔客服:
input:cc(50,10,150,5);
h_1:=hhv(h,enterbars+1);
l_1:=llv(l,enterbars+1);
hh:=hhv(h,cc);
ll:=llv(l,cc);
kd:=h>ref(hh,1);
kk:=l<ref(ll,1);if h>l_1+17 then sellshort(1,0,market);
buy(kd and holding=0,1,market);
if l<h_1-17 then sell(1,0,market);
buyshort(kk and holding=0,1,market);
- 用戶回復(fù): 感謝無所不能的版主
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容