Daily ATR calculation in TradeStation

Discussion in 'Strategy Building' started by Jock, Feb 19, 2007.

  1. Jock

    Jock

    #11     Feb 20, 2007
  2. Jock

    Jock

    Ellis I don't think that this is the problem, because even prior to referring to the Length, the DTR (as opposed to DATR) is providing an incorrect value.
     
    #12     Feb 20, 2007
  3. Jock

    Jock

    Thanks for the formatting tip for displaying this indicator. Makes it a lot easier to check my coding.
     
    #13     Feb 20, 2007
  4. That's not a CHART, that's a JOKE !
    Hopefully, ONE OF THESE DAYS, when open outcry is eliminated, these secondary electronic markets will start to show some "life" (i.e. liquidity).
    Recent Story: a Hong Kong trader was trading the emini gold futures via my broker and started to complain about the order execution...and the fact he wasn't getting his stops filled properly. I looked at the market, and actually ran a few orders in sim mode, and sure enough, stop orders would get filled 2-5 ticks away from the stop price. I told him it was the market, NOT THE PLATFORM. He continued to complain to the broker about the platform having "bugs" and what-not. The broker ended-up terminating the guy's account.
    Moral: trade in low liquidity instruments, and expect to get "hit" once in a while with a bad fill.
     
    #14     Feb 20, 2007
  5. Jock

    Jock

    This appears to calculate the average range rather than the average "true" range. The ATR should take into account any unfilled gaps betwen the day's close and the next day's high or low.

    It's when I start introducing the close into the calculation that I start running into problems.
     
    #15     Feb 21, 2007