我持有多單的情況下,macd第一次死叉的低點(diǎn)怎么表示 [金字塔]
- 咨詢內(nèi)容:
你好,請問下,我持有多單的情況下,macd第一次死叉的低點(diǎn)怎么表示 就是我劃紫色線的那個低點(diǎn)
此主題相關(guān)圖片如下:11111111111111111111.jpg
- 金字塔客服:
variable:n=0;
if holding=0 and 開倉條件 then begin
buy....;
n:=0;
end
if 死叉 and n=0 then begin
ll:=l;
n:=1;
end
ll就是所求值
- 用戶回復(fù):
老師,你好,這樣達(dá)不到效果,是我表示錯誤,就 是我開了多單以后,求macd第一次死叉 到第一次金叉的最低價(jià)。謝謝
- 網(wǎng)友回復(fù):
variable:n=0,ll=drawnull;
if holding=0 and 開倉條件 then begin
buy....;
n:=0;
end
if 死叉 and n=0 then begin
ll:=l;
n:=1;
end
if n=1 and l<ll then ll:=l;
if 金叉 and n=1 then begin
ll1:=ll;
n:=2;
end
ll1就是所求值
[此貼子已經(jīng)被作者于2014/11/18 9:23:51編輯過]
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容