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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        646 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        367 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        107 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        569 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X