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 bmartz, 03-12-2024, 06:12 AM
    3 responses
    26 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by Aviram Y, Today, 05:29 AM
    2 responses
    8 views
    0 likes
    Last Post Aviram Y  
    Started by gentlebenthebear, Today, 01:30 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by cls71, Today, 04:45 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by TradeForge, Today, 02:09 AM
    1 response
    24 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X