Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Creating a custom chart marker. Best approach?

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

    Creating a custom chart marker. Best approach?

    Hi,

    The screenshot attached below is​ an example of what I'm looking to incorporate into my charts. The idea is that I can create custom 'icons' for buy and sell signals produced by an indicator. I'm just wondering what the best approach for this method is. Obviously I've gone down the SharpDX route but it's very unstable, some days it's completely fine and other days NT will crash before even being able to completely start up when the indicator is loaded on even 1 or many charts.

    Thanks


    Click image for larger version  Name:	Capture2.png Views:	60 Size:	36.5 KB ID:	1280112
    Last edited by AuctorOccasio; 01-23-2024, 10:33 AM.

    #2
    Hello AuctorOccasio,

    All drawing tools render in OnRender using SharpDX.

    If you are making a custom drawing tool, you will have to render with SharpDX.

    If you are getting a crash, there is something wrong in the logic of the script.

    Be sure you are re-using objects when possible, and re-initializing device dependent objects in OnRenderTargetChanged().
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks for that Chelsea that definitely seems to have done the trick. I suspected it was my poor resource management that was likely the issue haha. Much appreciated.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      577 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      334 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X