Rss & SiteMap

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

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

标题:夸指标调用?

1楼
jiliang1007 发表于:2015/3/25 13:38:15
金字塔可以实现跨指标编写吗?
2楼
jinzhe 发表于:2015/3/25 13:50:49
跨指标编写指的是什么呢?需要实现什么目标呢?
3楼
jiliang1007 发表于:2015/3/26 19:34:45
kd:cross(c,生命线)&&cross(c,趋势线);
kk:cross(生命线,c)&&cross(趋势线,C);
pk:cross(c,MA1);
pd:cross(MA1,c);
sellshort(holding<0 and pk,holding,market);
buy(holding=0 and kd,1,market);
sell(holding>0 and pd,holding,market);
buyshort(holding=0 and kk,1,market);
加空条件:趋势线<生命线 and cross(趋势线,c);
加多条件:趋势线>生命线 and cross(c,趋势线);
加空加多都只开仓一次。怎样编写?
4楼
jinzhe 发表于:2015/3/27 9:00:57
kd:cross(c,生命线)&&cross(c,趋势线);
kk:cross(生命线,c)&&cross(趋势线,C);
pk:cross(c,MA1);
pd:cross(MA1,c);
sellshort(holding<0 and pk,holding,market);
buy(holding=0 and kd,1,market);
sell(holding>0 and pd,holding,market);
buyshort(holding=0 and kk,1,market);

if holding=1 and 加多条件 then buy(1,1,market);

if holding=-1 and 加空条件 then buyshort(1,1,market);

共4 条记录, 每页显示 10 条, 页签: [1]


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