
等级: 标准版
- 注册:
- 2023-2-16
- 曾用名:
|
麻烦老师给改成图表交易,谢谢。h1:ref(hhv(h,3),1);
l1:ref(llv(l,10),1);
r1:(c-h1)/h1<-0.005;
r2:(c-l1)/l1>0.015;
if r1 then tbuy(1,2,lmt,c-1*mindiff);
if r2 then tbuyshort(1,2,lmt,c+1*mindiff);
以下是我自己改的,不能用。
input:ss(1,1,100,1);//参数设置
h1:ref(hhv(h,3),1);
l1:ref(llv(l,3),1);
r1:(c-h1)/h1<-0.005;
r2:(c-l1)/l1>0.005;
手数:=ss;
if r1 then buy(1,2,LIMITR,c-1*mindiff);
if r2 then SELL(1,2,LIMITR,c+1*mindiff);
if r2 then buyshort(1,2,LIMITR,c+1*mindiff);
if r1 then SELLSHORT(1,2,LIMITR,c-1*mindiff);
改完麻烦老师测试一下,自己摸索好几天还是搞不定,感谢。
|
|