我加載在1秒圖上應用 [金字塔]
- 咨詢內容:
我加載在1秒圖上應用,
突破半小時內最低價超過3點平多開空
突破半小時內最高價超過3點平空開多(當前時間之前的半小時內)
開倉后有大于10點的利潤并且利潤回撤30%則平倉
- 金字塔客服:
if l<ref(llv(l,30*60),1)-3 then begin
sell(1,0,market);
buyshort(holding=0,1,market);
end
if h>ref(hhv(h,30*60),1)+3 then begin
sellshort(1,0,market);
buy(holding=0,1,market);
end
if holding>0 and h-enterprice>10 and (hhv(openprofit,enterbars+1)-openprofit)/hhv(openprofit,enterbars+1)>0.3 then sell(1,0,market);
if holding<0 and enterprice-l>10 and (hhv(openprofit,enterbars+1)-openprofit)/hhv(openprofit,enterbars+1)>0.3 then sellshort(1,0,market);
- 用戶回復:
測試的時候無數據??
- 網友回復: 你切換到1秒中k線上,看看有沒有足夠多的數據
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容