以文本方式查看主题

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

--  作者:指尖的旋律
--  发布时间:2016/12/19 13:38:28
--  请教老师
老师 我想表达:自动开多单以来的最高价,减去多单开仓价,大于0.8被的ATR 怎么写呢?还有对应的空单  卖出开仓价 减去卖出以来的最低价  怎么写
--  作者:jinzhe
--  发布时间:2016/12/19 13:46:00
--  

atr:=stkindi(\'\',\'atr.atr\',0,datatype);

duo:=holding>0 and hhv(h,enterbars+1)-enterprice>0.8*atr;

kong:=holding<0 and enterprice-llv(l,enterbars+1)>0.8*atr;