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 judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Today, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Today, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    21 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    10 views
    0 likes
    Last Post cre8able  
    Working...
    X