Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom graphic object

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

    Custom graphic object

    I would like to create an indicator which draws a graphic object on the chart. Specifically, I want two rectangles (boxes) joined together as one object, one box representing distance to a price target the other a stop projection on the chart. The graphic should be able to be dragged around using the mouse so I can overlay it on the current price and see if targets/stops fit into the price action. It should resize/move when the price axis changes. My questions are:

    1. Is something like this technically possible?

    2. If it is possible is there any code avaliable to give some general guidance so I don't have to reinvent the wheel?

    Thanks

    P.S. I think something like this would be very useful to many traders. It would be nice if it was included as a standard drawing tool in NinjaTrader, Hint, Hint....
    Last edited by seahn; 01-15-2014, 10:20 PM.

    #2
    seahn, thanks for the post and feedback. Creating a custom drawing object would not be possible currently unfortunately, but we do run an enhancement suggestion on our tracking lists in this regard, I will make sure your vote is considered.

    Comment


      #3
      Originally posted by seahn View Post
      I would like to create an indicator which draws a graphic object on the chart. Specifically, I want two rectangles (boxes) joined together as one object, one box representing distance to a price target the other a stop projection on the chart. The graphic should be able to be dragged around using the mouse so I can overlay it on the current price and see if targets/stops fit into the price action. It should resize/move when the price axis changes. My questions are:

      1. Is something like this technically possible?

      2. If it is possible is there any code avaliable to give some general guidance so I don't have to reinvent the wheel?

      Thanks

      P.S. I think something like this would be very useful to many traders. It would be nice if it was included as a standard drawing tool in NinjaTrader, Hint, Hint....
      Unlock the DrawObject after you create it.
      Code:
      IRectangle seahnRect = DrawRectangle(...);
      seahnRect.Locked = false;
      ref: http://www.ninjatrader.com/support/h...drawobject.htm

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      149 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      84 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      129 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      125 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      102 views
      0 likes
      Last Post CarlTrading  
      Working...
      X