全部 智大领峰 TBQuant功能 TBL语言 TB开户 问答专区 高手圈 其他
旗转TBquant编写的问题
wz1230 分享到
2023-06-05 09:23

vars

numeric minpoint;

numeric trend;

numeric callback;

numeric bars;

numeric hh;

numeric ll;

numeric myentryprice;

numeric stoploss;

numeric takeprofit;

numeric h1;

numeric l1;

numeric h2;

numeric l2;

numeric initialstop;

numeric daytradecounter;

//series



Events

  OnBar(ArrayRef<Integer> indexs)

     minpoint=minmove*pricescale;

if(date!=date[1])

{

          trend=0;

          callback=0;

          bars=0;

          hh=high;

          ll=low;

          daytradecounter=0;

}

 else

   {

        bars=bars+1;

        hh=max(hh,high[1]);

        ll=min(ll,low[1]);

        }

if(trend==0)


cai446449

vars

numeric minpoint;


numeric trend;


numeric callback;


numeric bars;


numeric hh;


numeric ll;


numeric myentryprice;


numeric stoploss;


numeric takeprofit;


numeric h1;


numeric l1;


numeric h2;


numeric l2;


numeric initialstop;


numeric daytradecounter;


//series






Events


 OnBar(ArrayRef<Integer> indexs)

 {


    minpoint=minmove*pricescale;


if(date!=date[1])


{


         trend=0;


         callback=0;


         bars=0;


         hh=high;


         ll=low;


         daytradecounter=0;


}


else


  {


       bars=bars+1;


       hh=max(hh,high[1]);


       ll=min(ll,low[1]);


       }


//if(trend==0)

}

2023-06-05 09:26
cai446449

不清楚您的逻辑,如果只是编译通过的话onbar域少一对括号,加上就行了

2023-06-05 09:27
wz1230

谢谢

2023-06-05 14:16
您未登录,请先 登录注册 后发表评论
顶部