Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Symbol Watermark

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

    Symbol Watermark

    Hi!

    I'm using this Symbol Watermark indicator developed by NT team: https://ninjatraderecosystem.com/use...bol-watermark/

    Is it possible to show the current time frame of the chart?

    Thanks!

    #2
    Hello eduardopoletto,

    Thanks for your post.

    The Symbol Watermark indicator from the Ecosystem User App Share will only draw the instrument name on the chart.

    You could consider modifying the code of the indicator to draw the chart's timeframe on the chart as well.

    The Symbol Watermark indicator uses SharpDX to custom render text on the chart. You could modify the textLayout in the Symbol Watermark indicator to draw the Instrument.FullName and the CharBars.BarsPeriod in order to drawing the instrument name and chart interval.

    For example:

    textLayout = new SharpDX.DirectWrite.TextLayout(Core.Globals.Direct WriteFactory, Instrument.FullName + " " + ChartControl.BarsPeriod, textFormat, 1000, textFormat.FontSize);

    See the help guide documentation below for more information.

    TextLayout: https://ninjatrader.com/support/help...sub=textlayout
    Working with SharpDX: https://ninjatrader.com/support/help...sub=textlayout
    OnRender: https://ninjatrader.com/support/help...8/onrender.htm
    <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
      Originally posted by NinjaTrader_BrandonH View Post
      Hello eduardopoletto,

      Thanks for your post.

      The Symbol Watermark indicator from the Ecosystem User App Share will only draw the instrument name on the chart.

      You could consider modifying the code of the indicator to draw the chart's timeframe on the chart as well.

      The Symbol Watermark indicator uses SharpDX to custom render text on the chart. You could modify the textLayout in the Symbol Watermark indicator to draw the Instrument.FullName and the CharBars.BarsPeriod in order to drawing the instrument name and chart interval.

      For example:

      textLayout = new SharpDX.DirectWrite.TextLayout(Core.Globals.Direct WriteFactory, Instrument.FullName + " " + ChartControl.BarsPeriod, textFormat, 1000, textFormat.FontSize);

      See the help guide documentation below for more information.

      TextLayout: https://ninjatrader.com/support/help...sub=textlayout
      Working with SharpDX: https://ninjatrader.com/support/help...sub=textlayout
      OnRender: https://ninjatrader.com/support/help...8/onrender.htm
      It works

      Thank you!!!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      80 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X