
等级: 新手上路
- 注册:
- 2022-11-29
- 曾用名:
|

楼主 |
发表于 2022-12-15 09:56
|
显示全部楼层
交易策略公式://#DAY
MID26DAY:="MA.MA1#DAY"(26)+CLOSE/26-"CY.CC#DAY"/26;
QIUHE:=0;
FOR i=1 to 25 DO QIUHE:=(REF("CY.CC#DAY",i*240/60)-MID26DAY)*(REF("CY.CC#DAY",i*240/60)-MID26DAY)+QIUHE;
QIUHE:=QIUHE+(CLOSE-MID26DAY)*(CLOSE-MID26DAY);
STD26DAY:=SQRT(QIUHE/25);
UPPER26DAY:=MID26DAY+2*STD26DAY;
LOWER26DAY:=MID26DAY-2*STD26DAY;
//√1 布林线1 买点:收盘>MID+卖反 卖点:LOWER跌
B:=CLOSE>MID26DAY AND LOWER26DAY>"BOLL.LOWER##DAY";
S:=LOWER26DAY<"BOLL.LOWER##DAY";
开多:BUY(B AND HOLDING=0,100%,LIMITR,CLOSE);
平多:SELL(S,100%,LIMITR,CLOSE);
//当前持仓:HOLDING,COLORGRAY,LINETHICK0;
//当前资产:ASSET,NOAXIS,COLORGRAY; |
|