旗转TBquant编写的问题
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)
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)
}
不清楚您的逻辑,如果只是编译通过的话onbar域少一对括号,加上就行了
谢谢