• 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

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 Johnny Santiago, Today, 04:51 PM
    2 responses
    10 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by nekroart, Today, 04:52 PM
    0 responses
    5 views
    0 likes
    Last Post nekroart  
    Started by otislauwaert, Today, 02:43 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_JoshG  
    Started by Johnny, Today, 02:32 PM
    3 responses
    13 views
    0 likes
    Last Post Johnny
    by Johnny
     
    Started by Danville.Sumobay, Today, 02:08 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChristopherS  
    Working...
    X