Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

The type or namespace 'SerializablePen' could not be found

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

    The type or namespace 'SerializablePen' could not be found

    Hello.
    I`m trying to convert an indicator from NT7 to NT8.0.0.5 BETA.
    It's almost done but only an issue with SerializablePen stops me from finishing.
    This is my original piece of code:

    [Browsable(false)]
    public SerializablePen PenOrderBookMedianSerialize {
    get { return SerializablePen.FromPen(penOrderBookMedian); }
    set { penOrderBookMedian = SerializablePen.ToPen(value); }
    }

    The error says:

    The type or namespace 'SerializablePen' could not be found

    I don't know which library make reference. In NT7 it was Ninjatrader.Gui.Design.SerializablePen but in NT8 that namespace does not exist.

    Any clue or help would be very appreciated.
    Regards

    BANTEKA
    Last edited by banteka; 10-23-2015, 02:34 AM. Reason: translation mistake

    #2
    Hello,

    You can get around this issue by using a Stroke instead, which allows you to define additional properties (a Brush, Width, and Dash Style). Using a Stroke also solves the problem of serialization.

    There was a great discussion about this in an earlier thread which you may find helpful:

    http://ninjatrader.com/support/forum...ad.php?t=75521
    Dave I.NinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kujista, Today, 06:23 AM
    2 responses
    6 views
    0 likes
    Last Post kujista
    by kujista
     
    Started by f.saeidi, Today, 08:03 AM
    0 responses
    4 views
    0 likes
    Last Post f.saeidi  
    Started by cre8able, 04-17-2024, 04:16 PM
    7 responses
    64 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by Aviram Y, 08-09-2023, 09:04 AM
    11 responses
    299 views
    0 likes
    Last Post arjandezeeuw  
    Started by Christopher Leggit, 02-15-2024, 09:00 AM
    3 responses
    47 views
    0 likes
    Last Post rdtdale
    by rdtdale
     
    Working...
    X