Re: [問題] HTS語法的毛病

看板Trading作者 (kurasige)時間14年前 (2009/08/02 21:50), 編輯推噓1(103)
留言4則, 4人參與, 最新討論串2/3 (看更多)
我也有類似的問題 Parameter: fastlength(20) If Close[1]>MA(close,fastlength)[1] then If MA(close,fastlength)[1]>MA(close,fastlength)[2] then If open >=MA(close,fastlength)[1] then Buy("買進") this bar at open stop end if End if End if If CurrentContracts=1 then If Open<MA(close,fastlength)[1] then ExitLong From Entry ("買進") this bar at open stop End if Else if MA(close,fastlength)[1]<Open then if low<MA(close,fastlength)[1] then ExitLong From Entry ("買進") this bar at MA(close,fastlength)[1] stop End if END if End if 有時明明盤中跌破20MA,還是沒停損,等到隔天開盤才停損 我也一直想不出錯在哪裡? 有沒有大大能幫忙一下? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.204.153.230

08/03 00:30, , 1F
看到 this bar 跟 stop 在一起...就不用看了...一定錯
08/03 00:30, 1F

08/03 02:24, , 2F
樓上一針見血
08/03 02:24, 2F

08/03 07:22, , 3F
早點放棄用HTS寫吧 :P
08/03 07:22, 3F

08/03 11:12, , 4F
最好全部都用next bar..
08/03 11:12, 4F
文章代碼(AID): #1ATPciDG (Trading)
文章代碼(AID): #1ATPciDG (Trading)