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

Good way to have both non and overlay plot

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

    Good way to have both non and overlay plot

    Hello Support team,

    I am developing my own indicator, which currently has six plots on its own panel and draw regions and arrows on the price panel. Now I need to take it to next level in which in would churn out plots in relation to price level, so it can be used building strategies. But setting overlay to true means the whole plots appear at the price panel. I would need at least two plots on the price panel.
    What is the best way to do this?

    Thanks.

    Best Regards.
    Edward Kunafi

    #2
    Edward,

    It is an all or nothing setting. You will likely need to break up your indicator into two to add one as overlay and one in its own panel.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      you can then use both indicators in a dummy strategy. So that by launching the strategy you will plot both indicators (you have to tell the strategy to plot them of course)

      Comment


        #4
        If your calculations are computationally expensive then duplicating them in two different indicators *could* become an issue if the indicators are tick based on a fast moving instrument like CL.

        One workaround is to create a base indicator which does most of the calculations and then use that indicator and the exported values in two new plotting indicators which do the plotting. NT caches indicators with the same signature (instrument and input parameters) so there will be only one instance of the calculation indicator active.

        You will have to make sure that the Update() function is called on the base indicator before you use a value in the two plotting indicators.

        Comment


          #5
          Method to have overlay and non-overlay plots

          Thank you all for the recommendation.

          Regards.

          Edward K

          PS: Happy New Year, Cheers!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by manueldecastro, Yesterday, 10:26 AM
          6 responses
          25 views
          0 likes
          Last Post manueldecastro  
          Started by ETFVoyageur, 04-30-2024, 02:04 PM
          10 responses
          62 views
          0 likes
          Last Post ETFVoyageur  
          Started by cmtjoancolmenero, 04-29-2024, 03:40 PM
          24 responses
          75 views
          0 likes
          Last Post cmtjoancolmenero  
          Started by businessman1929, 04-29-2024, 01:28 PM
          3 responses
          32 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by mintos, 04-02-2024, 08:22 PM
          3 responses
          27 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X