以文本方式查看主题

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

--  作者:muxia5568
--  发布时间:2016/6/13 9:54:42
--  请老师帮助编写

请老师帮助编写;

1;卖开仓后,ma5下穿ma15后又在15根K线内上穿ma15,且ma15大于前一根ma15,KD金叉,平空。

2;ul:(upper-lower);

当根K线ul大于前一根K线ul15%.

谢谢


--  作者:jinzhe
--  发布时间:2016/6/13 10:01:53
--  

1.

if holding<0 and barslast(cross(ma15,ma5))<15 and ma15>ref(ma15,1) and cross(k,d) then sellshort(1,0,marketr);

2.

ul>ref(ul,1)*1.15


--  作者:muxia5568
--  发布时间:2016/6/13 14:49:36
--  

请教老师这句该怎么写;卖开仓后5根K线内。谢谢


--  作者:jinzhe
--  发布时间:2016/6/13 14:55:38
--  
typebar(1,3)<=5