B:=******;
M:=******;
HH:=HHV(B,M);
LL:=LLV(B,M);
HH>REF(HH,1),BPK;
LL<REF(LL,1),SPK;
HH-B>1&&REF(B,1)=REF(HH,1),SPK;
B-LL>1&&REF(B,1)=REF(LL,1),BPK;
请教老师上面二处BPK和SPK语句如何转成金字塔的呀?非常感谢!
可以不用改的,因为这2个函数金字塔下面也是同样类型支持的。
不过现在用的少。
要改的话,按照下面方式。
if cond1 then //平空反手 SPK
begin
sellshort(holding<0,holding,market);
buy(holding=0,1,market);
end
if cond2 then //平多反手 BPK
begin
sell(holding>0,holding,market);
buyshort(holding=0,1,market);
end
cond1,cond2就是你spk和bpk前面用的条件。