以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 这个怎么写 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=68683) |
-- 作者:pxmygl -- 发布时间:2014/8/13 11:36:04 -- 这个怎么写 持多仓时,某K(单K)上升大于6点小于8时, 同时该K后5K内下跌大于6点(该K收盘计)时, 市价平多, 然后下跌大于8点(上述K收盘计)时开空(无需上述5K内) |
-- 作者: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编辑过]
|
-- 作者:pxmygl -- 发布时间:2014/8/13 13:21:33 -- 就是不受平多时的5K内下跌多少点约束 |
-- 作者:jinzhe -- 发布时间:2014/8/13 13:22:29 -- 在平多之后开空吗? |
-- 作者: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的收盘价?
|
-- 作者:jinzhe -- 发布时间:2014/8/13 13:29:03 -- 最高价,用收盘价会有闪烁 |
-- 作者:pxmygl -- 发布时间:2014/8/13 13:37:19 -- 是平多之后开空 |
-- 作者:pxmygl -- 发布时间:2014/8/13 13:40:12 -- 我nnK不操作(下一K才平),收盘价不是确定的吗?为什么会闪 |
-- 作者: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); |
-- 作者:pxmygl -- 发布时间:2014/8/13 14:00:56 -- nn是否包含大于6的那1K |