最近准备把图表的改成后台程序化交易
请教
如何在后台实现反手啊
图表是这样写的
sellshort(pk,holding,thisclose);
buy( kd and holding<=0 ,1,thisclose);
sell(pd,holding,thisclose);
BUYSHORT(kk and holding>=0 ,1,thisclose );
改成后台
sellshort(pk,1,thisclose);
buy( kd and tholding<=0 ,1,thisclose);
sell(pd,1,thisclose);
BUYSHORT(kk and tholding>=0 ,1,thisclose );
在模拟测试的时候平仓没有问题 开仓开不出来
请各位大虾指教