• 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

Send Left Arrow key from indicator

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

    Send Left Arrow key from indicator

    In NT7, is there way to send a Left Arrow key from within an indicator or strategy script?
    I am trying to hide the active bar in a chart from view.

    I have tried :
    Code:
    System.Windows.Forms.SendKeys.Send("{LEFT}");
    but it does not work on a Chart window.

    Any help would be appreciated.
    Is this possible in NT8?

    #2
    Hello Camdo,

    Using SendKey is not documented and is not supported by NinjaTrader support.

    Below I am providing a link to another forum thread where a community member may have gotten this to work.
    http://ninjatrader.com/support/forum...ad.php?t=70400

    With NinjaTrader 8, this is also unsupported and possibly could be achieved the same way, but there are a lot more commands you can trigger without needing a hotkey. (For example refreshing a chart)

    Another community member was able send keys using a 3rd party library and created a script that uses this.
    http://ninjatrader.com/support/forum...php?linkid=781

    This post on stackoverflow has also been recommended by community members in the past.
    http://stackoverflow.com/questions/1...ss-events-in-c
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by dtl-saw, Today, 08:44 PM
    0 responses
    1 view
    0 likes
    Last Post dtl-saw
    by dtl-saw
     
    Started by ballboy11, Today, 04:29 PM
    0 responses
    8 views
    0 likes
    Last Post ballboy11  
    Started by zacharydw00, Today, 02:29 PM
    2 responses
    23 views
    0 likes
    Last Post zacharydw00  
    Started by timcjpfx, Today, 06:22 AM
    4 responses
    27 views
    0 likes
    Last Post timcjpfx  
    Started by welson, Today, 08:26 AM
    2 responses
    18 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Working...
    X