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 bubblegum, 03-18-2024, 10:41 AM
    4 responses
    51 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by kujista, Yesterday, 12:39 AM
    3 responses
    15 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by Yasharandom, 05-04-2024, 07:45 AM
    2 responses
    24 views
    0 likes
    Last Post Yasharandom  
    Started by francesjandujar, Today, 05:15 AM
    0 responses
    2 views
    0 likes
    Last Post francesjandujar  
    Started by francesjandujar, Today, 05:14 AM
    0 responses
    0 views
    0 likes
    Last Post francesjandujar  
    Working...
    X