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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      152 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      304 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      244 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      345 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      175 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X