COCO研究院

 找回密碼
 註冊
搜索
查看: 1767|回復: 1

請教有條件停損

[複製鏈接]
發表於 14-12-25 16:10 | 顯示全部樓層 |閱讀模式
我要在以下的條件下平倉,不知語法哪裡錯誤,但編譯有通過 , 請教各位先進?謝謝各位

1. 距成交k棒大於20根

2. 虧損的狀況之下

3. 收盤在60根k棒的最低點

if marketposition = 1 and barssinceentry > 20 and  close-EntryPrice = -0  and close < lowestFC(low,60)[1]

   then begin sell next bar at market ;
發表於 14-12-25 23:22 | 顯示全部樓層
close-EntryPrice = -0  要改為  close-EntryPrice < 0

then begin sell next bar at market ; { Begin 沒有  end 對應 } 應該有錯誤信息

if marketposition = 1 and barssinceentry > 20 and  close-EntryPrice < 0

   then sell next bar at lowestFC(low,60) stop;

您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

手機版|Archiver|站長信箱|廣告洽詢|COCO研究院

GMT+8, 24-5-18 18:06

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回復 返回頂部 返回列表
理財討論網站 | AI繪圖AI超擬真美女AI beauty AI Stable DiffusionAI正妹AI Lookbook