hts 停損停利的語法問題 - 期貨
By Kyle
at 2009-03-31T11:21
at 2009-03-31T11:21
Table of Contents
我的做法是停損採取絕對點數的停損
但是停利的部分是採用突破高低點的方式
//停損
If MarketPosition = 1 Then
OrderPrice =Entryprice(0)- value3
Exitlong ("XS") next Bar at OrderPrice Stop
End if
If MarketPosition = -1 Then
OrderPrice = EntryPrice(0) + value3
ExitShort ("XB") next Bar at OrderPrice Stop
End if
//停利
If MarketPosition = 1 and value5<=r1 Then
OrderPrice =highest(h,rday)
Exitlong ("XS1") next Bar at OrderPrice limit
End if
If MarketPosition = -1 and value5<=r1 Then
OrderPrice = lowest(l,rday)
ExitShort ("XB1") next Bar at OrderPrice limit
End if
但是不知道為什麼停利的部分好像都會有問題
有時候會停利但是有時候卻又沒有
不知道有沒有人可以幫忙確認一下
--
Tags:
期貨
All Comments
By Mary
at 2009-04-03T16:32
at 2009-04-03T16:32
By Queena
at 2009-04-04T13:27
at 2009-04-04T13:27
By Madame
at 2009-04-08T06:40
at 2009-04-08T06:40
By Iris
at 2009-04-13T02:46
at 2009-04-13T02:46
By Agnes
at 2009-04-13T21:12
at 2009-04-13T21:12
By Kyle
at 2009-04-16T14:18
at 2009-04-16T14:18
By Agatha
at 2009-04-19T01:58
at 2009-04-19T01:58
Related Posts
2009年董監改選個股
By Daniel
at 2009-03-31T11:15
at 2009-03-31T11:15
哪裡可以找到收盤價的歷史資料呢?!
By Lydia
at 2009-03-31T10:25
at 2009-03-31T10:25
98年03月30日 期貨收盤價&結算價一覽表
By Barb Cronin
at 2009-03-31T08:52
at 2009-03-31T08:52
2009.03.29~2009.04.04 股市行事曆
By Skylar Davis
at 2009-03-31T08:51
at 2009-03-31T08:51
98年03月30日 三大法人買賣金額統計表
By John
at 2009-03-31T08:49
at 2009-03-31T08:49