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
    Chris L.NinjaTrader Customer Service

    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
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ttrader23, Today, 04:48 PM
        0 responses
        3 views
        0 likes
        Last Post ttrader23  
        Started by wisdomspoon, Today, 03:50 PM
        3 responses
        15 views
        0 likes
        Last Post rockmanx00  
        Started by Mountain_cast, 02-10-2025, 11:14 PM
        2 responses
        19 views
        0 likes
        Last Post Mountain_cast  
        Started by Robotman, Today, 01:06 PM
        2 responses
        37 views
        0 likes
        Last Post Robotman  
        Started by PH_GMT, Today, 12:40 PM
        4 responses
        19 views
        0 likes
        Last Post PH_GMT
        by PH_GMT
         
        Working...
        X