打印本文打印本文 关闭窗口关闭窗口

改为限价交易

作者:金字塔 来源:cxh99.com 发布时间:2015年01月07日
  • 咨询内容: 老师好.如下模型请改为限价交易.用收盘价.并加1跳开平仓.谢谢!!

    buycond:=ref(count(c>o,3)=3,1);sellcond:=ref(count(c<o,3)=3,1);
    if holding<0 and buycond  then sellshort(1,1,MARKETR); 
    if buycond  and holding=0  then  begin  buy(1,1,MARKETR); end 
    if holding>0 and sellcond  then sell(1,1,MARKETR); 
    if holding=0 and sellcond  then buyshort(1,1,MARKETR);




    SELL(((TIME>=151450) and  (HOLDING>0)),SS,MARKET);SELLSHORT(((TIME>=151450) and  (HOLDING<0)),SS,MARKET);

     

  • 金字塔客服:

    把上面的所有market和marketr都改成limitr,close+mindiff

     

  • 用户回复: 老师请帮增加移动止损功能,止损3个点.毎上升0.2止损提高0.2.要求显示移动止损线.

     

  • 网友回复: 这个用系统自带的就行,勾选显示止盈止损线
    此主题相关图片如下:1.png

     

  • 网友回复: 因用持仓同步不能用外止损呀.
打印本文打印本文 关闭窗口关闭窗口