Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Arrow with fix position (coordinate)

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

    Arrow with fix position (coordinate)

    Hello,

    I cannot find the best way to Draw.ArrowUp​ with coordenate anchor (no time, no bar, no price).
    Could you help me and maybe tell me if there is an example please?

    Many thanks

    #2
    What do you mean by a coordinate? Do you mean at a specific pixel position on the chart? If so, you should use OnRender() or possibly Draw.TextFixed and for the string use one of the arrows in a symbol or wingdings/webdings type font.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Hello ClauTrade,

      Thanks for your post.

      The Draw.ArrowUp() method requires that you pass in a barsAgo or a time parameter when calling the method.

      If you are wanting to custom render an object on the chart, you would need to use SharpDX and OnRender().

      The SampleCustomRender indicator that comes default with NinjaTrader could be viewed to get an understanding of how to custom render objects using SharpDX and OnRender(). To view the script, open a New > NinjaScript Editor window, open the Indicators folder, and double-click on the SampleCustomRender file.

      And, see the help guide documentation linked below for more information and sample code.

      Using SharpDX for custom chart rendering: https://ninjatrader.com/support/help..._rendering.htm
      SharpDX Lines and Shapes: https://ninjatrader.com/support/help...LinesAndShapes
      Best Practices for SharpDX: https://ninjatrader.com/support/help...arpDXResources
      <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      134 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      67 views
      0 likes
      Last Post PaulMohn  
      Working...
      X