以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 请编写一个移动止盈的程序 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=61852) |
-- 作者:lsg2005616 -- 发布时间:2014/2/20 11:44:17 -- 请编写一个移动止盈的程序 1.当盈利10点开始起动程序 2.如果从最高价回撤达到最高盈利的百分之50,就止盈
|
-- 作者:jinzhe -- 发布时间:2014/2/20 13:17:04 -- hh:=hhv(h,enterbars+1);//开仓后最高价 nn:=hh-enterprice;//开仓后盈利最高点 nn1:=h-enterprice;//当前盈利点数 if nn1>10*mindiff and nn1<=0.5*nn and enterbars>0 then sell(holding>0,0,market);//止损语句 [此贴子已经被作者于2014/2/20 13:17:19编辑过]
|