Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Audible Alert with Replay Data?

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

    Audible Alert with Replay Data?

    I use Playsound() in an indicator for a trading alert. Works great in real-time. If Playsound() and Alert() can't be used to create an audible alert with replay/historical data, is there an alternative method or workaround?

    #2
    Hi hunter548,

    This should still work in Market Replay, have you tried it?

    Aside from that, you may want to consider a drawing object to indicate when conditions are met for your sound, or perhaps a Print() statement with a time stamp.

    DrawArrowUp() - http://www.ninjatrader-support.com/H...ml?DrawArrowUp

    Print() - http://www.ninjatrader-support.com/H...ide.html?Print

    ToTime() - http://www.ninjatrader-support.com/H...de.html?ToTime
    TimNinjaTrader Customer Service

    Comment


      #3
      Thank for the quick response. I am using Playsound in conjunction with Drawuparrow and drawdownarrow. I haven't actually tried it with Market replay yet. I was just setting the indicator up and getting the audible alert to work using real time data first.

      It was in the Ninjatrader 6.5 tutorial that it states that Playsound and Alert do not work with historical data and so I thought I might better change my audible alert approach if necessary. What is the definition of historical data? Is it different than the saved data used with Market replay?

      Comment


        #4
        Hi hunter548,

        The historical data is data that is saved or accessed to populate, for example, a charts data from the past.

        The Market Replay uses separate data (recorded from the past) that is stored for the the purpose of playing the data as if in real time.
        Market Replay explained here - http://www.ninjatrader-support.com/H...tml?Overview14
        TimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,227 views
        0 likes
        Last Post xiinteractive  
        Started by andrewtrades, Today, 04:57 PM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        7 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        440 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        12 views
        0 likes
        Last Post FAQtrader  
        Working...
        X