求程序糾錯 [金字塔]
- 咨詢內容:
收盤價大于50根K線的最高價開多單,小于
50根K線的最小價開空單回抽17個點平倉,不會開單求程序糾錯
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);
- 用戶回復: 感謝無所不能的版主
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容