Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

StringFormat Error

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

    StringFormat Error

    Please, the attached MASlopeBoxMulti NT8 indicator converted from an old NT7 indicator, shows the attached screenshot errors on compilation. Could any member please help to correct the missing "links" ?

    Lolu

    [ATTACH]n1081237[/ATTACH]

    Click image for larger version

Name:	StringFormat Error.png
Views:	181
Size:	331.6 KB
ID:	1081238

    #2
    Hello omololu,

    Thank you for the post.

    The error is caused by the type being used. StringFormat is from the System.Drawing namespace which is no longer used in NT8. From what I can see this conversion was not done correctly as it still is trying to use the System.Drawing syntax. This should instead be migrated to using SharpDX (OnRender) or the newer Drawing tools.



    Using the older System.Drawing namespaces and objects is no longer something we can assist with in contrast to NT8, we can assist with questions related to the newer drawing frameworks such as sharpDX in OnRender or the drawing tools. If you want to continue using the code as is you would need to make the necessary modifications to point to the specific types you needed from System.Drawing and also reference that dll.


    Please let me know if I may be of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by elirion, Today, 09:32 PM
    0 responses
    2 views
    0 likes
    Last Post elirion
    by elirion
     
    Started by cre8able, Today, 09:15 PM
    1 response
    5 views
    0 likes
    Last Post bltdavid  
    Started by cummish, Today, 08:43 PM
    0 responses
    10 views
    0 likes
    Last Post cummish
    by cummish
     
    Started by Option Whisperer, Today, 07:58 PM
    4 responses
    21 views
    0 likes
    Last Post Option Whisperer  
    Started by ETFVoyageur, 05-07-2024, 07:05 PM
    13 responses
    87 views
    0 likes
    Last Post ETFVoyageur  
    Working...
    X