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

Add bottom plot and add data to it

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

    Add bottom plot and add data to it

    Hi,

    I would like to plot the data on the bottom chart of the chart panel. I can plot data using AddPlot() function. but it plots nicely if the scale matched with price range. I like to add one more plot at the bottom and add data to it from NinjaScript. Like plotting RSI indicator for example. Please let me know if you know how to do that.

    I can provide more information if needed
    Thanks
    Avi007

    #2
    Hello avi007,

    An indicator can only plot in one panel at once so for what you described you would need to use two indicators so one can plot in the chart area and one can plot in its own panel.

    To make an indicator use a new panel you can use IsOverlay = false;

    JesseNinjaTrader Customer Service

    Comment


      #3
      Thank you for your reply. It kind of solves the problem not completely. I am building a strategy where some data that I generate needs to be plotted on main Panel with price vs Time and some data needs to be plotted on a new panel. When I use overlay, it plots everything into a new separate panel.

      May be the right question is: How can I create a new chart panel and draw data there using AddPlot()

      Comment


        #4
        Hello avi007,

        That's a little different in that case, a strategy can plot to multiple panels by using multiple indicators. There is a sample of plotting strategy date to a sub panel and the price panel in the following link: https://ninjatrader.com/support/help..._a_ninjasc.htm

        In that sample one indicator is using IsOverlay and the other is not, the strategy adds both indicators so it can plot in those areas.

        JesseNinjaTrader Customer Service

        Comment


          #5
          Thank you, this is exactly what I was looking for.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by DanielTynera, Today, 01:14 AM
          0 responses
          2 views
          0 likes
          Last Post DanielTynera  
          Started by yertle, 04-18-2024, 08:38 AM
          9 responses
          40 views
          0 likes
          Last Post yertle
          by yertle
           
          Started by techgetgame, Yesterday, 11:42 PM
          0 responses
          12 views
          0 likes
          Last Post techgetgame  
          Started by sephichapdson, Yesterday, 11:36 PM
          0 responses
          2 views
          0 likes
          Last Post sephichapdson  
          Started by bortz, 11-06-2023, 08:04 AM
          47 responses
          1,615 views
          0 likes
          Last Post aligator  
          Working...
          X