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 rtwave, 04-12-2024, 09:30 AM
    4 responses
    30 views
    0 likes
    Last Post rtwave
    by rtwave
     
    Started by yertle, Yesterday, 08:38 AM
    7 responses
    29 views
    0 likes
    Last Post yertle
    by yertle
     
    Started by bmartz, 03-12-2024, 06:12 AM
    2 responses
    22 views
    0 likes
    Last Post bmartz
    by bmartz
     
    Started by funk10101, Today, 12:02 AM
    0 responses
    6 views
    0 likes
    Last Post funk10101  
    Started by gravdigaz6, Yesterday, 11:40 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X