Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

NT8 Sum Indicator in Market Analyzer

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

    NT8 Sum Indicator in Market Analyzer

    I have been using the sum indicator to call a custom built indicator (prints a 1 for every time a condition is met) and it works fine on a single security in a chart window

    however when I use the SUM indicator in the Market Analyzer (MA) window, it only calls the sum of the Close, as far as I can tell, not the SUM of my indicator, for which I set the properties to.

    Does it have something to do with the SUM indicator properties for the MA columns? Can I change something here (or make a SUM_new indicator ) so that it works. I tried re jigging my custom indicator to sum up all the times the condition occured but I need to add another data series and my code is all bonkers

    Code:
    namespace NinjaTrader.NinjaScript.MarketAnalyzerColumns
    {
    	public partial class MarketAnalyzerColumn : MarketAnalyzerColumnBase
    	{
    		public Indicators.FiftyTwoWeek FiftyTwoWeek(bool use52Week, int altBarNunmber)
    		{
    			return indicator.FiftyTwoWeek(Input, use52Week, altBarNunmber);
    		}
    
    		public Indicators.FiftyTwoWeek FiftyTwoWeek(ISeries<double> input , bool use52Week, int altBarNunmber)
    		{
    			return indicator.FiftyTwoWeek(input, use52Week, altBarNunmber);
    		}
    	}
    }

    #2
    Hello eurostoxx trader,

    I was able to confirm that there is a bug in NT8 Beta 10, which I believe was affecting your results. This has been fixed in Beta 11. Once Beta 11 is released, please let us know if this behavior persists by following the same procedure I will outline below for testing.

    The following procedure gives me different results in a chart and in the market analyzer in NT8 Beta 10

    Chart :

    Select the ES 06-16 instrument
    Set up the chart for 1 minute data
    Add a SUM indicator
    Period : 14
    Input series : an SMA indicator
    Period : 14
    Input series : Close

    Market Analyzer

    Add an ES 06-16 instrument
    Add an indicator column with the SUM indicator
    Period : 14
    Input series : SMA
    Period : 14
    Input series : Close
    Price based on : Last
    Type : Minute
    Value : 1
    Price based on : Last
    Type : Minute
    Value : 1

    Just using the Close as the input series in both places, on the other hand, gave me the same values for each.

    In my test using Beta 11, both scenarios gave me the same values in a chart and the market analyzer.
    Jessica P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bortz, 11-06-2023, 08:04 AM
    47 responses
    1,606 views
    0 likes
    Last Post aligator  
    Started by jaybedreamin, Today, 05:56 PM
    0 responses
    8 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    18 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    4 views
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    13 views
    0 likes
    Last Post Javierw.ok  
    Working...
    X