以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  后台程序化菜鸟求教  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=60381)

--  作者:celuezuhe
--  发布时间:2013/12/27 9:29:36
--  后台程序化菜鸟求教
最近准备把图表的改成后台程序化交易
请教
如何在后台实现反手啊
图表是这样写的
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 );
在模拟测试的时候平仓没有问题 开仓开不出来
请各位大虾指教


--  作者:jinzhe
--  发布时间:2013/12/27 9:34:49
--  

后台根本就不是这么回事,用图表下单语句放个实际持仓判断不是后台交易

 

http://www.weistock.com/bbs/dispbbs.asp?boardid=16&Id=55132

编程教程高级篇,后台编写有详细的解释,