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

求老师帮忙

作者:金字塔 来源:cxh99.com 发布时间:2014年11月04日
  • 咨询内容:

    //为什么我的后台止赢不好用,是哪里写错了?

    //如果持仓盈利大于50点则开始移动止赢
    持仓:=holding;
    持仓1:=THOLDING2;
    VARIABLE:biaoji=0;
    VARIABLE:zuigao=0;
    VARIABLE:zuidi=0;
    if h-tenterprice>50 and tbuyholding(0)>0 and biaoji=0 then begin
         zuigao:=HIGH;
         biaoji:=1;
    end
    if HIGH>zuigao and tbuyholding(0)>0 then zuigoa:=HIGH;
    if LOW<zuigao-1 and tbuyholding(0)>0 then begin
     tsell(1,0,mkt);
     biaoji:=0;
    end
    if tenterprice-l>50 and TSELLHOLDING(0)>0 and biaoji=0 then begin
     zuidi:=LOW;
     biaoji:=1;
         end
     if LOW<zuidi and TSELLHOLDING(0)>0 then zhuidi:=LOW;
     if HIGH>zuidi-1 and tbuyholding(0)>0 then begin
     tsellshort(1,0,mkt);
     biaoji=0;
     end

     

  • 金字塔客服:

    后台不要用图表全局变量variable

    后台的全局变量是用extgbdataset或者GLOBALVARIABLE
    GLOBALVARIABLE用法和variable一样,extgbdataset用法看函数说明,比GLOBALVARIABLE复杂一点

     

  • 用户回复:

    好的,我具体研究一下

    谢谢!

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