Wes, both formulas will work. The formula with Ref() will just compare the volume of the last bar with the MA of volume of the previous bar. Your formula will compare the volume of the last bar with the MA of volume of the last bar.
The volume spike looks like this: http://img154.imageshack.us/img154/463/02082007043002nv5.png and ideally should be confirmed with the spike on the "number of trades": http://img180.imageshack.us/img180/2850/02082007044135qt7.png And here is how it all played out: http://img151.imageshack.us/img151/2469/02082007043521gf3.png http://img151.imageshack.us/img151/5166/02082007043540ti9.png It works great with small cap mineral exploration plays in Canada and probably Australia. Lester --- In [email protected], Wes Smith <[EMAIL PROTECTED]> wrote: > > Not sure what the volume spike is supposed to do, but the 'Ref() part of the > formula as written is what does the 1 day look back. > Try VolSpike = V > MA( V, 20 ) * 2 ; > > ----- Original Message ---- > From: xxxringop <[EMAIL PROTECTED]> > To: [email protected] > Sent: Wednesday, February 7, 2007 4:37:20 PM > Subject: [amibroker] volume spike > > I did a search through the posts on this subject and got this code > VolSpike = V > Ref( MA( V, 20 ) * 2 , -1 ); > > However, when I use this code, it shows the spike(s) in volume that > happened before current day. How do I change this code or the filter > to show only the spikes that happen on today's date (current)? Thanks. > > > > Please note that this group is for discussion between users only. > > To get support from AmiBroker please send an e-mail directly to > SUPPORT {at} amibroker.com > > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > http://www.amibroker.com/devlog/ > > For other support material please check also: > http://www.amibroker.com/support.html > > Yahoo! Groups Links >
