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

看板Trading (金融交易)作者 (占卜師)時間16年前 (2009/08/03 12:28), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串3/3 (看更多)
試試看 這個語法吧 buy this bar at 翻多價 or higher buy this bar at 翻多價 or lower 要在this bar 做進出 最好用這方法 記得兩行同時要寫喔 ※ 引述《kurasige (kurasige)》之銘言: : 我也有類似的問題 : 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: 218.165.78.50

08/03 16:19, , 1F
單純這樣還是會出問題的...還要有其他條件輔助
08/03 16:19, 1F
文章代碼(AID): #1ATcTWgz (Trading)
討論串 (同標題文章)
文章代碼(AID): #1ATcTWgz (Trading)