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 kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    26 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    16 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    21 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    136 views
    0 likes
    Last Post SalmaTrader  
    Working...
    X