請問高手:我的介入價止損代碼對不對,是不是這樣寫 [金字塔]
- 咨詢內容:
//建立多頭的進場條件
long :=VBuy and time>=092700 and time<=150000;if long then
begin
sellshort(holding < 0, 0, limitr, open);
buy(holding = 0, 1, limitr, open);
Price:=AVGENTERPRICE;//持倉價位
SELL(HOLDING>0,HOLDING,Stopr,Price*0.9977);//止損
end
//Price:=AVGENTERPRICE;//持倉價位
//畫出多頭的止損線
partline(holding>0,Price*0.9977,colorred);//開空條件
short := VSell and time >= 092700 and time <= 150000;if short then
begin
sell(holding > 0, 0, limitr, open);
buyshort(holding = 0, 1, limitr, open);
Price:=AVGENTERPRICE;//持倉價位
sellshort(holding > 0, 0, Stopr,Price*1.0027);
end//畫出空頭的止損線
partline(holding<0, Price*1.0027, colorgreen);//收盤前5分鐘平倉
if time >= 151200 then
begin
sell(holding > 0, 0, limitr, open);
sellshort(holding < 0, 0, limitr, open);
end - 金字塔客服:
把止損單獨寫出來,和收盤前平倉那樣
- 用戶回復: 盡量不要用buy跟sell里面的止損指令,這個需要交易所支持的,外盤的大部分支持,但是國內的就大部分不支持,下了指令也沒用,單子發不到交易所的,止損最好就像樓上說的,單獨寫出來作為一個平倉條件用
如果以上指標公式不適用于您常用的行情軟件
或者您想改編成選股公式,以便快速選出某種形態個股的話,
- 上一篇:【求助】測評問題
- 下一篇:請問如何判斷鼠標點擊并獲取K線的位置?
相關文章
-
沒有相關內容