Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom Indicator ==> Market Analyzer

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

    Custom Indicator ==> Market Analyzer

    I have built a custom indicator...multi time frame...which compares different chunks of volume to the amounts I would have expected a stock to trade...over 1 min 10 min 1 hr 1day 10 day, etc...fairly flexible with timeframes.

    I have created a chart to display the output; testing the values manually today as the indicator plots, it is right on the money and the graphical is rendering correctly and as expected..

    Nevertheless, when I try to add this indicator to my market analyzer so that i can a. backtest using the market analyzer and b. record certain values to hone my in-development strategy, I get either:

    -- error messages like "NaN" or "InfiniteM", or

    -- a totally unrelated result like Close[0]; //calculate on bar update set to true.

    My calculation, if and when correctly output, would be a multiple of the expected volume traded, where 0.50 would mean half as much volume as I expected went off and 2.5 would mean that I expected one million to trade but the instrument actually traded 2.5MM during the period.

    I can be more specific if needed but let's start here. Any help greatly appreciated.

    Regards.

    #2
    Hi alabell, if you see no issues on your chart but on the MA - what kind of lookback settings are you using, is enough historical data present to do the calculations as needed?

    You would control that in the MA properties section - http://www.ninjatrader.com/support/h...properties.htm

    Comment


      #3
      thanks for the response bertrand but no matter how many bars i go back, InfinityM is the errormessage.

      Edit: You were 100% right Bertrand, I did need to make sure I was going back far enough in terms of overall bars data, and I missed one field where it needed to be changed. Thank you for your really great help on this issue, it's now a mistake i won't make again.

      regards.
      Last edited by alabell; 07-15-2011, 12:59 PM.

      Comment

      Latest Posts

      Collapse

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