Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Variable for drawing rectangles

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

    Variable for drawing rectangles

    I am trying to draw a series of rectangles generated by code. These are not fixed number.
    My code generates x and y coordinates for rectangles to be plotted on price chart. I do not know how many objects as these are code generated depending on price action.
    What I like to do is:
    1. Rectangles = { (x1,y1), (x2,y2),(x3,y3),…..} These are Unknown number of values.
    2. Drawrectangle plots all the rectangles on the chart.
    3. There is an another function processing the values in Rectangles( = { (x1,y1), (x2,y2),(x3,y3),…..} ), and are updated after each barupdate.
    I am trying to define a List by name “Rectangles “ containing (x1,y1), (x2,y2),(x3,y3),….. as there are no limitation in number of objects in a List. I can then process the data in this List.
    Can some one help me in defining the Variable “Rectangle” that contains the coordinates (x,y)
    Any help is highly appreciated.

    #2
    malmaa, unfortunately this outside of the scope we can support - as an idea you can review MSDN's ArrayList help to get started on this - http://msdn.microsoft.com/en-us/libr...rs(VS.80).aspx
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by helpwanted, Today, 03:06 AM
    1 response
    12 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    9 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    5 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    242 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    387 views
    1 like
    Last Post Gavini
    by Gavini
     
    Working...
    X