公式轉(zhuǎn)換問題
作者:金字塔 來源:cxh99.com 發(fā)布時(shí)間:2017年05月12日
- 咨詢內(nèi)容:
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; 請(qǐng)幫忙轉(zhuǎn)換成新圖表或者后臺(tái)交易。
- 金字塔客服:
BUYP SELLP 這兩是什么?
- 用戶回復(fù):
是買入,賣出的條件
- 網(wǎng)友回復(fù):
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);