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 r68cervera, Today, 05:29 AM
          0 responses
          2 views
          0 likes
          Last Post r68cervera  
          Started by geddyisodin, Today, 05:20 AM
          0 responses
          3 views
          0 likes
          Last Post geddyisodin  
          Started by JonesJoker, 04-22-2024, 12:23 PM
          6 responses
          34 views
          0 likes
          Last Post JonesJoker  
          Started by GussJ, 03-04-2020, 03:11 PM
          12 responses
          3,239 views
          0 likes
          Last Post Leafcutter  
          Started by AveryFlynn, Today, 04:57 AM
          0 responses
          6 views
          0 likes
          Last Post AveryFlynn  
          Working...
          X