討論區列表
MultiCharts
一般模式
討論串模式
標題:
[發表] SetDollarTrailing 無法實現
by 2023-07-26 18:56:46
0
暱稱:
tim0407
信箱:不顯示
成就:發文(0) / 回文(0) / 推薦(0)
想請教一下
以下是我的語法
input:DollarOffset(3000);
if time > dayend and time <dayendf then begin
out = true;
end
else if time > nightend and time < nightendf then begin
out = true;
end
else begin//if close > x buy
out = false;
if C[1]>x then begin
buy ("Buy"+NumToStr(C[1],0)) next bar at market;
End;
if C[1]<now then begin
SellShort("Sell"+NumToStr(C[1],0)) next bar at market;
End;
if H[1]>x and C[1]<x then begin
SellShort("Back sell"+NumToStr(C[1],0)) next bar at market;
End;
if L[1]<now and C[1]>now then begin
buy ("Back buyl"+NumToStr(C[1],0)) next bar at market;
End;
End;
SetStopPosition;
setdollartrailing(DollarOffset);
想要保利出場狀況
保3000獲利的狀態
但是
一進場就被賣掉了
是哪邊設定錯誤嗎?
第一頁
上一頁
下一頁
最後頁
討論區列表
MultiCharts
MultiCharts
│
討論區
│
會員專區
│
教學講座
│
支援與服務
│
產品購買
│
申請試用
All rights for MultiCharts Trading Software are reserved by MultiCharts, LLC
凱衛資訊股份有限公司 營利事業統一編號(21261212) 著作權所有 本網站最佳瀏覽解析度為 1024 x 768
隱私權政策
│
網站安全政策
│
著作權說明
若不清楚點選圖片更新驗證碼
註冊帳號
忘記密碼
解除鎖定