Rss & SiteMap

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

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

标题:求编写

1楼
chenjing 发表于:2020/8/25 18:38:56
BD:=(CLOSE/MA(CLOSE,28)-1)*100;
STICKLINE (BD>=0, BD,0,1,0),COLORRED;
STICKLINE (BD<=0, 0,BD,1,0),COLORGREEN;
出现红柱且收盘价创出20周期新高 开多
出现绿色平空 
出现绿色且收盘创20周期新低  开空 
出现红色平空
2楼
FireScript 发表于:2020/8/26 9:49:42
 
BD:=(CLOSE/MA(CLOSE,28)-1)*100;
STICKLINE (BD>=0, BD,0,1,0),COLORRED;
STICKLINE (BD<=0, 0,BD,1,0),COLORGREEN;

kd:bd>0 and c=hhv(c,20);//开多条件
kk:bd<0 and c=llv(l,20);//平多条件
pd:bd<0;
pk:bd>0;

sell(pd and holding>0,holding,market);
buy(holding=0 and kd,1,market);
sellshort(holding<0 and pk,holding,market);
buyshort(holding=0 and kk,1,market);

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


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