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:	179
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 andrewtrades, Today, 04:57 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    4 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    436 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    7 views
    0 likes
    Last Post FAQtrader  
    Started by rocketman7, Today, 09:41 AM
    5 responses
    19 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X