Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Panel drawing selection from Strategy

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

    Panel drawing selection from Strategy

    Hi,
    I remember reading somewhere there is a command to stipulate which panel (price or an indicator) is drawn on from a Strategy.
    Unfortunately I can't find it again, so I'd appreciate it if you could point me in the right direction.
    For instance, how to control which panel DrawDot() draws on.
    Oh, and is it adjustable throughout, or is it a "set once" instruction within the Initialise() ?
    Thanks!
    saltminer

    #2
    Hello,


    It depends on what you are trying to do:

    If you are using draw objects within an indicator use DrawOnPricePanel:

    I believe you can adjust it throughout, but have never tried it. Give it a shot.

    If you are adding an indicator to a strategy, you can change the panel using this link:


    Here is an example using VOLMA:

    VOLMA(20).Panel = 2;
    Add(VOLMA(20));
    DenNinjaTrader Customer Service

    Comment


      #3
      Thanks for your reply. However I am discussing drawing from a STRATEGY.

      DrawOnPricePanel is not valid within a Strategy. (doesn't exist)

      What I'd like to do is to control on which panel Draw instructions such as
      DrawDot()
      DrawLine()
      DrawDiamond()
      and so on get drawn on from within a Strategy. Is this possible?

      Thanks,
      saltminer

      Comment


        #4
        Hello,

        All draw objects from strategies are drawn on the price chart. Drawing on the lower panels is not supported in Strategies.

        You can draw the objects on the lower panels if you do it from an indicator.
        DenNinjaTrader Customer Service

        Comment


          #5
          I am disappointed to find out that this is not possible. I hope it will be considered for a future release.

          Comment


            #6
            Hello,

            I will send your request in to our development department for consideration.
            DenNinjaTrader Customer Service

            Comment


              #7
              I am in need of this now as well, and after searching I find it is not supported.

              Why when I add a strategy can I not control which panel it outputs to?

              Why can I not force it into a certain panel, like with an indicator?

              Will this be added in NT7?

              Thx,
              Mike

              Comment


                #8
                I don't believe it will be added to NT7. You could try the StrategyPlot indicator (search the forum on this) and then set the panel number for this indicator. I am not sure if this will work, but its the only workaround that I could think up.

                StrategyPlotIndicator().Panel = yourPanel;

                Pseudo code above is a conceptual example.
                RayNinjaTrader Customer Service

                Comment


                  #9
                  Ray,

                  Thank you for this. I will be trying it and hope it works!

                  Mike

                  Comment


                    #10
                    I have the same question, but two years later.

                    Maybe this issue was resolved in NT7 - I would like to choose any panel(2,3...) when using Drawing Methods(DrawLine, DrawRay, etc) in STRATEGY.


                    Thanks
                    YB

                    Comment


                      #11
                      byi777, nothing has changed for NT7 with regards to price panel drawing.
                      AustinNinjaTrader Customer Service

                      Comment


                        #12
                        I've built few Plots from Strategy on Panels 2,3,...

                        How I could add Zero Line Axis from Strategy?
                        Should I just create additional Plot with Value=0 or there is some replacement in Strategy programming tools for Indicator's Method Line (similar to
                        Add(new Line(Color.FromKnownColor(KnownColor.DarkOliveGree n), 0, "ZeroLine")).


                        Thanks
                        YB

                        Comment


                          #13
                          byi777,

                          Unfortunately you cannot create lines and plots like that from a strategy. If you wanted to draw on Panel 1, you could do something like DrawHorizontalLine(). But if you wanted something in panel 2 or 3 you would instead want to add that code to the indicators directly.
                          Josh P.NinjaTrader Customer Service

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by andrewtrades, Today, 04:57 PM
                          1 response
                          8 views
                          0 likes
                          Last Post NinjaTrader_Manfred  
                          Started by chbruno, Today, 04:10 PM
                          0 responses
                          6 views
                          0 likes
                          Last Post chbruno
                          by chbruno
                           
                          Started by josh18955, 03-25-2023, 11:16 AM
                          6 responses
                          436 views
                          0 likes
                          Last Post Delerium  
                          Started by FAQtrader, Today, 03:35 PM
                          0 responses
                          7 views
                          0 likes
                          Last Post FAQtrader  
                          Started by rocketman7, Today, 09:41 AM
                          5 responses
                          19 views
                          0 likes
                          Last Post NinjaTrader_Jesse  
                          Working...
                          X