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 nightstalker, Today, 01:32 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by kevinenergy, Yesterday, 12:01 PM
    7 responses
    23 views
    0 likes
    Last Post nightstalker  
    Started by DawnTreader, 05-08-2024, 05:58 PM
    15 responses
    49 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by ZeroKuhl, Yesterday, 04:31 PM
    7 responses
    40 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by xepher101, Today, 12:19 PM
    1 response
    24 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X