Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw Ractangle

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

    Draw Ractangle

    How can i select area (rectangle-with right click to start) over the chart and get the data of the candles inside the rectangle in ninja script?

    #2
    Hello jignesh142,

    Using all supported methods, you would need to draw a normal rectangle, then loop through the drawing objects collection on a bar update or market event and get the end points.

    Below is a link to the help guide with an example.
    http://ninjatrader.com/support/helpG...rawobjects.htm

    By using the drawing objects StartBarsAgo and EndBarsAgo, you will have a range of bars

    If would want this to trigger specifically when drawn, this would requiring making a copy of the drawing tool and then modifying this. For NinjaTrader 7, custom drawing tools are possible but are not fully supported by NinjaTrader Support. However, these are supported and expanded on with more documented tools in NinjaTrader 8.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by i2w8am9ii2, Today, 06:29 PM
    2 responses
    7 views
    0 likes
    Last Post i2w8am9ii2  
    Started by Kirk Thorns, Today, 05:34 PM
    0 responses
    6 views
    0 likes
    Last Post Kirk Thorns  
    Started by JobDjassem, Today, 05:24 PM
    0 responses
    11 views
    0 likes
    Last Post JobDjassem  
    Started by Kirk Thorns, Today, 05:06 PM
    0 responses
    12 views
    0 likes
    Last Post Kirk Thorns  
    Started by CyberNate, Today, 03:11 PM
    5 responses
    31 views
    0 likes
    Last Post CyberNate  
    Working...
    X