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 fx.practic, 10-15-2013, 12:53 AM
    5 responses
    5,406 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by Shai Samuel, 07-02-2022, 02:46 PM
    4 responses
    98 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by DJ888, Yesterday, 10:57 PM
    0 responses
    8 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    160 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Yesterday, 09:29 PM
    0 responses
    9 views
    0 likes
    Last Post Belfortbucks  
    Working...
    X