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 Dutch4756, Today, 04:57 PM
          0 responses
          6 views
          0 likes
          Last Post Dutch4756  
          Started by DerkWehler, 12-04-2024, 09:00 AM
          7 responses
          74 views
          3 likes
          Last Post RobEB
          by RobEB
           
          Started by _Gabor_, 12-03-2024, 12:16 PM
          4 responses
          28 views
          0 likes
          Last Post _Gabor_
          by _Gabor_
           
          Started by trelling, 11-28-2024, 01:50 PM
          6 responses
          52 views
          0 likes
          Last Post trelling  
          Started by nelslynn, Today, 03:52 PM
          0 responses
          6 views
          0 likes
          Last Post nelslynn  
          Working...
          X