Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

convert script nt7 in nt8.. problem

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

    convert script nt7 in nt8.. problem

    hi,
    i'm try to code script nt7 in nt8...

    i'm stop in a point of code...i don't know how i can change it

    IDrawingTool drawObject;
    ......

    tstr = "123Dp2," + obName.Substring(7);
    drawObject = DrawObjects[tstr];
    if (drawObject != null && drawObject.DrawType == DrawType.Text)

    this is nt7...

    now i want to code it in nt8...
    but i don't know this :

    drawObject.DrawType == DrawType.Text .. (the property .DrawType don't exist)

    how can i code it? thanks

    #2
    Hello esignal,

    There is an example of looping through the DrawObjects collection to match a specific DrawObject type in the help guide linked below. Please see the section 'Looping through the collection to find specific draw objects'.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DJ888, Today, 10:57 PM
    0 responses
    6 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    158 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Today, 09:29 PM
    0 responses
    7 views
    0 likes
    Last Post Belfortbucks  
    Started by zstheorist, Today, 07:52 PM
    0 responses
    7 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    151 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Working...
    X