我持有多單的情況下,macd第一次死叉的低點怎么表示 [金字塔]
- 咨詢內容:
你好,請問下,我持有多單的情況下,macd第一次死叉的低點怎么表示 就是我劃紫色線的那個低點
此主題相關圖片如下: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就是所求值
- 用戶回復:
老師,你好,這樣達不到效果,是我表示錯誤,就 是我開了多單以后,求macd第一次死叉 到第一次金叉的最低價。謝謝
- 網友回復:
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就是所求值
[此貼子已經被作者于2014/11/18 9:23:51編輯過]
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容