• 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

NinjaScript Base, ChartBars and ChartControl

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

    NinjaScript Base, ChartBars and ChartControl

    Hi,

    Can someone kindly illuminate me on the relationship between ChartBars, ChartControl and NinjascriptBase. I am trying to get a picture of what each does and how they fit together. Is there a way to get one from the other; for example, NinjaScriptBase from say ChartBars or ChartControl? Any information would be greatly appreciated. Thank you.

    #2
    Hello Zeos6,

    Thank you for your note.

    The ChartControl is the charts bar related properties and x axis. Helpguide Link,
    https://ninjatrader.com/support/help...artcontrol.htm

    ChartBars provides gui access related methods and properties to the primary bars series configured on the chart through the Data Series Manager. HG Link:
    https://ninjatrader.com/support/help...?chartbars.htm

    I suggest looking at the SampleCustomRender sample indicator preloaded on NinjaTrader for how these work together. The OnRender section of our helpguide provides another sample,
    https://ninjatrader.com/support/help.../?onrender.htm

    If you need further assistance if you could provide what it is you are attempting to do we can try and provide resources.

    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Hi AlanP,

      Thank you for your response. I was actually looking for more of an architectural/design overview of these items and an indication of where they might overlap, if anywhere.I am familiar with OnRender() so that is not an issue.

      The one area, however, I would like more clarity on is NinjaScript Base. What exactly is it and where does it fit in? Does it relate to ChartControl, or ChartBars, etc? Is there a way to get it from say ChartControl?

      Also, what exactly is the NinjaScriptBase owner and how is it obtained?

      Comment


        #4
        Hello Zeos6,

        In Ninjatrader we have a lot of inheritance and the NinjaScriptbase is one object which scripts inherit from to name the properties that they are supposed to have.

        Would you please provide your use case and whether this is related to drawing text on a chart from a custom bars type?

        I look forward to your reply.
        Alan P.NinjaTrader Customer Service

        Comment


          #5
          Hi AlanP,

          I wam trying to do two things:

          1. get a better understanding of how the various parts of NT fit together.
          2. Yes, I was also trying to find more information regarding the NinjaScriptBase to see whether it might be retrievable in some way from ChartControl. Yes, this is related to the SFT assigned to drawing objects from an AddOn.

          Thank you for your reply.

          Comment


            #6
            Hello Zeos6,

            An indicator has a ninjascript base, which is why having an indicator applied to the chart to display the text related to the bars type is the solution to what you’re looking to do.

            Trying to draw text on a chart from a custom bars type is unsupported.

            Please let us know if you need further assistance.
            Alan P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Bionian, Today, 02:47 PM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_Kate  
            Started by RickB60, Today, 01:55 PM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_PaulH  
            Started by filopearson, Today, 01:18 PM
            6 responses
            11 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by kujista, Today, 12:28 PM
            3 responses
            14 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by mroberts_nos, Today, 11:47 AM
            1 response
            12 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X