Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Use of ILine is giving a compile error

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

    Use of ILine is giving a compile error

    ILine aLine = DrawLine("MR-"+tagCnt.ToString(), false, Time[1], MeanRevStopPrice, Time[0], MeanRevStopPrice, Color.Red, DashStyle.Solid, 1);

    Gives a CS0246 error

    The type or namespace name 'ILine' could not be found (are you missing a using directive or an assembly reference?)

    What am I doing wrong?

    #2
    Hello EquityBoost2,

    Thanks for your post and welcome to the NinjaTrader forums!

    Based on the information provided the message is advising that the "Using declarations" at the top of the source code may not include the needed references for ILine. However, there could be more going on. Please attach your source code file so we can review the complete picture. If you prefer not to, please send an e-mail to PlatformSupport[at]NinjaTrader[dot]Com Set the subject Atten:Paul and add a link to this thread.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    558 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X