Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart radar

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

    Chart radar

    I have a strategy that currently only draws drawing objects (triangle, horizontal lines, etc.) on the diagrams and plays sounds. I would like to access these chart objects or sounds (no public properties or signals of the first strategy) in real time with a second Strat or Indi. This should only be done from the chart without using the 1st strategy with the Draw objects.

    So is it possible to use an indicator or strategy to search the charts in real time for specific drawing objects or to listen for noises? Example: If a "triangle up" or an "arrow up" is drawn in the chart or a sound is played in real time, the other strat goes long, etc.

    MANY THANKS,

    #2
    Hi, thanks for posting.

    There are two ways to do this. The first way is to set up a Series<bool> for every unique object being drawn then fill the Value[0] on each bar with false if the drawing tool was drawn or true if it was drawn. See the example here. The second way to do it would be to give the draw objects unique tag names and capture these tags when looping through the draw objects on the chart, this method is less ideal since you have to loop through every draw object on the chart and it could impact performance.

    https://ninjatrader.com/support/help...rawobjects.htm - the DrawObjects array with an example.

    Kind regards,
    -ChrisL

    Comment


      #3
      THx Chris, good idea - i give it a try !

      Do you have a workaround for watching played sounds from other strats to execute in another strat ?


      sincerely yours,

      Comment


        #4
        Hi, thanks for the follow up.

        There is no supported way to find the sounds being played, you would need to set this up through one of the two ways previously mentioned.

        Best regards,
        -ChrisL

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        90 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        137 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        120 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        71 views
        0 likes
        Last Post PaulMohn  
        Working...
        X