Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Paint price on chart

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

    Paint price on chart

    Hi- Since I'm using 2 different platforms to monitor futures turn zones...I'm looking for a ninjascript file that does something like this: At the top of the chart I would like for it to display for example the high price of each of the last ex: 4 bars and when a new bar prints the price at the top of the chart for the fourth bar back goes away...visually I'm working with custom smoothed bars and it seems like it would be easier to monitor shifts in direction by staring at numbers at the top of the chart vs the actual bars...does anyone know of any current ninjascript file that will do this? Thanks for any help

    PL

    #2
    Hello plemal,

    Thanks for your post.

    You could consider adding a toolbar and adding TextBlocks to the toolbar. Or you could consider using Draw.TextFixed or RenderTarget.DrawTextLayout with SharpDX.

    See the Position Display Indicator from our User App Share Center which you may find helpful. This indicator uses SharpDX to draw a text box on the chart.

    Position Display Indicator: https://ninjatraderecosystem.com/use...lay-indicator/

    See the SampleWPFModifications reference sample which demonstrates creating toolbars: https://ninjatrader.com/support/help...ui)-modifi.htm

    And, see the help guide documentation below for more information.

    SharpDX: https://ninjatrader.com/support/help..._rendering.htm

    RenderTarget.DrawTextLayout: https://ninjatrader.com/support/help...textlayout.htm

    Draw.TextFixed: https://ninjatrader.com/support/help..._textfixed.htm

    Let us know if we may assist further.
    <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


      #3
      Brandon:

      Thank you so much for your detailed response...although the above sounds foreign to me-I'll explore these in the next few days-thanks again!

      PL

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      68 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      151 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      162 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      100 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      288 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X