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

Plotting a number as text on an oscillator line

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

    Plotting a number as text on an oscillator line

    Hello:

    Has anyone attempted to plot a calculated number as a string on an oscillator line? For example, instead of plotting a dot on an oscillator line for each bar at y = 0, plot the number that was converted to a string for that bar based on some calculation. Perhaps the calculated number can actually be printed without assigning it as a string, but I have failed to find the right way to do it.

    Thanks.

    #2
    Hello tonyh,

    Thanks for opening the thread.

    "Plots" which we create with Add() create a DataSeries object which is a collection of doubles to hold values.

    The suggested way to display a text value at a point on a chart would be to use the DrawText() method. You can also specify if drawing objects should be placed on the Price Panel or the Indicator Panel.

    DrawText() - https://ninjatrader.com/support/help...7/drawtext.htm

    DrawOnPricePanel - https://ninjatrader.com/support/help...pricepanel.htm

    Please let me know if I can be of further help.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ghoul, Today, 06:02 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    44 views
    0 likes
    Last Post jeronymite  
    Started by Barry Milan, Yesterday, 10:35 PM
    7 responses
    20 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by AttiM, 02-14-2024, 05:20 PM
    10 responses
    180 views
    0 likes
    Last Post jeronymite  
    Started by DanielSanMartin, Yesterday, 02:37 PM
    2 responses
    13 views
    0 likes
    Last Post DanielSanMartin  
    Working...
    X