View Full Version : Better Volume Indicator
Jonners
10-27-2010, 09:15 AM
I have the Better Volume indicator for N7. When selected the indicator paints the candles when certain criteria is met by the program but what I would like to do is to is add a audible alerts to the paint bars. I cannot program but would like to know how could get this done.
Jonners
NinjaTrader_RyanM
10-27-2010, 09:19 AM
Hello Jonners,
Thank you for your post.
This does require a little programming. You will have to edit the indicator and add an alert or sound statement to the block that changes the color. Some example statements are available in the links below:
http://www.ninjatrader.com/support/helpGuides/nt7/alert.htm
http://www.ninjatrader.com/support/helpGuides/nt7/playsound.htm
Jonners
10-27-2010, 11:25 AM
Hello Jonners,
Thank you for your post.
This does require a little programming. You will have to edit the indicator and add an alert or sound statement to the block that changes the color. Some example statements are available in the links below:
http://www.ninjatrader.com/support/helpGuides/nt7/alert.htm
http://www.ninjatrader.com/support/helpGuides/nt7/playsound.htm
Do not know how to do this can you recommend anyone
NinjaTrader_RyanM
10-27-2010, 11:30 AM
Hi Jonners,
Please share the file and I'll take a look. Should be a .cs file in My Documents\NinjaTrader\bin\Custom\indicator
If you're looking for professional code writing help, you can see the list of our 3rd party NinjaScript consultants here:
http://www.ninjatrader.com/webnew/partners_onlinetrading_NinjaScript.htm
Jonners
10-27-2010, 11:52 AM
Ryan - attached file
NinjaTrader_RyanM
10-27-2010, 02:16 PM
Here is a block that changes color.
if (paintbars && bc > 0) BarColor = Plots[bc].Pen.Color;
To add an alert, that plays sound, you could make this change:
if (paintbars && bc > 0)
{
BarColor = Plots[bc].Pen.Color;
Alert("myAlert", NinjaTrader.Cbi.Priority.High, "Reached threshold", "Alert1.wav", 10, Color.Black, Color.Yellow);
}