tmp:=aa+bb+cc+dd+ee+ff+gg+hh;
if holding=0 then begin
if tmp>0 then
buy(1,2,LIMIT,OPEN);
end
if holding=0 then begin
if tmp<0 then
buyshort(1,2,LIMIT,OPEN);
end
if holding>0 then begin
if tmp<0 then begin
sell(1,holding,LIMIT,OPEN);
buyshort(1,2,LIMIT,OPEN);
end
end
if holding<0 then begin
if tmp>0 then begin
sellshort(1,holding,LIMIT,OPEN);
buy(1,2,LIMIT,OPEN);
end
end
if time>145800 and time<=150000 then begin
sell(1,0,marketr);
sellshort(1,0,marketr);
end
完全与金魔方里面的信号不一致
收市时平仓 | |
用法: |
SetExitOnClose |
这是他的函数。
用我们金字塔该如何搞???
if holding=0 then begin
if tmp>0 and time<145000 then
buy(1,2,LIMIT,OPEN);
end
if holding=0 then begin
if tmp<0 and time<145000 then
buyshort(1,2,LIMIT,OPEN);
end
if holding>0 then begin
if tmp<0 and time<145000 then begin
sell(1,holding,LIMIT,OPEN);
buyshort(1,2,LIMIT,OPEN);
end
end
if holding<0 then begin
if tmp>0 and time<145000 then begin
sellshort(1,holding,LIMIT,OPEN);
buy(1,2,LIMIT,OPEN);
end
end
if time>145800 and time<=150000 then begin
sell(1,2,market);
sellshort(1,2,market);
end
还是有问题