Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:这个平仓条件是这样理解么?

1楼
nescol0928 发表于:2020/1/16 1:10:07
if holding>0 and enterbars>1 and all(ref(hhv(h,enterbars+1),1)>=enterprice*1.02 and L<=ref(hhv(h,enterbars+1),1)-(ref(hhv(h,enterbars+1),1)-enterprice)*0.4,3)=1 then begin
sell(1,oq,market);
end    //持仓大于0,且连续3根K线符合以下条件:(开仓后的最高价》开仓价*1.02 且 低价小于开仓后的最高价回吐40%)
if holding>0 and enterbars>1 and all(ref(llv(l,enterbars+1),1)<=enterprice*0.98 and h>=ref(llv(l,enterbars+1),1)+(enterprice-ref(llv(l,enterbars+1),1))*0.4,3)=1 then begin
sellshort(1,oq,market);
end   //持仓大于0,且连续3根k线符合以下条件:(开仓后的最低价《开仓价*0.98 且 高价大于开仓后的最低价回吐40%)
2楼
wenarm 发表于:2020/1/16 8:08:12

是您这样理解的。

共2 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.06055 s, 3 queries.