|
|
this bar的確會有回測上的錯誤問題,不過this bar at close是OK的,不過基本上只要不是當日最後一根K棒,this bar at close=next bar at market
若要觸價買進,可以用buy next bar at xxx stop;
若真的要用this bar就寫成buy this bar at xxx stop; 但會發生回測跟實戰結果不同的問題
盡量還是以next bar來寫,若你寫this bar會比較好,有80%是假象,我寫過用this bar結果勝率100%的程式...............
|
|