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

AddPlotNames code help needed

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

    AddPlotNames code help needed

    Hello NT Support,

    This indicator in the ecosystem is an excellent chart addition:

    This indicator, when added to a panel, will sort through all indicator plots and if available, pull their plot name to use as a label for the plot. The plot names are then drawn on the chart centered Y-axis on the last plot value. The plot names are colored according to the plot itself. Changing […]


    I am wondering if someone can tell me if its possible to display indicator text in that margin but NOT on the chart itself.

    Example: if one wanted to print a High or Low of a given timeframe on that indicator but not have the line on the chart itself.

    Is this possible?

    I am just having a hard time coming up with a starting point to try and code that into my own version of the indicator or another custom indicator that will be picked up and displayed by the AddPlotNames indicator.

    I tried making the Plot transparent... but as I assumed it hides the text from the AddPlotNames indicator display as well.

    Any general direction would be great.

    Or even confirming this cannot be done.

    Thanks!

    #2
    Hello MattD888,

    Thank you for your post.

    To do this, you could modify the script to return in OnRender() without calling base.OnRender() (only after any custom rendering).

    Please note, this would only work for indicators that are adding the plot using AddPlot().

    Please let me know if you have any other questions.
    Gaby V.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by fx.practic, 10-15-2013, 12:53 AM
    5 responses
    5,404 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by Shai Samuel, 07-02-2022, 02:46 PM
    4 responses
    95 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by DJ888, Yesterday, 10:57 PM
    0 responses
    7 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    159 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Yesterday, 09:29 PM
    0 responses
    8 views
    0 likes
    Last Post Belfortbucks  
    Working...
    X