金字塔动量突破交易系统策略源码
-
相关简介:金字塔公式 金字塔模型策略源码: runmode:0; input:period(20,5,100,5); variable:myasset=30000; entertime:=time>=092500 and time<=145500; exittime:=time>=150000; buycond:=entertime and ref(close,1)>ref(close,period); buyprice:=open; buyshortcond:=entertime and ref(clo
-
文章来源:公式网 发布时间:2015-10-25浏览次数:
金字塔公式 金字塔模型策略源码:
runmode:0;
input:period(20,5,100,5);
variable:myasset=30000;
entertime:=time>=092500 and time<=145500;
exittime:=time>=150000;
buycond:=entertime and ref(close,1)>ref(close,period);
buyprice:=open;
buyshortcond:=entertime and ref(close,1)<ref(close,period);
buyshortprice:=open;
if holding=0 and buycond then begin
buy(1,1,limitr,buyprice);
end
if holding=0 and buyshortcond then begin
buyshort(1,1,limitr,buyshortprice);
end
if holding>0 and exittime then begin
sell(1,holding,limitr,close);
end
if holding<0 and exittime then begin
sellshort(1,holding,limitr,close);
end
if exittime then
myasset:=asset;
资产:myasset,


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