Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Property manipulated from the Chart

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

    Property manipulated from the Chart

    Is it possible to put a property in a text box on the chart that the user could change ( arrow up arrow down ).
    If yes could you just guide me on how to do it.

    Thank you !

    #2
    hello blar58,

    Are you asking to make Up and down arrows in the chart which the user can click, or using the keyboard up and down arrows?

    Creating buttons you can see the following guide:


    If you meant the keyboard, you would have to handle the events yourself. This is not something which would be documented/supported however you can find information about this in other posts here. Here is one example of handling keyboard events: https://ninjatrader.com/support/foru...erlay-selector

    I look forward to being of further assistance.

    Comment


      #3
      I am thinking about Up and down arrows in the chart not keyboard.

      Comment


        #4
        hello blar58,

        Thank you for clarifying.

        In that case you can see the first link about creating buttons, you can use that as a guide for this type of idea. You would just need to create the buttons how you wanted either saying "Up" and "Down" or you could use images with a button as well. This will be a WPF button so you can search online for "WPF button styling" or "WPF button image" as some examples to customize it.

        The sample also shows the button event handler, that would be where you place your logic to update the quantity.

        An alternative would be to use the QuantityUpDown control, you can find an example of that control in the following post:



        This has two arrows and is a text box already, similar to the chart trader quantity selector.



        I look forward to being of further assistance.

        Comment


          #5
          Wow thank you Jesse

          This is exactly what I needed !

          Comment


            #6
            I have another problem because what I want to change is price level not quantity.
            So I changed QuantityUpDown for PriceUpDown.
            It shows price as 0.00000 and it doesn't change value when I click on the arrows.

            Any idea
            Attached Files

            Comment


              #7
              Hello blar58,

              Thank you for the reply.

              I tried this and see the same, however I am unable to find any sample where this has been used previously to know if this can actually be used in NinjaScript. I will need to review this control further to see if that will be possible to use from NinjaScript. For the time being I could suggest just using a text box and two buttons as you previously were asking about. You could likely just use the sample I linked earlier and add a textbox into that logic to achieve that.

              I look forward to being of further assistance.

              Comment


                #8
                OK
                Thank you very much Jesse

                Comment


                  #9
                  Hello blar58,

                  After looking further into it, if you set the TickSize property of the PriceUpDown it seems to start working.

                  I look forward to being of further assistance.

                  Comment


                    #10
                    Thank you very much Jesse !

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    649 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    370 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    109 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    574 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    576 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X