金字塔开盘跳空交易系统
-
相关简介:金字塔公式 金字塔模型策略源码:runmode:0; buycond:=openref(low,1); buyshortcond:=openref(high,1); if holding=0 then begin if buycond then buy(1,1,limitr,open); end if holding=0 then begin if buyshortcond then buyshort(1,1,limitr,open); end if holding0 then begin se
-
文章来源:公式网 发布时间:2015-10-25浏览次数:
金字塔公式 金字塔模型策略源码:runmode:0;
buycond:=open
buyshortcond:=open>ref(high,1);
if holding=0 then begin
if buycond then
buy(1,1,limitr,open);
end
if holding=0 then begin
if buyshortcond then
buyshort(1,1,limitr,open);
end
if holding>0 then begin
sell(1,holding,limitr,close);
end
if holding<0 then begin
sellshort(1,holding,limitr,close);
end
收益:(asset-30000)/30000,noaxis,colormagenta;
次数:totaltrade,linethick0;
胜率:percentwin,linethick0;
连亏:maxseqloss,linethick0;
连赢:maxseqwin,linethick0;
复制上述代码粘贴到到公式管理器
源码解析:
输出RUNMODE:0
BUYCOND赋值:开盘价<昨日最低价
BUYSHORTCOND赋值:开盘价>昨日最高价
逻辑判断 HOLDING=0 THEN BEGIN 逻辑判断 BUYCOND THEN BUY(1,1,LIMITR,


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