Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Directing SMA of Indicator to the Indicator panel

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

    Directing SMA of Indicator to the Indicator panel

    Hi,

    I'm trying to plot the SMA of a standard indicator but have it appear as an overlay on the indicator panel. At the moment it appears on the price panel by default which doesn't make any sense as the scales are totally different.

    The only way I can see to do this is to duplicate the indicator and build-in my SMA, I'm assuming there must be a better more eligant way!

    I've managed to do all this on a standard chart easily enough but just can't see how to replicate it within my Ninja Script.

    Any ideas?

    Thanks in adcance for your help.

    Oz

    #2
    Oz, you can try setting the ScaleJustification as needed from your code's Initialize() -

    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hi Bertrand,

      Thanks, is there any way that I can do this without modifying the indicator? As this is a standard built-in indicator I was hoping that there was a simple way to just "re-direct" to the indicator panel. I ask as I do this all of the time on the charts with many of the common/built-in indicators and would expect it to be something straightforward to do within Ninja Script.

      e.g.

      Add(CMO(14));
      Add(SMA(CMO(14)));

      // Now do something to force the "Add(SMA(CMO(14)))" plot to appear in the original CMO() panel
      // from within the main code segment

      Thanks again

      Oz

      Comment


        #4
        If you're adding indicators from a strategy, please try those tips to plot on a specific scale :

        BertrandNinjaTrader Customer Service

        Comment


          #5
          That's just what I needed!! Thank you.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by bortz, 11-06-2023, 08:04 AM
          47 responses
          1,607 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          9 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          19 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          6 views
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          15 views
          0 likes
          Last Post Javierw.ok  
          Working...
          X