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 SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      29 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      17 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      9 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      16 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      19 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X