• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Improve chart of capital

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

    Improve chart of capital

    Hello, guys!!!

    I've created moving average on chart of capital in a strategy analyzer. But I have some problem: it shows those days, where I do not trade, that's why moving average of chart is distorted. How to improve it?

    Is it possible to create new window and delete those empty data and to build realistic chart of capital? May be it will be add on or something else.


    #2
    Hello U0000999,

    Thank you for the question.

    I wanted to clarify what you are trying to do. You said that the chart shows days where you do not trade, do you mean that the instrument still trades these days normally and you do not trade on these days? If so, a Trading Hours template could be used to control what days the instrument shows in a chart in regular patterns or the holiday hours could be added for specific days.

    https://ninjatrader.com/support/help...ding_hours.htm

    This would prevent the datapoints from being used in the chart so the average could only use the datapoints within the trading session, is this what you are trying to do?


    I look forward to being of further assistance.

    JesseNinjaTrader Customer Service

    Comment


      #3
      I mean, that, there are no deals these days and chart is shown as line. Moving average of chart of capital is distorted on "empty days", because there are no trades.

      Comment


        #4
        It looks like flat line

        Comment


          #5
          Hello U0000999,

          Is this data from a data provider or imported data? If the data is coming this way from the provider there would not really be a way to avoid this, as I understand it you are just talking about days with very low volume where there was very little movement, is this correct?

          I look forward to being of further assistance.
          JesseNinjaTrader Customer Service

          Comment


            #6
            Data goes from NinjaTrader.I'm talking about those days, where no deals from my trading system

            Comment


              #7
              Hello U0000999,

              If you mean that you are plotting a value, and on some days you do not plot a value or plot a 0 value, that will still be accounted for in the average because you are plotting the value and there is a bar where the plot should contain a value so it would be processed.

              Can you provide a more detailed description of what you are doing specifically, and what you are seeing that is incorrect? From the limited details so far, I can only gather that you are plotting or storing a value in a series that is averaged and having extra values averaged in which you did not want.



              Please let me know if I may be of further assistance.
              JesseNinjaTrader Customer Service

              Comment


                #8
                There are days when trades do not occur and they are displayed as a flat line. the moving average of capital counts these days, although they need not be taken into account.

                Comment


                  #9
                  Hello U0000999,

                  Yes in my last post I provided my understanding of your question which seems to still match what you are saying. I would still need additional details to better understand what may be happening in your custom code.

                  You said that you are creating a line which is flat on days there are no trades, are you plotting a 0 on the days when trades do not occur? What specifically are you doing in your logic?

                  Without knowing what you are doing in the logic, I couldn't really provide anything but guess what is happening. It sounds like potentially you are averaging a plot which contains 0 values in addition to the values you wanted to average, is that correct?


                  Please let me know if I may be of further assistance.
                  JesseNinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by TikDaddy, Today, 02:08 PM
                  3 responses
                  10 views
                  0 likes
                  Last Post TikDaddy  
                  Started by Brillo, Today, 01:52 PM
                  1 response
                  14 views
                  0 likes
                  Last Post NinjaTrader_Jim  
                  Started by TazoTodua, 02-09-2018, 08:40 AM
                  10 responses
                  882 views
                  0 likes
                  Last Post NinjaTrader_JoshG  
                  Started by TazoTodua, Yesterday, 04:35 AM
                  6 responses
                  18 views
                  0 likes
                  Last Post eDanny
                  by eDanny
                   
                  Started by MattP, Today, 12:25 PM
                  1 response
                  7 views
                  0 likes
                  Last Post NinjaTrader_PatrickG  
                  Working...
                  X