Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Price Data and Moving Averages

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Price Data and Moving Averages

    How does one account for the tick size of an underlying for use in the numerical result of a moving average calculation.

    So instead of a moving average being = 823.682
    It would be = 823.75

    #2
    Hello,

    I do not understand. The MA will just use any values and average them. Please clarify.
    DenNinjaTrader Customer Service

    Comment


      #3
      the moving average or any indicator whose equation results in a price.


      is it possible to have the result in a real number, not a number that doesn't exist in the numerical representation of price assigned to the underlying.


      with the ES for example. the result of a moving average equation to be determined in the tick value of the ES. So 808.75 would be the desired result, not 808.67. As the second number does not exist. There is no 808.67 in the ES as each tick is .25 not .01.

      when looking at contract with a tick value of .015625 the results of certain indicators become quite interesting, and challenging for larger calculations...
      Last edited by mainstream; 02-02-2009, 04:45 AM.

      Comment


        #4
        mainstream,

        To get the tick size of an instrument you can do use TickSize.

        Code:
        Close[0] + 10 * TickSize;
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        63 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        35 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        54 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        61 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        48 views
        0 likes
        Last Post CarlTrading  
        Working...
        X