Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to recognize graphic objects on the chart in the strategy?

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

    How to recognize graphic objects on the chart in the strategy?

    How to recognize graphic objects on the chart in the strategy?

    I have an indicator, that draws some objects on the chart.
    It is a commercial indicator, no source code.
    I want crate strategy, for open a position at the moment, when on the chart appears the desired object.
    How to determine when the specified object appeared on the chart?

    #2
    Hello topor,

    Thank you for your post.

    What objects are drawn? Are these plots as well? Can you call the indicator's method in your code?
    Can you attach a screenshot of the chart with the indicator applied and the desired visual objects on the chart?

    Comment


      #3
      Originally posted by topor View Post
      How to recognize graphic objects on the chart in the strategy?

      I have an indicator, that draws some objects on the chart.
      It is a commercial indicator, no source code.
      I want crate strategy, for open a position at the moment, when on the chart appears the desired object.
      How to determine when the specified object appeared on the chart?
      DrawObjects are not publicly exposed, because they are almost never properties of the class. You will need to determine the underlying condition that created the DrawObject, and duplicate that in your code.

      Comment


        #4
        Originally posted by NinjaTrader_PatrickH View Post
        Hello topor,

        Thank you for your post.

        What objects are drawn? Are these plots as well? Can you call the indicator's method in your code?
        Can you attach a screenshot of the chart with the indicator applied and the desired visual objects on the chart?
        I can not call the methods of the indicator in my code.
        Click image for larger version

Name:	Screenshot_3.png
Views:	1
Size:	16.3 KB
ID:	873166
        The indicator changes color bars at the opening position. That's all I know.

        Comment


          #5
          Hello topor,

          Thank you for your response.

          Unfortunately, as koganam explained we could not call the bar color change. We would need to know the condition that caused the color change or be able to call the indicator's method and retrieve an exposed variable.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by cmtjoancolmenero, Yesterday, 03:58 PM
          1 response
          17 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by benmarkal, Yesterday, 12:52 PM
          3 responses
          23 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by helpwanted, Today, 03:06 AM
          1 response
          19 views
          0 likes
          Last Post sarafuenonly123  
          Started by Brevo, Today, 01:45 AM
          0 responses
          11 views
          0 likes
          Last Post Brevo
          by Brevo
           
          Started by pvincent, 06-23-2022, 12:53 PM
          14 responses
          244 views
          0 likes
          Last Post Nyman
          by Nyman
           
          Working...
          X