Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to hide indicator plot labels?

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

    How to hide indicator plot labels?

    Hi, I need to hide this labels from stock Pivots indicator. I know that I have to create a copy of the indicator but I don't know which part of the code I have to edit in order to do it.

    Click image for larger version

Name:	image.png
Views:	32
Size:	13.3 KB
ID:	1300388


    Thanks in advance.

    #2
    Hello chinook77,

    Thanks for your post.

    The indicator plot labels are custom rendered on the chart using SharpDX in OnRender().

    You would need to create a copy of the Pivots indicator and modify the script so that RenderTarget.DrawTextLayout() is not called in the OnRender() section of code.

    To create a copy of the indicator to modify, open a New > NinjaScript Editor window, open the Indicators window, double-click on the Pivots indicator, right-click in the indicator's code, select 'Save as', and name the copy of the script. Once a copy is created you could modify the script to suit your overall goals.

    See the help guide documentation below for more information on SharpDX and OnRender().

    Using SharpDX for Custom Chart Rendering: https://ninjatrader.com/support/help..._rendering.htm
    OnRender(): https://ninjatrader.com/support/help...8/onrender.htm
    RenderTarget.DrawTextLayout(): https://ninjatrader.com/support/help...textlayout.htm
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by AgriTrdr, Yesterday, 01:51 PM
    6 responses
    21 views
    0 likes
    Last Post bobperez  
    Started by ETFVoyageur, Yesterday, 12:11 PM
    11 responses
    39 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by rdlans, Today, 05:42 AM
    0 responses
    5 views
    0 likes
    Last Post rdlans
    by rdlans
     
    Started by llanqui, 05-22-2024, 06:14 AM
    13 responses
    34 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by AgriTrdr, Today, 05:33 AM
    0 responses
    3 views
    0 likes
    Last Post AgriTrdr  
    Working...
    X