Params
Numeric length(30);
Numeric i(100);
Numeric lots(1);
Vars
Series<Numeric> mta;
Series<Numeric> mtb;
Numeric LRSlope;
Numeric LRAngle;
Numeric LRIntercept;
Numeric LRValue;
Numeric LRSlope1;
Numeric LRAngle1;
Numeric LRIntercept1;
Numeric LRValue1;
Numeric mt;
Begin
LinearReg(Close[1],length,0,LRSlope, LRAngle, LRIntercept, LRValue);
mta=LRSlope;
LinearReg(mta*50,length,0,LRSlope1, LRAngle1, LRIntercept1, LRValue1);
mtb=LRSlope1;
mt=mta*mtb*50;
//{
if(MarketPosition!=1 And mt>I And mta>0)
{
if(MarketPosition==-1)
BuyToCover(0,0);
Else
Buy(lots,Open);
}
if(MarketPosition!=-1 And mt>I And mta<0)
{
if(MarketPosition==1)
Sell(0,0);
Else
SellShort(lots,Open);
}
if(MarketPosition==1 and mt<0)
Sell(lots,0);
if(MarketPosition==-1 and mt<0)
BuyToCover(lots,0);
End
你这是旗舰版的公式吧?在tbq里转换一下
零基础共学六周课程都参加过了,却连函数和公式都分不清,这还怎么教...
quant?工具栏选择代码升级一下就行了
又是哪里抄来的代码?这样可不行啊
升级也没有用,还是原来的
编译显示缺少返回语句
这是公式,不是函数
我建议你真的先把基础学习一下吧...公式和函数都分不清,无证驾驶啊
老师,那到底怎么弄?我是新手
帮助中心有软件使用手册 自己学习下吧
漂亮,当大爷真爽,反正用户都是上帝,白嫖也是上帝
兄弟,你好,我喜欢白漂,你的QQ号多少?
你好,我也是新手,这个可以用通达信公式自动交易吗。请教