好奇怪 為什么效果不一樣呢?
作者:金字塔 來(lái)源:cxh99.com 發(fā)布時(shí)間:2017年01月17日
- 咨詢內(nèi)容:
multipler:=10;
macd:=stkindi('','macd.macd1',0,datatype);
diff:=stkindi('','macd.diff',0,datatype);
atr:=stkindi('','atr.atr',0,datatype);
和 下面代碼,效果應(yīng)該完全一樣吧,為什么會(huì)不一樣呢?
(下面代碼,在參數(shù)表中,設(shè)置了p缺省為26 s缺省12 m缺省9 atrm缺省14)
multipler:=10;
pp:=NUMTOSTR(p,0);
ss:=NUMTOSTR(s,0);
mm:=NUMTOSTR(m,0);
atrmm:=NUMTOSTR(atrm,0);
macd:stkindi('','macd.macd1('&pp&','&ss&','&mm&')',0,datatype);
diff:=stkindi('','macd.diff('&pp&','&ss&','&mm&')',0,datatype);
atr:=stkindi('','atr.atr('&atrmm&')',0,datatype);
為什么用在
if cross(macd,0) and diff>=0.03 or (hhv(h,10)-LLV(l,10))>=0.15 then begin
sellshort(1,0,market);
buy(holding=0,1,market);
end
if cross(0,macd) and diff>=0.03 or (hhv(h,10)-LLV(l,10))>=0.15 then begin
sell(1,0,market);
buyshort(holding=0,1,market);
end
if openprofit/multipler>1.5*atr then begin
sell(1,0,marketr);
sellshort(1,0,market);
end
if openprofit<0 and abs(openprofit)/multipler>1.5*atr then begin
sell(1,0,marketr);
sellshort(1,0,market);
end
效果不一樣呢
[此貼子已經(jīng)被作者于2016-10-20 15:41:27編輯過(guò)]
- 金字塔客服:
哪個(gè)不一樣,是什么不一樣,信號(hào)還是引用的值
- 用戶回復(fù):
沒(méi)有查引用值,信號(hào)不一樣
- 網(wǎng)友回復(fù):
看看引用值,是不是一樣的
- 網(wǎng)友回復(fù):
怎么看?