D1 AND D2 AND D3 AND MA1>REF(MA1,1),BPK;
K1 AND K2 AND K3 AND MA1<REF(MA1,1),SPK;
H>=BUYP&&C>=MAX(O,BUYP) AND MA1>REF(MA1,1),BK;
L<=SELLP&&C<=MIN(O,SELLP) AND MA1<REF(MA1,1),SK;
C<TORDERPRICE(3,1)*(1-0.001*46),BP;
C>TORDERPRICE(1,1)*(1+0.001*31),SP;
C>TORDERPRICE(3,1)*(1+0.0001*185),BP;//
C<TORDERPRICE(1,1)*(1-0.0001*184),SP;//
C<VALUEWHEN(TENTERBARS,h) -147*MINDIFF,SP;
C>VALUEWHEN(TENTERBARS,l) +110*MINDIFF,BP;
请帮忙转换成新图表或者后台交易。
if D1 AND D2 AND D3 AND MA1>REF(MA1,1) then begin
sellshort(1,0,marketr);
buy(holding=0,1,marketr);
end
if K1 AND K2 AND K3 AND MA1<REF(MA1,1) then begin
sell(1,0,marketr);
buyshort(holding=0,1,marketr);
end
if H>=BUYP&&C>=MAX(O,BUYP) AND MA1>REF(MA1,1) then buy(holding=0,1,marketr);
if L<=SELLP&&C<=MIN(O,SELLP) AND MA1<REF(MA1,1) then buyshort(holding=0,1,marketr);
if C<enterprice*(1-0.001*46) then sellshort(1,0,marketr);
if C>enterprice*(1+0.001*31) then sell(1,0,marketr);
if C>enterprice*(1+0.0001*185) then sellshort(1,0,marketr);//
if C<enterprice*(1-0.0001*184) then sellshort(1,0,marketr);//
if C<VALUEWHEN(ENTERBARS=0,h) -147*MINDIFF then sell(1,0,marketr);
if C>VALUEWHEN(TENTERBARS=0,l) +110*MINDIFF then sellshort(1,0,marketr);