以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 请教问题 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=78398) |
|
-- 作者:zhhtjb -- 发布时间:2015/5/8 10:50:58 -- 请教问题 老师,请问金字塔里面我可以自己划分10分钟的时间周期吗?因为我有模型想从文华上移植过来,可是你们两个软件对10分钟的划分是不同的,有什么办法解决吗 |
|
-- 作者:jinzhe -- 发布时间:2015/5/8 11:00:21 -- http://www.weistock.com/bbs/dispbbs.asp?boardid=2&Id=6145 可以参考此链接 |
|
-- 作者:zhhtjb -- 发布时间:2015/5/8 11:30:17 -- 我填完时间后按哪个键啊 ![]() ![]() |
|
-- 作者:jinzhe -- 发布时间:2015/5/8 13:10:34 -- 点关闭,然后点确定, 再重启软件 |
|
-- 作者:zhhtjb -- 发布时间:2015/5/8 13:37:16 -- 老师,我想表达: 1.千5止损; 2.多头的盈利达到千9时,回撤(最高价-开仓价)*0.3,止盈; |
|
-- 作者:zhhtjb -- 发布时间:2015/5/8 13:39:35 --
|
|
-- 作者:jinzhe -- 发布时间:2015/5/8 13:46:26 -- if l<=0.995*enterprice and holding>0 then sell(1,0,market);
if hhv(h,enterbars+1)>enterprice*1.009 and l<=(hhv(h,enterbars+1)-(h-enterprice)*0.3) then sell(1,0,market);
|
|
-- 作者:zhhtjb -- 发布时间:2015/5/8 14:01:49 -- 老师,好像不对,每个开多信号都是当根开当根平,我是想把文华 PH:=HHV(HIGH,BARSBK); PL:=LLV(LOW,BARSSK); STOPWIN1:=PRICEHIGH-0.3*(PH-BKPRICE);//0.382参数初设值。 STOPWIN2:=PRICELOW+0.3*(SKPRICE-PL); (CLOSE<=STOPWIN1&&PRICEHIGH>BKPRICE+0.009*BKPRICE),SP; (CLOSE>=STOPWIN2&&PRICELOW<SKPRICE-0.009*SKPRICE),BP; CLOSE>=SKPRICE+SKPRICE*0.005,BP; CLOSE<=BKPRICE-BKPRICE*0.005,SP; 转化为金字塔
|
|
-- 作者:jinzhe -- 发布时间:2015/5/8 14:10:33 -- 防止当根k线平仓要多加一个条件 if l<=0.995*enterprice and holding>0 and enterbars>0 then sell(1,0,market);
if hhv(h,enterbars+1)>enterprice*1.009 and l<=(hhv(h,enterbars+1)-(h-enterprice)*0.3) and enterbars>0 then sell(1,0,market); |
|
-- 作者:zhhtjb -- 发布时间:2015/5/8 14:38:56 -- 老师,我想满足条件时,下一根的开盘开,我这样的表达有误吗? if 开多条件 or 开多条件1 then buy(1,1,market);
|