PDA

View Full Version : Volume Spike Indicator


RK_trader
10-09-2007, 10:25 PM
Hi

Anyone know if there are any indicators for volume spikes. Something like an audio alert or some chart marking on a volume spike like in a 1 min or a 5 min chart.

Thanks
RK

NinjaTrader_Josh
10-09-2007, 11:56 PM
I don't know of any preexisting ones, but you can definitely make one with no problem. You could do something like
if (Volume[0] >= Volume[1] * 1.10)
PlaySound("Alert1.wav");or if you wanted a draw object you could do
if (Volume[0] >= Volume[1] * 1.10)
DrawDiamond("Volume Spike" + CurrentBar, 0, Low[0] - TickSize, Color.Red);

RK_trader
10-10-2007, 12:08 AM
Thanks Josh. I appreciate it.

If possible can you or anyone please add this code to a down oadable indicator file (.zip). I am still learning Ninja programming and am able to edit/play with an existing indicator by modifying the code. Have to learn how to build a new one from scratch

I appreciate it.

Thanks
RK

NinjaTrader_Josh
10-10-2007, 12:15 AM
I usually just use the NinjaScript wizard to generate the template for my indicator and just put in my algorithms into the OnBarUpdate() section.

RK_trader
10-10-2007, 05:14 PM
Thanks Josh. I appreciate it.

Any suggestions from anyone on which values the "spike" field in indicator should be? I tried "2" it was able to catch some spikes which met those conditions. So, for value of 2, the indicator is catching only volume spikes which are atleast 2 times greater than the previous volume bar. For example, if one bar is like 1000 contracts, and the next bar is like 3100 contracts, the indicator alerts.

Any suggestions on improving the condition of the spike, something like greater than the average of last two bars or some combination like that?

Thanks
RK

pfsmedical
12-02-2010, 06:31 PM
josh ....

do you have this indicator for NT 7 ... thanks

NinjaTrader_Bertrand
12-03-2010, 03:15 AM
You can try the one attached for NT7.

pfsmedical
12-03-2010, 07:18 AM
thanks.....

mystiq
12-08-2011, 06:10 AM
Thanks Josh. I appreciate it.

Any suggestions from anyone on which values the "spike" field in indicator should be? I tried "2" it was able to catch some spikes which met those conditions. So, for value of 2, the indicator is catching only volume spikes which are atleast 2 times greater than the previous volume bar. For example, if one bar is like 1000 contracts, and the next bar is like 3100 contracts, the indicator alerts.

Any suggestions on improving the condition of the spike, something like greater than the average of last two bars or some combination like that?

Thanks
RK


try using the average volume(2) indicator instead of the volume indicator...