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 Chart Market from an indicator plotting behind Candles

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

    Draw Chart Market from an indicator plotting behind Candles

    Hello,

    I added Chart Markers within an indicator. In this case, TriangleUp.

    I used this line
    Code:
    DrawTriangleUp("Sqrteeze long"+CurrentBar.ToString(),true,0,Open[0],Color.Orange);
    Alas, when displaying on the chart, the diamonds appear behind the candles/bar types.
    Which means if the diamond is behind the wick, I can partially see it, but when it's behind the corpse of the candle, I don't see it anymore.

    Is there a way to correct this ? Because like this, it is useless.

    Thank you


    Last edited by SARdynamite; 07-09-2010, 12:24 PM.

    #2
    Needless to say, if Chart Markers are added manually (right click ==> Drawing Tools), they appear in front of candles, contrary to when coded within an indicator.

    Comment


      #3
      Hello,

      Are you using NinjaTrader 6.5 or NinjaTrader 7?

      I look forward to assisting you further.

      Comment


        #4
        Hello,

        I'm using NT7 beta 18

        Comment


          #5
          Hello,


          In this case, please left click on the indicator to select it then hold down shift and scroll your mouse wheel to bring this to the top of the candles. This is new to NT7 to allow you to choose the Z axis.



          I look forward to assisting you further.

          Comment


            #6
            Thanks for the tip.

            However, is there a way to code the Z-index inside the indicator.

            Because inside this indicator I also have lines which I want to plot normally (behind candles) but I see the whole indicator is linked to the same z-control feature.

            Comment


              #7
              Hello,

              There is no way to specify manually.

              However you can set it to be on a different Z order then the indicator. Thus providing the about the same functionality of NinjaTrader 6.5 in that regard. The parameter is
              SeparateZOrder set this to True.



              Let me know if I can be of further assistance.

              Comment


                #8
                Thank you

                It would be nice if you could forward this idea to the development team : set the Z-order individually for each itme inside a NinjaScript

                Comment


                  #9
                  Hello,

                  Thank you for your suggestion. I will forward to development.

                  Have a great weekend.

                  Comment


                    #10
                    Sorry ! Just before the weekend

                    Code:
                    foreach (IDrawObject draw in DrawObjects) draw.SeparateZOrder=true;
                    is that line only to use different Zorders for DrawObjects only ?

                    my indicator has :
                    - one plot as a line
                    - one DrawObject as a TriangleUp

                    Can I separate their Zorder or is it not possible because one is a plot and the other one a drawObject ???

                    Comment


                      #11
                      Hello,


                      No problem.


                      The plot Z order will be the indicator Z order. The line of code you just submitted will only seperate the Z Order of the drawing objects on the chart and this looks correct.



                      Let me know if I can be of further assistance.

                      Comment


                        #12
                        Hello !

                        So the code like that should allow me to set separatatly the ZOrder of the indicator on the chart (plot lines + draw object) and THEN, set a different ZOrder for the draw object ? (so that plot lines and draw Objects are separated)

                        How do I set the ZOrder for the whole indicator and after that for the Draw Objects only ?

                        For now, both are still linked to my eyes... can't make it work.

                        Thank you

                        Comment


                          #13
                          Hello,

                          I will have someone reply to you on Monday. Thank you for your patience.
                          DenNinjaTrader Customer Service

                          Comment


                            #14
                            SARdynamite, unfortunately there is not yet a way to set the Z-order by code. It is on our feedback list though, so it could appear in NinjaTrader at some point in the future.
                            AustinNinjaTrader Customer Service

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by kevinenergy, 02-17-2023, 12:42 PM
                            118 responses
                            2,777 views
                            1 like
                            Last Post kevinenergy  
                            Started by briansaul, Today, 05:31 AM
                            0 responses
                            5 views
                            0 likes
                            Last Post briansaul  
                            Started by fwendolynlpxz, Today, 05:19 AM
                            0 responses
                            4 views
                            0 likes
                            Last Post fwendolynlpxz  
                            Started by traderqz, Yesterday, 12:06 AM
                            11 responses
                            28 views
                            0 likes
                            Last Post NinjaTrader_Gaby  
                            Started by PaulMohn, Today, 03:49 AM
                            0 responses
                            8 views
                            0 likes
                            Last Post PaulMohn  
                            Working...
                            X