请问在回测时,要在突破某价位立即进场,EL要怎么写?

Discussion in 'TradeStation' started by zbk, Mar 30, 2012.

  1. zbk

    zbk

    我发现回测时,如果写成if close > ...... then buy next bar at market,或者写成buy next bar at....(价位)....stop,这样都会在下一根bar开盘时才进场。

    如果我想突破某价位,比如High[1]后立即进场,回测时EL要怎么写呢?

    谢谢。。
     
  2. 普通模式buy next at high stop;
    精准回测 if close >high[1] then buy next at open;
     
  3. if 条件成立 then buy next bar at High[1] stop;
     
  4. 这样写将导致以上一根K线的最高价买在下一根K线上。中间会差一根K线