等级: 专业版
- 注册:
- 2023-2-16
- 曾用名:
|
楼主 |
发表于 2023-12-18 09:10
|
显示全部楼层
另附:策略代码,费率设置条件:
//1、============变量定义====================
WARNING_DISABLE:11;
INPUT:M(75,5,100,5),SD(50,5,50,5);
//SS:=INTPART(100000/(C*MULTIPLIER*TACCOUNT(41)));//1;//
SS:=INTPART(100000/(C*10*0.12));//1;//
MID:MA(C,M);
UPPER:MID+(SD/10)*STD(C,M);
LOWER:MID-(SD/10)*STD(C,M);
//2、======开平条件==========================
PD:=CROSS(C,UPPER);
KK:=CROSS(C,UPPER);
PK:=CROSS(LOWER,C);
KD:=CROSS(LOWER,C);
//3、==========固定买卖指令段===============
IF HOLDING<0 AND PK THEN SELLSHORT(1,HOLDING,THISCLOSE);
IF HOLDING=0 AND KD THEN BUY(1,SS,THISCLOSE);
IF HOLDING>0 AND PD THEN SELL(1,HOLDING,THISCLOSE);
IF HOLDING=0 AND KK THEN BUYSHORT(1,SS,THISCLOSE);
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?
x
|