Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unsupported NT feature? Input field on chart to accept a double and calculate button?

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

    Unsupported NT feature? Input field on chart to accept a double and calculate button?

    Hello.

    I am wondering about an unsupported code feature, and that is to have a text field on a chart for an input. Next to that I'd like to have a 'calculate' button that would run a series of calculations. I would imagine a bool to show a checkbox would be a similar piece of code.

    I've attached an image showing the simplest version of this.

    If curious, the purpose is a position sizer for Forex(of which I have already built logic for), but having an input field, with a 'calculate' button would be much more user-friendly than having to open the user-input screen each time to add new values.

    Does anyone know of any NT code samples anywhere that accomplish such a thing, or an idea of where I should look to accomplish this?

    Attached Files

    #2
    Hello forrestang,

    Below is a link to an example of a textbox and preventing the instrument overlay selector.


    The help guide on the UserControlCollection.


    And a link to an example of modifying WPF.
    Hello All, Moving forward this will be maintained in the help guide reference samples and no longer maintained on the forum. Creating Chart WPF (UI) Modifications from an Indicator - https://ninjatrader.com/support/help...ui)-modifi.htm (https://ninjatrader.com/support/helpGuides/nt8/creating-chart-wpf-(ui)-modifi.htm) I've
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I still haven't figured this out yet, but just in case anyone is curious...

      I started learning about the SharpDX library, and managed to build a little dashboard that shows what I am doing.

      So the logic for the indie loads in the necessary data series to calculate position size for ANY pair(to include non-USD crosses). Right now, the inputs are shown, and that is that the user enters an account value, the desired risk percent, and a stop size. It then spits out the dollars risked(2nd to last column) and the required trade size(last column).

      I've used a rectangle to store the text... highlighted one of them blue temporarily just to show this.

      Right now, I have to manually enter these into the User Input window.

      This image should make clear what my original query was about, in that I would like the columns shown with the arrows, to actually be text fields where the user can input these values.

      I'm still working on understanding how to do the Input fields on the chart, so this image is just further clarification.
      Attached Files
      Last edited by forrestang; 12-18-2020, 09:58 PM.

      Comment


        #4
        ..........
        Attached Files

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        563 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        329 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        547 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        548 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X