Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

audio alert upon completion of a bar

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

    #16
    With the code you had posted, playedaudio will be true after bar 1 and continuing forever, it is not reset to false ever.

    You need the

    if (FirstTickOfBar)
    playedaudio = false;

    Put it above this line:
    if (Bars.PercentComplete>.91666 && !playedaudio)

    What error were you receiving?

    Mike
    Last edited by ctrlbrk; 05-10-2009, 01:12 AM.

    Comment


      #17
      OK!!!

      It works. There is NO way I could have done this alone.
      Thanks ctrlbrk and others. (Do you get paid for this, by NT, seriously.)

      Anyway, I think that using a text to speech setup, like the one
      on-line someone long ago mentioned, one can make audio alerts
      more professional and easier to understand. There is no "I forgot
      what that sound means." OR "This sound means one of two things."

      - Stephen

      Comment


        #18
        You are very welcome Stephen.

        I am up working on my strategies, and in between compiling/re-loading was responding on the forum. No biggie, I enjoy it. And for all the complaining I do on other NT threads to the NT team, I try to balance it out by helping others as much as I can, making their job easier if possible

        There are ways to incorporate TTS directly into C#, allowing it to speak any string. However, I've not been bold enough to wade through it yet. For now, like you, I just use recorded wav files with a speaking voice to tell me what event was triggered. I use the AT&T TTS website which generously allows easy downloading of the wav file, and multiple voices to choose from.

        Mike

        Comment


          #19
          Yes, I used the AT&T site as well. I then used Audacity
          to make the WAV file, though as I looked more closely
          at their site, I'm probably doing it the hard way (as usual).

          See you around,

          Stephen Szpak

          Adams, Massachusetts,USA

          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