Announcement

Collapse
No announcement yet.

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 wftrrdt, Today, 05:01 AM
                  0 responses
                  3 views
                  0 likes
                  Last Post wftrrdt
                  by wftrrdt
                   
                  Started by wellbeingcbd, Today, 04:41 AM
                  0 responses
                  1 view
                  0 likes
                  Last Post wellbeingcbd  
                  Started by piydasuknu, Today, 03:45 AM
                  0 responses
                  3 views
                  0 likes
                  Last Post piydasuknu  
                  Started by ajdfkgjiojjhfihjg, Today, 03:20 AM
                  0 responses
                  3 views
                  0 likes
                  Last Post ajdfkgjiojjhfihjg  
                  Started by keravitahere, Today, 01:56 AM
                  0 responses
                  2 views
                  0 likes
                  Last Post keravitahere  
                  Working...
                  X