求助:语句写法
作者:金字塔 来源:cxh99.com 发布时间:2015年01月29日
- 咨询内容:
多单情况下,出现一根20点的大阳线,在之后的6根k线内回落到那根大阳线的(high-low)/2位置平仓,怎么写?
- 金字塔客服:
nn:=barslast(c-o>20*mindiff)+1;
if nn<=6 and close<=(ref(h,nn)-ref(l,nn))/2 then 平仓语句;
- 用户回复:
这个不行啊,会在大阳线出来的那一根收盘价就平了
此主题相关图片如下:无标题.jpg
我的意思是像下面这根大阴线出来之后,6根k线内high碰到大阴线的(high+low)/2就平仓,就像这大阴线后的第三根的high就触碰到了
- 网友回复:
nn:=barslast(c-o>20*mindiff)+1;
if nn<=6 and n>1 and close<=(ref(h,nn)-ref(l,nn))/2 then 平仓语句;