HTS當沖程式問題 - 財經

Table of Contents


各位大大
這邊我想寫個功能
假設現在符合我的買進條件
我希望之後出現比進場點低5點的時候再進場
那我該如何寫入?

目前我寫
If condition1 Then
Value1=close
End if

If close < Value1 - 5 Then
Buy ("買進") next bar at market
End if

因為我記得Value1好像不會因為每次讀取而改變
只是這樣寫出來並不是我想像中的結果
有大大可以說明一下
以上的錯誤在哪
或者應該怎麼寫嗎???
感謝<(_ _)>

--

All Comments