使用的pel语言引用python,回测中,实际反手的位置是在下面箭头处,即收盘处,但代码里写的是价格小于黄线价格即做空,也就是左上的箭头处做空,为什么回测反手位置与代码不一致呢?
我的代码如下:
KD:=holding<=0 and CLOSE>=RenkoMaxValue;
KK:=holding>=0 and CLOSE<=RenkoMinValue;
PD:=holding>0 and CLOSE<=RenkoMinValue;//RenkoMinValue即黄线数据
PK:=holding<0 and CLOSE>=RenkoMaxValue;