• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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'.
    https://ninjatrader.com/support/help...rawobjects.htm
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DTSSTS, Today, 02:46 PM
    0 responses
    1 view
    0 likes
    Last Post DTSSTS
    by DTSSTS
     
    Started by corman, Today, 02:45 PM
    0 responses
    1 view
    0 likes
    Last Post corman
    by corman
     
    Started by sandman, Today, 02:32 PM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by ksarin, Today, 12:39 PM
    3 responses
    12 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by ttodua, Today, 12:03 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X