• 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

Simulated draw object click

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

    Simulated draw object click

    Is there a method that allows me to create the same effect of clicking on a drawing tool in the drawing menu?

    For example, if my indicator has custom buttons built into it, I want one of those buttons to do the same thing as if a user was to click the drawing toolbar and select rectangle.

    I know how to have the button click draw a rectangle on the chart but the only way so far I see to let the user draw it is to use a send key (something I want to avoid)

    #2
    Hello,

    Currently I do not know of a way to call the specific method the button press does, I will put in a question to development to see if that is / can be exposed for use.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello,

      I wanted to reply back.

      Currently there are no public or exposed methods to create a instance of a DrawingTool the same way the context menu does unfortunately. Anything that may be located by users at this point would be undocumented.

      This item has been added as a feature request for further review on exposing a way to do this.

      I look forward to being of further assistance.
      JesseNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by aslane, Today, 01:29 PM
      1 response
      8 views
      0 likes
      Last Post aslane
      by aslane
       
      Started by itrader46, Today, 01:09 PM
      0 responses
      5 views
      0 likes
      Last Post itrader46  
      Started by elnoppo, Today, 12:38 PM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by TradingRocks, Today, 11:44 AM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by Brillo, Today, 11:39 AM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X