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 helpwanted, Today, 03:06 AM
        1 response
        11 views
        0 likes
        Last Post sarafuenonly123  
        Started by Brevo, Today, 01:45 AM
        0 responses
        9 views
        0 likes
        Last Post Brevo
        by Brevo
         
        Started by aussugardefender, Today, 01:07 AM
        0 responses
        5 views
        0 likes
        Last Post aussugardefender  
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        242 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        9 responses
        387 views
        1 like
        Last Post Gavini
        by Gavini
         
        Working...
        X