金字塔三重滤网策略交易系统
-
相关简介:相关标签:三重滤网交易系统,三重滤网系统实战成绩,三重滤网,惠比特交易和配种专区,梦三国交易专区,梦三国交易专区速秒,灵缇格力交易专区,中京交易市场下载专区,古币银元交易专区, 金字塔公式 金字塔模型策略源码: input:n1(60,5,120,5); input:n2(20,5,120,5); input:n3(5,5,120,5); ma1:=ma(close,n1); ma2:=ma(close,n2); ma3:=ma(close,n3);{www.88gs.com} longcond
-
文章来源:公式网 发布时间:2015-10-23浏览次数:
相关标签:三重滤网交易系统,三重滤网系统实战成绩,三重滤网,惠比特交易和配种专区,梦三国交易专区,梦三国交易专区速秒,灵缇格力交易专区,中京交易市场下载专区,古币银元交易专区,
金字塔公式 金字塔模型策略源码:
input:n1(60,5,120,5);
input:n2(20,5,120,5);
input:n3(5,5,120,5);
ma1:=ma(close,n1);
ma2:=ma(close,n2);
ma3:=ma(close,n3);{www.88gs.com}
longcond:=ref(all(ma1>ref(ma1,1),2) and all(ma2ref(ma3,1),2),1);
shortcond:=ref(all(ma1ref(ma2,1),2) and all(ma3
if holding=0 then begin
if longcond then
buy(1,1,limitr,open);
end
if holding=0 then begin
if shortcond then
buyshort(1,1,limitr,open);
end
if holding>0 then begin
if shortcond then begin
sell(1,holding,limitr,open);
buyshort(1,1,limitr,open);
end
if time=150000 then
sell(1,holding,limitr,open);
end
if holding<0 then begin
if longcond then begin
sellshort(1,holding,limitr,open);
buy(1,1,limitr,open);
end
if time=150000 then
sellshort(1,holding,limitr,open);
end
收益:asset,noaxis,colorred;
次数:totaltrade,linethick0;
胜率:percentwin,linethick0;
连亏:maxseqloss,linethick0;
连赢:maxseqwin,linethick0;
源码解析:
输出INPUT:N1(60,5,120,5)
输出INPUT:N2(20,5,120,5)
输出INPUT:N3(5,5,120,5)
MA1赋值:收盘价的N1日简单移动平均
MA2赋值:收盘价的N2日简单移动平均
MA3赋值:收盘价的N3日简单移动平均
LONGCOND赋值:昨日ALL(MA1>昨日MA1,2)ANDALL(MA2<昨日MA2,2)ANDALL(MA3>昨日MA3,2)
SHORTCOND赋值:昨日ALL(MA1<昨日MA1,2)


现在就去充值积分
加入VIP可下载100以下的所有资源