Rss & SiteMap
金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/
variable:a=8;
if (hhv(asset,enterbars+1)-asset)/asset>=0.1 then a:=0.8*a;
if ref(hhv(asset,enterbars+1),1)=asset then a:=a/0.8;
if (hhv(asset,enterbars+1)-asset)/asset>=0.2 then a:=0.64*a;
if (hhv(asset,enterbars+1)-asset)/asset<=0.1 then a:=a/0.64;
if (hhv(asset,0)-asset)/asset>=0.1 then a:=0.8*a;
if ref(hhv(asset,0),1)=asset then a:=a/0.8;
if (hhv(asset,0)-asset)/asset>=0.2 then a:=0.64*a;
if (hhv(asset,0)-asset)/asset<=0.1 then a:=a/0.64;
variable:qy=0;
if 平多条件 and holding>0 then begin
sell......;
buyshort.......;
if asset>qy then begin
qy:=asset;
a:=ss;
end
if qy<>0 and (qy-asset)/qy>0.1 then a:=0.8*a;
if qy<>0 and (qy-asset)/qy>0.2 then a:=0.64*a;
if 平空条件 and holding>0 then begin
sellshort......;
buy.......;
if asset>qy then qy:=asset;
只能写缩的,变回去的定义不了