Rss & SiteMap

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

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

标题:这个怎么写

1楼
pxmygl 发表于:2014/8/13 11:36:04
 

持多仓时,某K(单K)上升大于6点小于8时, 同时该K后5K内下跌大于6点(该K收盘计)时, 市价平多, 然后下跌大于8点(上述K收盘计)时开空(无需上述5K内)

2楼
jinzhe 发表于:2014/8/13 13:16:56

nn:=barlast(h-l>6 and h-l<8);

if nn<5 and nn>0 and hhv(h,nn)-l>6 then sell(1,0,market);

后面的无需上述5k是指什么情况?请截图

[此贴子已经被作者于2014/8/13 13:17:03编辑过]
3楼
pxmygl 发表于:2014/8/13 13:21:33

就是不受平多时的5K内下跌多少点约束

4楼
jinzhe 发表于:2014/8/13 13:22:29
在平多之后开空吗?
5楼
pxmygl 发表于:2014/8/13 13:26:40

nn:=barlast(h-l>6 and h-l<8);

if nn<5 and nn>0 and hhv(h,nn)-l>6 then sell(1,0,market);

nnK的收盘价?

 

6楼
jinzhe 发表于:2014/8/13 13:29:03
最高价,用收盘价会有闪烁
7楼
pxmygl 发表于:2014/8/13 13:37:19
是平多之后开空
8楼
pxmygl 发表于:2014/8/13 13:40:12

我nnK不操作(下一K才平),收盘价不是确定的吗?为什么会闪

9楼
jinzhe 发表于:2014/8/13 13:42:21

nn:=barlast(h-l>6 and h-l<8);

if nn<5 and nn>0 and hhv(h,nn)-l>6 then sell(1,0,market);

if exitbars>0 and hhv(h,exitbars+1)-l>8 then buyshort(holding=0,1,market);

10楼
pxmygl 发表于:2014/8/13 14:00:56

nn是否包含大于6的那1K

共36 条记录, 每页显示 10 条, 页签: [1] [2][3][4]


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