• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Display private int on chart

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

    Display private int on chart

    Hello,

    I have created a strategy with a few chart grid buttons that change the value of a private int up and down when clicked, and I would like to display that dynamic int value somewhere. Would you please be able to point me in the right direction to help me figure that out?

    Thanks!

    #2
    Hi RobotSyndicate, thanks for your post.

    You can use the Draw.Text() method to display the text onto the screen. You could also use custom "SharpDX" rendering to do this by overriding the OnRender method:

    https://ninjatrader.com/support/help..._rendering.htm

    There is a sample in the platform called "SampleCustomRender" that showcases the many capabilities of SharpDX.

    If you have any questions on this material please let me know.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by epitoma, Today, 05:21 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by BatBart, Today, 01:24 PM
    1 response
    22 views
    0 likes
    Last Post NinjaTrader_Melissa  
    Started by ezrakoper, Today, 03:05 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by asmmbillah, Today, 02:23 PM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by steveg, Today, 02:44 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Heath  
    Working...
    X