
等级: 新手上路
- 注册:
- 2024-6-15
- 曾用名:
|

楼主 |
发表于 2024-8-5 11:12
|
显示全部楼层
cond1:c>ma(close,20);
cond3:c<ma(close,20);
cond2:if stkindi('','A.cond1',0,5,0) and close>ma(close,20) then buy(1,1,marketr);
if close<ma(close,20) then sell(1,holding,marketr);
if stkindi('','A.cond3',0,5,0) and close<ma(close,20) then sell(1,1,marketr);
if close>ma(close,20) then buy(1,holding,marketr);
公式里已经加上5分钟数据了,公式也能保存成功,是不是条件没设定好啊,我记录的是5分钟收盘价大于20日均线就买入,但实际公式是不是要突破均线才能买入啊,如果那样的话,那怪不得没有触发,因为1小时收盘价大于20日均线的情况下,5分钟肯定已经大于了,所以就没法触发突破的情况。如果这样的话,公式是不是要调整下大于的情况。然后又不要一直触发这种条件 |
|