[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: entry on current bar



PureBytes Links

Trading Reference Links

> Will backtesting reflect this accurately?

Yes with some caveats. 

Close and market orders are always correct. 

Stop and limit orders will be correct if there is only one order active
on the bar. 

If there are two orders active, say a profit target and a stop loss, and
both prices got touched during the bar, TS can't know which one actually
got filled first if the only data you have is the OHLC of the bar. It
will make assumptions that may or may not be right. 

If you have historical tick data, newer versions can look inside the bar
and know which happened first. Being old school, I tend not to trust
that and would prefer to use shorter bars so it's very unlikely that two
orders would get elected on the same bar. Same goes for the new
intra-bar calcs Bob mentioned. It's sort of a black box that you can't
really monitor to make sure it's working right. TS has a history of
undocumented bugs, ummm errr, features in its black box operations. :-)

-- 
  Dennis