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

draw on price panel

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

    draw on price panel

    Hi,

    I would like to add 2 indicators on my strategy chart
    One need to plot on price panel and the other need to plot on indicator panel.

    Please kindly advise how to do. thx !

    #2
    Please see this tip: http://www.ninjatrader-support.com/v...ead.php?t=3228

    You want to use .Panel = 0 for the one you want on the price panel.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Hi,

      Tried. but seems not working
      My indicator : MySMA(10)

      I add following to initialize section :
      MySMA(10).DrawOnPricePanel=true;
      Add(MySMA(10));

      OR

      MySMA(10).Panel=0;
      Add(MySMA(10));



      But the indicator still plot on a new indicator panel. Please kindly advise. thx !

      Comment


        #4
        The second option should be what you type. It should work as you put it. In your indicator you are using plots correct?
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Hi,

          I tried again to code in my strategy but NO luck
          if I change to syntax as follows

          MySMA(10).Panel= x; //where x is integer other than zero
          Add(MySMA(10));

          It correctly plot. For example, assume x is 2, it correctly plot on 2nd indicator panel.
          But it just cannot plot on price panel of my strategy chart !!!
          very strange ?! any setting or configuration need to change ?!

          Comment


            #6
            Nope. You will need to be more specific as to how your indicator and strategy are constructed. If you post them up then we can see where exactly it is messing up.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Hi,

              I change the indicator to ccSMAmultiple
              Now, I attached the indicator file (ie ccSMAmultiple.cs)

              I put the following lines to my strategy
              ccSMAmultiple(1).Panel=0;
              Add(ccSMAmultiple(1));

              please kindly advice. thx !
              Attached Files

              Comment


                #8
                Please see here: http://www.ninjatrader-support.com/H...6/Overlay.html

                Comment


                  #9
                  Hi,

                  thx a lot

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by snoussi, Today, 12:26 PM
                  0 responses
                  5 views
                  0 likes
                  Last Post snoussi
                  by snoussi
                   
                  Started by SnailHorn, 05-02-2024, 10:49 PM
                  3 responses
                  28 views
                  0 likes
                  Last Post SnailHorn  
                  Started by giulyko00, Today, 11:49 AM
                  1 response
                  6 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by marksingh87, 02-13-2024, 04:55 PM
                  6 responses
                  212 views
                  1 like
                  Last Post mshrstv
                  by mshrstv
                   
                  Started by SnailHorn, Today, 08:38 AM
                  2 responses
                  5 views
                  0 likes
                  Last Post SnailHorn  
                  Working...
                  X