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

Mouseclick event

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

    Mouseclick event

    I would like to know the syntax for taking bar values (high/low) into two variables when a historic bar is clicked by the mouse.
    Can anyone assist, point me in the right direction?

    #2
    There is no supported mouse click event in NinjaScript at this time.
    RayNinjaTrader Customer Service

    Comment


      #3
      Mousetrap

      How strange - does the data box not use a form of mouseclick event?
      Perhaps I can put it forward as a suggested development?

      So is there anyway to reference a particular bar by the use of the mouse at all? I ask because I use mtpredictor and that has a form of this - perhaps the coding is more complicated than just NS?

      Comment


        #4
        Hello,


        It is not supported, but may be possible using advanced programming.
        DenNinjaTrader Customer Service

        Comment


          #5
          mindset.

          Google C# mouse event.
          mrlogik
          NinjaTrader Ecosystem Vendor - Purelogik Trading

          Comment


            #6
            thanks

            Mrlogik
            thank you but I have only been learning NS for the last 2 weeks or so. I am at the " a little knowledge is a dangerous thing " stage.
            I think I am going to have to get a book or do a course on C# - I get some of it but clearly not enough to understand what I want to do yet.

            I learnt easy language through deciphering the code and help on the forums from other users - NT seems a little more difficult than that and I have no real desire to learn programming per se but it looks like that is no longer an option.
            Mostly I just want to trade!

            Comment


              #7
              Update

              Well I brought myself a couple of books and at least I can now get my way around most of the code that is posted here and create a little of my own.
              It seems that the advanced stuff like mouse clicks can be done but at a price. In the end it is relatively straightforward but the lack of documentation on Ninja Script esp references makes it very difficult if not impossible for the average trader/programmer.

              I can see that continuing to learn C# is the way forward but I sincerely hope that v7 when (if?) its released has much more documentation so that if the forums don't support it at least you can attempt it yourself rather than being left in the dark.
              eg how to set a control, how to get at the toolbar,...

              Comment


                #8
                Mindset, we're working on enhancing our educational resources for NinjaScript with NinjaTrader 7 - thanks for the input and suggestion, I'll forward it, but please keep in mind that using unsupported code could mean your codes 'breaks' in future versions and thus would need to be updated.
                BertrandNinjaTrader Customer Service

                Comment


                  #9
                  jeez that is a fast response

                  Exactly why I can't resell it and recoup some of the cost! :-)

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by bortz, 11-06-2023, 08:04 AM
                  47 responses
                  1,607 views
                  0 likes
                  Last Post aligator  
                  Started by jaybedreamin, Today, 05:56 PM
                  0 responses
                  9 views
                  0 likes
                  Last Post jaybedreamin  
                  Started by DJ888, 04-16-2024, 06:09 PM
                  6 responses
                  19 views
                  0 likes
                  Last Post DJ888
                  by DJ888
                   
                  Started by Jon17, Today, 04:33 PM
                  0 responses
                  6 views
                  0 likes
                  Last Post Jon17
                  by Jon17
                   
                  Started by Javierw.ok, Today, 04:12 PM
                  0 responses
                  16 views
                  0 likes
                  Last Post Javierw.ok  
                  Working...
                  X