Adjusting intraday indicators for overnight gaps

Discussion in 'Strategy Building' started by trader#21, Oct 23, 2011.

  1. + for the truth
     
    #11     Oct 25, 2011
  2. unfortunatly no easy way to fix this other than o/h/l/c. If you like to google 'gapless charts'. people have posted similar for ninja. the fix is a big improvement as compared to not accounting for the gap.

    Here is the fix for tradestation users.

    [The opening “gap” is recorded for the first bar of each trading day.

    A relative stream of OHLC's are calculated by subtracting this “gap” from the actual prices. This relative stream of OHLC’s are maintained right along side of the real OHLC’s. If the EL programmer needs to convert between the relative prices and the real price data, the sum of all the gap values is stored in the variable, “accum,” which makes the conversion simple. ]
     
    #12     Oct 25, 2011
  3. Here's a weird suggestion: You can just interpolate data from futures overnight trading. Fix it so that the close session and open session are in relative terms, and the prices of your underlying match up so that you get a smooth transition from close to next open. Adjust for volatility if needed.
     
    #13     Oct 26, 2011
  4. The idea sounds good for backtesting.

    For interpolating the time series with random data + drift... someone may like to comment on the maths involved.
     
    #14     Oct 27, 2011
  5. nkhoi

    nkhoi