以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  [求助] 老师 ,不会写,求帮助  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=50572)

--  作者:rfgvb
--  发布时间:2013/4/2 17:00:11
--  [求助] 老师 ,不会写,求帮助
一、条件是:
已有持仓
开仓后无平仓操作的 亏损15个点就平仓

再次开仓   遵循一 操作



--  作者:jinzhe
--  发布时间:2013/4/2 17:02:56
--  

以开多仓为例:

h1:valuewhen(开仓条件,holding);

if enterprice-c>15*mindiff  and holding<>h1 then sell(1,0,thisclose);


--  作者:rfgvb
--  发布时间:2013/4/2 17:09:43
--  
谢谢