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 TraderBCL, Today, 04:38 AM
          2 responses
          16 views
          0 likes
          Last Post TraderBCL  
          Started by martin70, 03-24-2023, 04:58 AM
          14 responses
          106 views
          0 likes
          Last Post martin70  
          Started by Radano, 06-10-2021, 01:40 AM
          19 responses
          609 views
          0 likes
          Last Post Radano
          by Radano
           
          Started by KenneGaray, Today, 03:48 AM
          0 responses
          5 views
          0 likes
          Last Post KenneGaray  
          Started by thanajo, 05-04-2021, 02:11 AM
          4 responses
          471 views
          0 likes
          Last Post tradingnasdaqprueba  
          Working...
          X