Rss & SiteMap

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

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

标题:[原创]帮助文华改金字塔

1楼
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;
LOW<=LOWERBAND&&TIME>=1005&&TIME<=1454&&COUNT(BARSBK=1||BARSSK=1,N99)<1&&REF(ADX,1)>20,SPK;
L<=BKPRICE*(1-0.005),SP;
H>=SKPRICE*(1+0.005),BP;
CLOSEMINUTE<=1,BP;
CLOSEMINUTE<=1,SP;
AUTOFILTER;

注释:BARSBK 上一次买开信号位置

         BARSSK 上一次卖开信号位置

         BKPRICE 返回数据合约最近一次买开信号价位。

         SKPRICE  返回数据合约最近一次卖开信号价位

         CLOSEMINUTE  返回K线开始时间距离收盘前的分钟数

2楼
jinzhe 发表于:2015/11/16 9:04:51

请问:

UPPERBANLOWERBAND是什么意思?

3楼
hksl1023 发表于:2015/11/16 18:53:49
那是我的语句条件,类似boll里的上下轨道
4楼
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
共4 条记录, 每页显示 10 条, 页签: [1]


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