Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

referencing OnMarketData indicators with MAX and MIN

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

    referencing OnMarketData indicators with MAX and MIN

    I have several indicators that use OnMarketData that do not plot historically. I want to use them as inputs to MAX and MIN to find the maximum and minimum values of those indicators inside a strategy. However, MAX and MIN are not returning correct values. What should I do?

    #2
    You will need enough real-time data points from OnMarketData() before you will get accurate readings.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      The indicators and strategy are both CalculateOnBarClose = true, but the MAX and MIN are inside IF branches that do not evaluate every bar. Is the indicator which is called from inside MIN and MAX still collecting data when MAX and MIN do not evaluate? Elsewhere in the strategy, I have code that evaluates the indicator with the same parameters every bar.
      Last edited by honvl; 06-09-2009, 03:30 PM.

      Comment


        #4
        Not sure what you mean. MAX and MIN will calculate when it has enough data points.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, Yesterday, 10:06 AM
        0 responses
        14 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        11 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        9 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        4 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        31 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X