Rss & SiteMap

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

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

标题:比较价格的图表程序

1楼
llcly 发表于:2016/5/17 12:58:11

当TRIX金叉时,如果收盘价低于20日均线价格,以收盘价开多仓,等TRIX死叉时,平多仓。


如果收盘价高于20日均线价格,以20日均线价格(4舍5入)发指令开多仓,等TRIX死叉时,平多仓。

2楼
pyd 发表于:2016/5/17 13:16:52

TR1: EMA(EMA(EMA(CLOSE,P),P),P);
TRIX : (TR1-REF(TR1,1))/REF(TR1,1)*100;
TRMA1 :  MA(TRIX,N);
jc:=cross(trix,trma1);
sc:=cross(trma1,trix);
ma20:ma(c,20);
if jc and c<ma20 and holding=0 then buy(1,1,limitr,c);

if c>ma20 and holding=0 then buy(1,1,limitr,ma20);
if sc and holding>0 then sell(1,1,market);

3楼
jinzhe 发表于:2016/5/17 13:19:34

TR1:= EMA(EMA(EMA(CLOSE,P),P),P);
TRIX : (TR1-REF(TR1,1))/REF(TR1,1)*100;
TRMA1 :  MA(TRIX,N);
ma20:=ma(c,20);
if cross(trix,trma1) and c<ma20 then buy(holding=0,1,limitr,close);

if c>ma20 and cross(trix,trma1) then buy(holding=0,1,limitr,ma20),IGNORECHECKPRICE;

if cross(trma1,trix) then sell(1,0,marketr);

4楼
llcly 发表于:2016/5/25 16:22:10
非常感谢,回头试试。
5楼
llcly 发表于:2016/5/25 16:22:23
非常感谢,回头试试。
共5 条记录, 每页显示 10 条, 页签: [1]


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