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 Lumbeezl, 01-11-2022, 06:50 PM
    31 responses
    817 views
    1 like
    Last Post NinjaTrader_Adrian  
    Started by xiinteractive, 04-09-2024, 08:08 AM
    5 responses
    14 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by swestendorf, Today, 11:14 AM
    2 responses
    6 views
    0 likes
    Last Post NinjaTrader_Kimberly  
    Started by Mupulen, Today, 11:26 AM
    0 responses
    6 views
    0 likes
    Last Post Mupulen
    by Mupulen
     
    Started by Sparkyboy, Today, 10:57 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X