Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Display Custom text on chart

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

    Display Custom text on chart

    I my strategy there are number of conditions, and I want to display the results of all the conditions in a text form in the chart. The values should change when I move the cursor from one bar to another. How to accomplish this? I tried RenderTarget.DrawText, but I cannot find out how to change the text value when I move the cursor.
    Thanks,
    Sambath

    #2
    Hello, thanks for writing in. You will need to use the OnMouseMove event and update your rendering values when the mouse moves:



    I found one example that demonstrates usage here:
    Update 6/26/2020 As requested, I have added the following fields: – Range – Volume/Range I’ve written this script to be able to quickly see basic chart/bar info without having to use the Data Box or clicking the middle mouse button/wheel. Some basic functionality include: – The option to select which fields you’d like to see/hide. […]


    Kind regards,

    -ChrisL

    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    56 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    133 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X