Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Display price and time dimensions for lines and rectangles?

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

    Display price and time dimensions for lines and rectangles?

    Hello guys,

    I wanted to say about a common feature in other softwares I've used, that I really miss.

    I draw lines/angles + rectangles.
    And I want to see the time and price sizes of these lines and rectangles when I create/resize them.
    Right now, it's a pain in the $#% to draw what I need. I first have to use the ruler. Then create the line (or the rectangle).
    Is it possible for me to overcome this by myself through programming?
    Is it possible for ninja team to implement this simple and useful feature?

    Kind of frustrated right now, hence this post

    anyway,
    I appreciate the progress of ninjatrader

    Success!

    #2
    Hi mishhh,

    Thanks for taking the time to write in with this.


    I will forward this enhancement request on to development for further consideration as a future addition to the software. Again, thanks for your feedback!
    KyleNinjaTrader Customer Service

    Comment


      #3
      You're welcome Kyle,

      I understand, and I hope they will see this feature useful.

      Anyway, I'm not aware if it's possible for me as a user to overcome this in case they have other priorities.

      Is it possible? I'm not proficient with c#, but I can give it a try.

      Success!

      Comment


        #4
        Hi mishhh,

        This may be possible through custom programming, but it would require extensive programming in the non-supported areas of NinjaScript.
        KyleNinjaTrader Customer Service

        Comment


          #5
          Could you be more precise? Maybe show a picture of what you want to see ?

          Comment


            #6
            Koganam,

            Sorry for not replying sooner,
            I didn't get an email when you posted.

            Anyway, it's enough to open any metatrader platform, MT4 or MT5.
            Each time when you create a line or a rectangle (or other shapes), you see the parameters of the shape in price and time (like 120 pips and 100 bars near the mouse)

            Attached are 2 examples from MT5
            Attached Files

            Comment


              #7
              One more thing or question,

              I've investigated yesterday ninjascript in deeper detail (in help and the forum as well).
              But I didn't find any relevant information to some customization of this sort.

              In MT5, they expose some events, like OnCreate, OnDelete, OnResize etc...
              They expose the mouse coordinates too, so it's quite easy to implement something like displaying info about some line or rectangle.

              As I don't understand ninjascript too well, and its relationship with C#, I have a question:
              How can I catch OnResize event for some object?
              Is this strictly C# related?
              Is ninjatrader exposing these events?

              I would prefer to create some indicator just for this task, so I can jump from Metatrader to ninjatrader (as I study a lot).

              Comment


                #8
                Hello,

                This would be all c# programming. Would suggest using google and searching for the term getting the mouse coordinates in c# or something like that to get information on how to do this.

                This is all standard c# programming that you can add in however Unfortuanley we cannot support it.

                Let me know if I can be of further assistance.

                Comment


                  #9
                  Thank you Brett for your answer.

                  I know C# is out of your support.

                  Still, I don't see what I could use from getting mouse coordinates.

                  I need to know when a line/rectangle get resized.

                  I don't see where you are pointing at.

                  (Of course getting mouse coordinates and translating these into time and price on chart would be extremely useful)

                  Comment


                    #10
                    Hello,

                    This is Unfortuanley still falls under unsupported as we dont have any methods or exposing of the coords from a chart control stand point. What I was refereing too was just getting the basic .net framework exposed mouse control object.



                    This link here may or may not assist you however. I found this in my search for information here.

                    Let me know if I can be of further assistance.

                    Comment


                      #11
                      Thanks Brett, I will investigate your link.

                      To help me clarify an aspect of ninjatrader,
                      does ninjatrader expose events resulted from interaction between user and drawn objects?

                      in case not, does ninja team plan something about exposing these events in the future?

                      I guess this is enough for me to know for now.

                      Thank you again.

                      Comment


                        #12
                        Hello,

                        Yes, when you draw a drawn object you can interface with it in NinjaScript. However you cannot create your own drawing objects in NinjaScript without unsupported coding.

                        iDrawObjectL



                        Let me know if I can be of further assistance.

                        Comment


                          #13
                          So the core question (it seems it's because my lack of understanding c# and ninjascript):

                          After creating some object, how will I know the object has been changed? resized?
                          I saw the interface IDrawObject, (methods and properties).

                          Though, I cannot see how I will know when the object is changed by user.
                          Can I treat this event through ninjascript functions?
                          Or will I treat this event though c#?

                          Comment


                            #14
                            Hello,

                            There is no way to tell that its changed.

                            Its values will update when it is changed.

                            For example, you draw a box around Point A-B and want to display a text object above Point B. You can link to this drawing object and then draw yor text above everythings good.

                            Now lets say the user changes the points. The on the next OnBarUpdate() call the indicator or strategy will then again draw the text above the new location of Point B and change the text over automatically for you.

                            Therefor there really wasnt a need to an Event for user change here as its location is constantly queried from the strategy/indicator.

                            Let me know if I can be of further assistance.

                            Comment


                              #15
                              I understand now.
                              It's exactly as in MT4.
                              In MT5 they've introduced events, but in MT4 there was no event available for the programmer.

                              Thank you Brett, it's much clearer now.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by ghoul, Today, 06:02 PM
                              3 responses
                              14 views
                              0 likes
                              Last Post NinjaTrader_Manfred  
                              Started by jeronymite, 04-12-2024, 04:26 PM
                              3 responses
                              44 views
                              0 likes
                              Last Post jeronymite  
                              Started by Barry Milan, Yesterday, 10:35 PM
                              7 responses
                              20 views
                              0 likes
                              Last Post NinjaTrader_Manfred  
                              Started by AttiM, 02-14-2024, 05:20 PM
                              10 responses
                              180 views
                              0 likes
                              Last Post jeronymite  
                              Started by DanielSanMartin, Yesterday, 02:37 PM
                              2 responses
                              13 views
                              0 likes
                              Last Post DanielSanMartin  
                              Working...
                              X