以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- [原创]帮助文华改金字塔 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=87305) |
-- 作者:hksl1023 -- 发布时间:2015/11/15 21:29:15 -- [原创]帮助文华改金字塔 HIGH>=UPPERBAND&&TIME>=1005&&TIME<=1454&&COUNT(BARSBK=1||BARSSK=1,N99)<1&&REF(ADX,1)>20,BPK; 注释:BARSBK 上一次买开信号位置 BARSSK 上一次卖开信号位置 BKPRICE 返回数据合约最近一次买开信号价位。 SKPRICE 返回数据合约最近一次卖开信号价位 CLOSEMINUTE 返回K线开始时间距离收盘前的分钟数 |
-- 作者:jinzhe -- 发布时间:2015/11/16 9:04:51 -- 请问: UPPERBAN和LOWERBAND是什么意思? |
-- 作者:hksl1023 -- 发布时间:2015/11/16 18:53:49 -- 那是我的语句条件,类似boll里的上下轨道 |
-- 作者:jinzhe -- 发布时间:2015/11/17 8:53:28 -- if HIGH>=UPPERBAND and TIME>=100500 and TIME<=145400 and COUNT(typebar(1,1)=1 or typebar(1,3)=1,N99)<1 and REF(ADX,1)>20 then begin sellshort(1,0,market); buy(holding=0,1,market); end if LOW<=LOWERBAND and TIME>=100500 and TIME<=145400 and COUNT(typebar(1,1)=1 or typebar(1,3)=1,N99)<1 and REF(ADX,1)>20 then begin sell(1,0,market); buyshort(holding=0,1,market); end if L<=enterprice*(1-0.005) and holding>0 then sell(1,0,market); if H>=enterprice*(1+0.005) and holding<0 then sellshort(1,0,market); if time0>=timetot0(closetime(0))-60 then begin sellshort(1,0,market); sell(1,0,market); end |