Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Sound Files

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

    Sound Files

    There seem to be No Error reporting on Sound Files in NT8.
    No Errors that Sound files Can't be found etc like NT7 had.
    Today writing a simple Time of Day Alert instead of writing a "Name.wav", I wrote
    "Name,wav" . The second one has a comma. It gave no Error on the file name and
    wasted way too much time trying to find it. Please improve the Error feed back on File
    names.

    #2
    Hello,

    Thanks for posting.

    To clarify a bit further, would the concern here be more with the platform not recognizing it was an invalid name/format and instead searching for something that can't be found?

    Comment


      #3
      Yes, Not just that the format was invalid but even when the Format is valid if the Name cannot be found
      I would expect an error. When nothing happens you don't whether it is Invalid Logic in the script, Invalid Sound file or the location is incorrect etc. Your left guessing. The only valid reason I can think of for Nothing to happen is for the Logic to be incorrectly coded as to the intended specification.

      Comment


        #4
        Hello JerryWar,

        Thanks for providing that extra information. I will be looking into this further and will follow up here with more information.

        Comment


          #5
          Originally posted by NinjaTrader_DrewO View Post
          Hello,

          Thanks for posting.

          To clarify a bit further, would the concern here be more with the platform not recognizing it was an invalid name/format and instead searching for something that can't be found?
          An invalid reference to an object, MUST ALWAYS return an error, no matter the reason for the invalidity.

          Comment


            #6
            Hello JerryWar,

            To clarify, would this be a custom item in which you are typing a sound as an input, or is this a field in the platform itself? On my end, I am seeing a meaningful error when selecting an invalid name/format.

            Comment


              #7
              A very simple custom indicator and sound file actually 3 sound files.
              2 played during testing and 1 would not. I swapped sound files in the logic and the
              2 still played the 1 would not. I thought there might be something wrong with the creation
              of the sound file so I re-created it. Still did not work. Finally after staring at it for long enough
              I found that instead of being "Name.wav" It was Name(comma)wav. NT8 gave absolutely no
              error on the invalid sound file string with a comma instead of period. It should of given one of two possible errors, either sound file not found or invalid file format string. This is the exact Wrong file passed to an Alert()

              [email protected]"\Sounds\Warn ing855,wav"
              Last edited by JerryWar; 02-14-2017, 04:50 PM.

              Comment


                #8
                Hello,

                Thank you for the post.

                I will put in a feature request for this item, the most simple solution though would be for you to just check if the file exists as it seems you are creating a custom item. If it does not exist, log a message about that.

                You could use the following syntax for that type of check:

                Code:
                string fileName = @"Warn ing855,wav";
                if(!System.IO.File.Exists([email protected]"\Sounds\" + fileName))
                {
                	Log(string.Format("Error - File {0} not found", fileName), LogLevel.Error);
                }
                Please let me know if I may be of further assistance.
                JesseNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Virgil123, Today, 01:39 PM
                0 responses
                3 views
                0 likes
                Last Post Virgil123  
                Started by kawalecld, Today, 12:21 PM
                0 responses
                6 views
                0 likes
                Last Post kawalecld  
                Started by exjayess, Today, 11:04 AM
                1 response
                12 views
                0 likes
                Last Post NinjaTrader_ShawnB  
                Started by robertlaub, Today, 11:11 AM
                2 responses
                7 views
                0 likes
                Last Post robertlaub  
                Started by sdauteuil, Today, 10:28 AM
                0 responses
                6 views
                0 likes
                Last Post sdauteuil  
                Working...
                X