Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

recording key pressd similar to Hotkeys

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

    recording key pressd similar to Hotkeys

    Hi all !

    I would like to develope for an indicator a property that enables user to assign keys similar to the HOTKEY option in Ninja.
    I have taken a look at the SampleIndicatorTypeCOnverter example as I see there are several examples of different properties actions. But I haven't found a way to do it.

    I don't know if there is an option to accesss to the Hotkey element as we can with other design elements. If that's not the case, I don't know if you could provide infor of what clases or logic is behind that.

    Thanks

    #2
    Hi hbolorin, thanks for posting. The Ecosystem website has a couple of scripts made by the community that implements their own hotkeys that can be downloaded for study:

    This Indicator is a 1st modification of the ClickLimitOrderIndicatorExpanded from NinjaTrader_Jim previous share Hot keys for order entry Combined with the 2nd PreviewKeyTest share Hot keys for order entry With kind help from Ninjatrader_Jesse and Ninjatrader_Chelsea from thread Set QuantityUpDown value from keyboard The Script Use: The basic script executes BuyMkt and SellMkt orders with […]

    20220623 Update A MultiOrders Newer version of this Indicator is available here. This previous single Orders version is updated below to reflect some of the newer version features. Newer Version Features Included below: LONG and SHORT StopLoss OCO Move Up/Down Orders Rejection Prevention LONG and SHORT StopLoss OCO Move Up/Down Direction Lock (LONG & SHORT […]


    Kind regards,
    -ChrisL

    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

    Comment


      #3
      Hi, ChrisL

      First of all, thenk you for the examples. But thas is not what I was asking for.
      What I would like to do is to have a property in the indicator where I can record the key pressed, similar to the way the HotKey menu works. Something like this​
      Click image for larger version

Name:	Ejemplo.jpg
Views:	149
Size:	21.0 KB
ID:	1222409

      i have seen that this can be done with other elements like the account selector, using the code with the TypeCOnverter and the "Ninjatrader.ninjascript.AccountNameConverter" type.

      Code:
      [TypeConverter(typeof(NinjaTrader.NinjaScript.AccountNameConverter))]
      [Display(Name = "Account Name", Description = "Selects The Account (from Ones Available)", Order = 1, GroupName = "Account Selector")]
      public string AccountName { get; set; }​
      What I was trying to ask is if there is a way to reuse the "hot key record box" or if it is not the case, what classes or option I have to code that int he properties section of my indicator. Tha idea is that the user could chose what key he want to assign to severeal funstions in that indicator.

      thanks

      Comment


        #4
        Hi hbolorin, thanks for the follow up. There is nothing documented officially on these controls, so I would take trial and error testing and searching of the code base to find anything else about this subject. The examples that I linked are the only existing attempts that I know of.

        Kind regards,
        -ChrisL

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        628 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        359 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        562 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        568 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X