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

One Plot in Indicator's Panel and another in Price Panel

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

    One Plot in Indicator's Panel and another in Price Panel

    Hello:

    Is there any way to draw one plot in indicator panel and another plot in price panel?

    I am developing an indicator that shows a red bar when the WMA is descending and a green bar when ascending.

    I want the same indicator can also show the WMA in the price panel, is it possible?

    Thanks!

    #2
    Hi jatubio,

    For this, you can use "BarColor"
    More info at - http://www.ninjatrader-support.com/H....html?BarColor

    You can use "Overlay = true" to overlay the WMA, however, this will apply to all plots.
    More info at - http://www.ninjatrader-support.com/H...e.html?Overlay
    TimNinjaTrader Customer Service

    Comment


      #3
      Thank you Tim,

      I can't use BarColor because the bars are drawn on the indicator panel.

      What i want if possible, is to use Overlay only for some Plots and not to all plots. Or for each plot to set the panel number where to drawn

      Comment


        #4
        Hi jatubio,

        Not sure how the bars are being drawn, but you can use DrawOnPricePanel before the DrawLine(), for example, statement.
        More info at - http://www.ninjatrader-support.com/H...awPriceOnPanel

        However, if these are plots, and you need to separate them amongst the panels, you will, unfortunately, need to create separate indicators.
        TimNinjaTrader Customer Service

        Comment


          #5
          Tim, thank you for your fast reply.

          I think it's not possible to do what i want.. but i try to explain better

          I have this code:
          Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.Green),2), PlotStyle.Bar, "PlotTrendMA"));
          Add(new Plot(Color.Orange, "PlotWMA"));

          I want to show PlotTrendMA into panel indicator and PlotWMA into price panel.

          Best Regards

          Comment


            #6
            Hi jatubio,

            Understood, however, unfortunately, this is not possible and will need to be done with separate indicators.
            TimNinjaTrader Customer Service

            Comment


              #7
              Ok Tim, thank you very much

              Comment


                #8
                You're very welcome.

                Happy Coding!
                TimNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by ccbiasi, 11-23-2017, 06:06 AM
                6 responses
                2,216 views
                0 likes
                Last Post NinjaTrader_LuisH  
                Started by Pattontje, Yesterday, 11:54 PM
                1 response
                5 views
                0 likes
                Last Post NinjaTrader_LuisH  
                Started by Pattontje, Today, 12:10 AM
                1 response
                4 views
                0 likes
                Last Post NinjaTrader_Erick  
                Started by llanqui, Yesterday, 03:51 PM
                1 response
                18 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by kujista, Yesterday, 12:39 AM
                5 responses
                19 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Working...
                X