代码可以设置止盈止损吗? [金字塔]
- 咨询内容:
	
	比如说现在下了一手股指多单,我想设置3个点止损,5个点止盈,效果想和软件里设置的一样。 有代码可以实现吗? 
-  金字塔客服:
	
	图表: if holding>0 and c-enterprice>5*mindiff then sell(1,0,market);//多头止盈 if holding>0 and enterprice-c>3*mindiff then sell(1,0,market);//多头止损 if holding<0 and enterprice-c>5*mindiff then sellshort(1,0,market);//空头止盈 if holding<0 and c-enterprice>3*mindiff then sellshort(1,0,market);//空头止损 
-  用户回复:
	
	好的。谢谢 
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240  进行 有偿 编写!(不贵!点击查看价格!)
                        
相关文章
- 
                        没有相关内容
                       

 
                     会员登录/注册
会员登录/注册