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 NullPointStrategies, Today, 05:17 AM
      0 responses
      22 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      120 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      63 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      41 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      45 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X