• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Setting hotkey to place different text on chart

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

    Setting hotkey to place different text on chart

    During trading I place text markers on my chart, e.g. H1, H2, H3, DT, L1, L2, L3, DB etc. to identify signal bars, speciifically for review afterwards.

    Is it possible to automate the process? Can I set ctrl + alt + F2 to place the text H1 above a bar, and ctrl + alt + F3 to place L1?

    Sorry if this has been asked already, it didn't show up in a search.

    #2
    Hi adamus,

    You can attach hotkeys to drawing objects, but not at specific points. They're shortcuts intended for manual drawing.

    You can programatically draw text over a signal bar though:
    http://www.ninjatrader.com/support/h...7/drawtext.htm
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Sure, I'm not fussed about that bit actually, if that's what it sounded like.

      I would like to have the ability to hotkey and then click into place a text box with text already in it, and without the edit dialog popping up.

      If I wrote a piece of ninjascript, could I attach it to a hotkey somehow in the hotkeys manager?

      Comment


        #4
        Unfortunately, there's no way to attach NinjaScript to a hotkey. What you want to do should be possible with custom programming, but outside our scope of support. You check within your script for keypresses and then submit DrawText() commands when the event is raised. For more details, check MSDN for keypress events in C#.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          ok, thanks for the info.

          Comment


            #6
            I've got another question - when I change the y-axis with my mouse, generally grabbing the y-axis and pushing up or down to change the range of data shown, a little box with an "F" appears in the top right corner and I have to press that to get the chart to auto-scale again.

            I'm doing this a lot. Is there any way I can set a hotkey to reset the chart, instead of relying on my mouse?

            Thanks

            Comment


              #7
              This is not currently possible but we are tracking the suggestion with ID # 197. Thanks for the observation.
              Ryan M.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by ntbone, Today, 09:54 PM
              0 responses
              1 view
              0 likes
              Last Post ntbone
              by ntbone
               
              Started by rwilliam, Today, 03:14 PM
              0 responses
              5 views
              0 likes
              Last Post rwilliam  
              Started by rwilliam, Today, 03:10 PM
              1 response
              4 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by rontronimous, Today, 03:04 PM
              2 responses
              8 views
              0 likes
              Last Post rontronimous  
              Started by zacharydw00, Today, 03:14 PM
              0 responses
              5 views
              0 likes
              Last Post zacharydw00  
              Working...
              X