Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共3 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:获利20跳,触发移动止损,怎么写

1楼
qq代人发帖 发表于:2017/8/16 11:26:40
请教一下:出场条件,1、如果单子获利20跳,触发移动止损,最高点回测20个点出场。2、行情如果没有触发移动止损,亏损20跳也固定出场。3、单子获利40个点也直接出场。
这样的出场表达要如何写,谢谢
2楼
pyd 发表于:2017/8/16 11:30:26

hh:=hhv(c,enterbars+1);
if hh-enterprice>=20*mindiff and hh-c>=20 and holding>0 then sell();//回撤止盈
if hh-enterprice>=40 and holding>0 then sell(); //盈利40点止盈
if enterprice-c>=20*mindiff and holding>0 then sell();//止损

[此贴子已经被作者于2017/8/16 11:36:55编辑过]
3楼
332046997 发表于:2017/8/16 11:40:19
谢谢
共3 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.01563 s, 3 queries.