• 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 revdozza, Today, 06:54 AM
    2 responses
    4 views
    0 likes
    Last Post revdozza  
    Started by ztrader, Today, 07:07 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_DrewO  
    Started by ballboy11, Yesterday, 04:33 PM
    3 responses
    7 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by zhiga, Yesterday, 12:54 AM
    4 responses
    37 views
    0 likes
    Last Post NinjaTrader_ChristopherD  
    Started by Mathew Maria-Andujar, Today, 06:07 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Working...
    X