看板 Trading 關於我們 聯絡資訊
※ 引述《brockcheng ()》之銘言: : 買的訊號產生後, : 賣的訊號要10天後才能賣~ : 這個語法該怎麼寫? : 我的賣出訊號: : if Close=Lowest(Close,5) Then : ExitLong ("Sell") This Bar on Close; : 該怎麼加進去? Inputs: Length(5), KeepDays(10); if Close=Lowest(Close,Length) And barssinceentry > KeepDays Then ExitLong ("Sell") This Bar on Close; 這樣寫有錯嗎? 我的程式裡還是有當天買當天賣的~呃~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.231.166.40
brockcheng:大概知道原因,上一次的賣跟這一次的買同一天就會有bug 01/16 22:27
Trading:可能會導致績效計算有誤,實際情形要看策略模式。 01/17 01:03
dyhsu:你的買訊沒寫怎麼知道 01/18 10:02