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

Some sound questions

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

    Some sound questions

    Hi Ninjas All

    1) I've looked into ResetAlert in Help but I know from experience that these are delicate issues.

    I want to make sure that once an alert has sounded, for a 'Rising' condition (say), then the next alert will sound whether it's for a 'Falling' condition (as will usually but not always be the case), or possibly for another 'Rising' condition.

    a) would this be sufficient:

    Code:
    Alert("Falling", Priority.High, "Falling Alert", "Alert4", 0, Color.White, Color.Black);
    ResetAlert("Rising");
    or

    b) would I need to add the code in bold:

    Code:
    Alert("Falling", Priority.High, "Falling Alert", "Alert4", 0, Color.White, Color.Black);
    ResetAlert("Rising"); [B]ResetAlert("Falling");[/B]?
    2) In the NT7 'Sounds' folder: if I want to record my own sound file to use as an alert, is it OK to add a new sound file to this folder and give it a new name, or should I replace the sound in an existing sound file?

    Any help with these questions will be much appreciated.

    #2
    Hello arbuthnot,

    Thank you for your post.

    1. You could just use ResetAlerts(): http://www.ninjatrader.com/support/h...esetalerts.htm

    2. It would be okay to create a new sound and add it to the folder, no need to overwrite the original files.

    Comment


      #3
      Patrick, thanks very much, as ever, for your reply.

      1) Following your advice, this is what I'll put:

      Code:
      Alert("Falling", Priority.High, "Falling Alert", "Alert4", 0, Color.White, Color.Black);
      [B]ResetAlerts()[/B];
      2) That's very useful to know. I asked the question as I thought I'd seen somewhere that adding a new sound file to the 'Sounds' folder might, in some way, make the system unstable, but this is obviously not the case.

      Cheers, Patrick.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CortexZenUSA, Today, 12:53 AM
      0 responses
      1 view
      0 likes
      Last Post CortexZenUSA  
      Started by CortexZenUSA, Today, 12:46 AM
      0 responses
      0 views
      0 likes
      Last Post CortexZenUSA  
      Started by usazencortex, Today, 12:43 AM
      0 responses
      2 views
      0 likes
      Last Post usazencortex  
      Started by sidlercom80, 10-28-2023, 08:49 AM
      168 responses
      2,262 views
      0 likes
      Last Post sidlercom80  
      Started by Barry Milan, Yesterday, 10:35 PM
      3 responses
      10 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Working...
      X