Announcement

Collapse
No announcement yet.

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:	210
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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    41 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X