Rss & SiteMap

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

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

标题:老师请帮忙转一下这个代码

1楼
zhujunyu1980 发表于:2014/12/14 12:57:08
老师,下面的是文化财经的代码,麻烦可以帮我转成金字塔的吗?感谢!!!

GWG:=HV(H,M1);
GWD:=LV(L,M1);

C>GWG,BK;
C<GWD,SK;

CLOSE>SKPRICE1+N1,BP;
CLOSE<BKPRICE1-N1,SP;

(BKHIGH-BKPRICE1)>=N2 AND (BKHIGH-CLOSE)>=(BKHIGH-BKPRICE1)/3,SP;
(SKPRICE1-SKLOW)>=N2 AND (CLOSE-SKLOW)>=(SKPRICE1-SKLOW)/3,BP;

AUTOFILTER;

2楼
pyd 发表于:2014/12/16 9:28:44

GWG:=REF(HHV(H,M1),1);
GWD:=REF(LLV(L,M1),1);

if C>GWG then buy(holding=0,1,market);
if C<GWD then buyshort(holding=0,1,market);
sklow:=llv(l,enterbars+1);
BKHIGH:=hhv(h,enterbars+1);

if CLOSE>enterprice+N1 then sellshort(holding<0,holding,market);//收盘价大于上一次开空价格+N1,平空
if CLOSE<enterprice-N1 then sell(holding>0,holding,market)//收盘价小于上一次开多价格-N1,平多


if (BKHIGH-enterprice)>=N2 AND (BKHIGH-CLOSE)>=(BKHIGH-enterprice)/3 then

sell(holding>0,holding,market);

if (enterprice-SKLOW)>=N2 AND (CLOSE-SKLOW)>=(enterprice-SKLOW)/3 then

sellshort(holding<0,holding,market);

[此贴子已经被作者于2014/12/16 9:29:17编辑过]
共2 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in .01563 s, 2 queries.