等级: 免费版
- 注册:
- 2021-7-30
- 曾用名:
|

楼主 |
发表于 2022-12-29 13:30
|
显示全部楼层
1.数据没有变化
2.后台代码见下
3.设置见下
4.数据已经连续使用一年
ss:=intpart(20000/(c*multiplier*taccount(41)));
a10:=jdma20>0.62 and jdupper>0 ;
a11:=jdma2015f>2.4 and jdupper15f>4.2 and jdma515f>4.2 {and abs((ma515-ma2015)/ma2015)*100<=0.62} ;
a20:=a10 and a11;
a21:=jdma515f<=0 and jdma20<=0;
a22:=c<ref(l,tenterbars+1) and l<ma20;
tbuy(a20 and tbuyholding(1)=0 ,ss ,mkt);
if c<tenterprice then tsell(a22 ,tbuyholding(1) ,mkt);
if c<tenterprice then tsell(a21 ,tbuyholding(1) ,mkt);
if c>tenterprice then tsell(a21 ,tbuyholding(1) ,mkt);
b10:=jdma20<-0.62 and jdlower<-0 ;
b11:=jdma2015f<-2.4 and jdlower15f<-4.2 and jdma515f<-4.2 {and abs((ma515-ma2015)/ma2015)*100<=0.62} ;
b20:=b10 and b11;
b21:=jdma515f>=0 and jdma20>=0;
b22:=c>ref(h,tenterbars+1) and h>ma20;
tbuyshort(b20 and tsellholding(1)=0 ,ss ,mkt);
if c>tenterprice then tsellshort(b22 ,tsellholding(1) ,mkt);
if c>tenterprice then tsellshort(b21 ,tsellholding(1) ,mkt);
if c<tenterprice then tsellshort(b21 ,tsellholding(1) ,mkt);
|
|