好奇怪 為什么效果不一樣呢?
作者:金字塔 來源:cxh99.com 發布時間:2017年01月17日
- 咨詢內容:
multipler:=10;
macd:=stkindi('','macd.macd1',0,datatype);
diff:=stkindi('','macd.diff',0,datatype);
atr:=stkindi('','atr.atr',0,datatype);
和 下面代碼,效果應該完全一樣吧,為什么會不一樣呢?
(下面代碼,在參數表中,設置了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
效果不一樣呢
[此貼子已經被作者于2016-10-20 15:41:27編輯過]
- 金字塔客服:
哪個不一樣,是什么不一樣,信號還是引用的值
- 用戶回復:
沒有查引用值,信號不一樣
- 網友回復:
看看引用值,是不是一樣的
- 網友回復:
怎么看?