Go Back   NinjaTrader Support Forum > NinjaScript File Sharing > NinjaScript File Sharing Discussion

NinjaScript File Sharing Discussion Discussion for shared NinjaScript files.

NinjaTrader
Reply
 
Thread Tools Display Modes
Old 05-04-2018, 03:15 AM   #1
gubbar924
Senior Member
 
Join Date: Aug 2011
Posts: 148
Thanks: 27
Thanked 52 times in 41 posts
Arrow SHARE: Change volume of NT8 only

Script updated May 6, 2018, see post #7 for additional info


Do you have alerts going off too often and just want to quiet them down?

Do you want to change the volume of alerts NT8 makes without having to change the main window's volume?

Do you have music and/or videos playing while you trade and want to be able to hear them more clearly?

This addon allows you to change the volume specifically for NT8 without it effecting the main windows volume. Please note though, it will not effect system alerts fired off by NT8.

Usable in windows Vista and newer.

Download/Rate here: https://ninjatrader.com/support/foru...atid=9&lpage=1
Attached Images
File Type: png volume 001.png (63.1 KB, 16 views)
Last edited by gubbar924; 05-06-2018 at 04:09 AM.
gubbar924 is offline  
Reply With Quote
Old 05-04-2018, 05:24 AM   #2
sledge
Senior Member
 
Join Date: Aug 2010
Location: Washington, D.C.
Posts: 4,501
Thanks: 1,690
Thanked 1,099 times in 942 posts
Default

Ok that's cool, but why wouldn't I use windows volume mixer?
Attached Images
File Type: jpg Screenshot_2018-05-04-07-21-42.jpg (34.3 KB, 11 views)
sledge is offline  
Reply With Quote
The following user says thank you to sledge for this post:
Old 05-04-2018, 07:57 AM   #3
gubbar924
Senior Member
 
Join Date: Aug 2011
Posts: 148
Thanks: 27
Thanked 52 times in 41 posts
Default

thats very interesting, I'm on win7 and I dont have NT listed in my windows volume mixer list.
gubbar924 is offline  
Reply With Quote
Old 05-04-2018, 08:24 AM   #4
NinjaTrader_PatrickH
NinjaTrader Customer Service
 
NinjaTrader_PatrickH's Avatar
 
Join Date: Jul 2011
Location: Denver, CO
Posts: 11,662
Thanks: 783
Thanked 2,014 times in 1,940 posts
Default

Hello gubbar924,

Thank you for your post and the add on.

Do you see the NinjaTrader application appear in the Volume Mixer after it makes a sound, such as connecting or the compile sound when compiling NinjaScript?

I look forward to your response.
NinjaTrader_PatrickH is online now  
Reply With Quote
The following user says thank you to NinjaTrader_PatrickH for this post:
Old 05-04-2018, 08:31 AM   #5
gubbar924
Senior Member
 
Join Date: Aug 2011
Posts: 148
Thanks: 27
Thanked 52 times in 41 posts
Default

Hi Patrick,

Thanks for the tip, yes I see it after compiling, but I'm still a little baffled as to why I've never seen it before, considering I compile quite frequently and even have recently tested an alert script. I guess I just wasnt looking at the right time (most likely between restarting NT8 and the first time any kind of sound is played)

Thank you both @sledge and @NinjaTrader_PatrickH for pointing this out
gubbar924 is offline  
Reply With Quote
Old 05-04-2018, 11:15 AM   #6
sledge
Senior Member
 
Join Date: Aug 2010
Location: Washington, D.C.
Posts: 4,501
Thanks: 1,690
Thanked 1,099 times in 942 posts
Default

Does it control the volume mixer level, or is it more fine grained?

I have difficulties with nt set at 1 and main volume up(for other windows), nt is still too loud.
sledge is offline  
Reply With Quote
Old 05-06-2018, 04:05 AM   #7
gubbar924
Senior Member
 
Join Date: Aug 2011
Posts: 148
Thanks: 27
Thanked 52 times in 41 posts
Default

May 6, 2018
  • Cleaned up some code to work more efficiently
  • Added a check to make sure the volume set in the Volume menu always matches the volume from the windows mixer (in case the volume in the mixer was changed after setting a volume level from the menu)
  • Changed volume selection range from 0-10 to 0-25


@sledge
As far as I know, this script only follows the NT8 specific mixer, so if you have the main windows volume set pretty high, regardless of how low you set NT8 volume, it may end up louder than you'd like. Having said that though, I've added more increments for volume. The range now goes up to 25, so setting the volume to 1 in NT8 will now set the mixer volume to 4 (previously it would get set to 10). If its still not quiet enough, you could manually change line 48 in the script. But it'll start making that list pretty lengthy, at that point you might as well replace the menuitems with a slider instead.
Attached Images
File Type: png volume 002.png (66.5 KB, 13 views)
Last edited by gubbar924; 05-06-2018 at 04:15 AM.
gubbar924 is offline  
Reply With Quote
Reply

Tags
volume

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SHARE: NT8 Simple Sample: time based background color gubbar924 NinjaScript File Sharing Discussion 3 07-25-2018 07:41 PM
tried to change in Buysell volume Indicator svadukia Indicator Development 7 09-27-2017 07:46 AM
SHARE: NT8 Bar & Chart info where clicked gubbar924 NinjaScript File Sharing Discussion 0 03-06-2017 03:26 AM
% Change in Average Volume tshirtdeal General Development 39 01-03-2011 10:56 AM
Change volume bar color based on price and volume range TiP2012 Indicator Development 5 05-26-2008 08:09 AM


All times are GMT -6. The time now is 01:31 PM.

Futures, foreign currency and options trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.

CFTC Rules 4.41 - Hypothetical or Simulated performance results have certain limitations, unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

This website is hosted and operated by NinjaTrader, LLC (“NT”), a software development company which owns and supports all proprietary technology relating to and including the NinjaTrader trading platform. NT is an affiliated company to NinjaTrader Brokerage (“NTB”), which is a NFA registered introducing broker (NFA #0339976) providing brokerage services to traders of futures and foreign exchange products. This website is intended for educational and informational purposes only and should not be viewed as a solicitation or recommendation of any product, service or trading strategy. No offer or solicitation to buy or sell securities, securities derivative or futures products of any kind, or any type of trading or investment advice, recommendation or strategy, is made, given, or in any manner endorsed by any NT affiliate and the information made available on this Web site is not an offer or solicitation of any kind. Specific questions related to a brokerage account should be sent to your broker directly. The content and opinions expressed on this website are those of the authors and do not necessarily reflect the official policy or position of NT or any of its affiliates. 

Vendors along with their websites, products and services, collectively referred to as (“Vendor Content”), are independent persons or companies that are in no manner affiliated with NT or any if its affiliates. NT or any of its affiliates are not responsible for, do not approve, recommend or endorse any Vendor Content referenced on this website and it’s your sole responsibility to evaluate Vendor Content. Please be aware that any performance information provided by a vendor should be considered hypothetical and must contain the disclosures required by NFA Rule 2-29(c). If you are interested in learning more about, or investigating the quality of, any such Vendor Content you must contact the vendor, provider or seller of such Vendor Content. No person employed by, or associated with, NT or any of its affiliates is authorized to provide any information about any such Vendor Content.