Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Getting a drawn string object from the chart

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

    Getting a drawn string object from the chart

    Hello

    I have drawn strings with RenderTarget.DrawText method on the chart.

    If I right click on one of these string objects is it possible to get back the string object to be used on my code ?

    If yes, could you give me some guidance how I could do that.
    What I would like to do is getting back the string object drawn on a right mouse button click.


    Thank you

    #2
    Hello,

    Thank you for the question.

    I wanted to clarify, is this a custom drawing tool you are creating or was the RenderTarget.DrawText done from an indicator?

    If being used in an indicator, you would need to implement your own logic to determine when the user clicks, where the mouse was in relation to a bar on the chart and what string that is associated with that bars number. Custom drawings are unlike a Drawing tools, drawing tools have a system in place to detect clicks and object changes where a custom rendering does not have any logic associated with it.

    Unfortunately I would not be able to make a direct sample of this as it would require quite a bit of logic and would really depend on how your current script works. If you need further assistance and this is an indicator, I could provide further documentation on the methods needed for this.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Jesse

      Thank you. Yes it was a custom drawing tool.

      I know where to go from here.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by zstheorist, Today, 07:52 PM
      0 responses
      7 views
      0 likes
      Last Post zstheorist  
      Started by pmachiraju, 11-01-2023, 04:46 AM
      8 responses
      150 views
      0 likes
      Last Post rehmans
      by rehmans
       
      Started by mattbsea, Today, 05:44 PM
      0 responses
      6 views
      0 likes
      Last Post mattbsea  
      Started by RideMe, 04-07-2024, 04:54 PM
      6 responses
      33 views
      0 likes
      Last Post RideMe
      by RideMe
       
      Started by tkaboris, Today, 05:13 PM
      0 responses
      6 views
      0 likes
      Last Post tkaboris  
      Working...
      X