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

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 DJ888, Today, 10:57 PM
      0 responses
      6 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by MacDad, 02-25-2024, 11:48 PM
      7 responses
      158 views
      0 likes
      Last Post loganjarosz123  
      Started by Belfortbucks, Today, 09:29 PM
      0 responses
      7 views
      0 likes
      Last Post Belfortbucks  
      Started by zstheorist, Today, 07:52 PM
      0 responses
      7 views
      0 likes
      Last Post zstheorist  
      Started by pmachiraju, 11-01-2023, 04:46 AM
      8 responses
      151 views
      0 likes
      Last Post rehmans
      by rehmans
       
      Working...
      X