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 NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        66 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        141 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        76 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        47 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        51 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X