Welcome to the Traders Laboratory Forums.
Trading Indicators Post your custom trading indicators. If you download, remember to click INSTALL.

Reply
Quick MA Details »»
Quick MA
Platform: , by zdo zdo is offline
Developer Last Online: May 2012 Show Printable Version Email this Page

Platform: Unknown Rating:
Released: 09-25-2008 Last Update: Never Installs: 0
 
No support by the author.

Here is a 'very inexpensive' alternative to Juriks Moving Average contributed in Easy Language by John D. McCormick (TS handle = JDM, see jmactrader.com).

Quote:
Moving Averages are used to remove noise. By “noise” is meant the apparently random motion up and down of the prices around their average price. This shows up on a moving average as a jagged appearance on an otherwise smooth line. The jaggedness can trigger false buy and sell signals or simply make the indicator hard to read, so we try to smooth out the average, i.e. remove the noise.

Lagging or lateness is the bane of moving averages. You make them longer (average in more bars) and the moving average is smoother, but now it lags way behind the actual price movement.

The ideal moving average should filter out noise and respond quickly – and – it would be a plus if it was fast calculating. That’s kind of like having your cake and eating it too.

Nevertheless, here’s one, I call it Quick MA, that seems to work as well as any I’ve seen.
Full thread is at https://www.tradestation.com/Discuss...txtExactMatch=
Posted with his permission. Please retain his 'copyright' info in the code. Many thanks to JDM.

Download Now

File Type: eld QUICK.ELD (5.4 KB, 294 views)

Show Your Support

  • If you like to thanks you by the author -> Click Thanks to the Author
  • This modification may not be copied, reproduced or published elsewhere without the author's permission.

Similar Indicator
Mod Developer Type Replies Last Post
Hull Moving Average Strategy Minetoo Trading Indicators 25 05:23 PM 07-02-2009
The Following 9 Users Say Thank You to zdo For This Useful Post:
garp (11-22-2008), hawk_7_7 (12-04-2008), Minis Trader (11-27-2008), pathfinder62 (11-22-2008), RobotMan (04-03-2009), Soultrader (01-08-2009), Tams (04-06-2009), TradingPro (03-07-2010), whisper01Barry (11-23-2008)

Comments
Old 09-25-2008, 12:53 PM   #2
zdo

Join Date: Nov 2007
Location: boonies
Posts: 1,349
Ignore this user

Thanks: 317
Thanked 355 Times in 256 Posts
Blog Entries: 104

Re: Quick MA

And here is the source in readable text

Indicator

Code:
//
//	Plots a fractional-bar Quick Moving Average 
//	with the option to select gapless daily opens.
//
//	copyright 2008 John McCormick jmactrader.com
//
//	feel free to copy and use this code royalty free
//	as long as it retains the above acknowledge
//

inputs:
	Price(Close),
	Quick_Length(9),
	displace(0),
	gapless(0);	// set gap to a non-zero value to skip over opening daily gaps

Var: Length(maxlist(1,Quick_Length));

// GapLess
	
Vars:			// gapless O,H,L,C where O=C[1]
	RelO(0),
	RelH(0),
	RelL(0),
	RelC(0),
	gap(0),
	Accum(0),
	WtMean(0);

if date<>date[1] then begin
	gap		=	O-C[1];
	Accum	=	Accum+gap;
end;

RelO	=	O-Accum;
RelC	=	C-Accum;
RelH	=	H-Accum;
RelL	=	L-Accum;

				// Gapless bars - end

WtMean = (RelH+RelL+RelC)/3;

// End Gapless
		
if gapless=0 
	then plot1[displace](FMA_Smooth(price,length),"FMA_Quick")
	else plot1[displace](FMA_Smooth(RelC,length)+accum,"FMA_Quick");

Function

Code:
//  generates very smooth and responsive moving average
// 	copyright 2008 John McCormick  jmactrader.com
//	feel free to copy and use this code royalty free 
//  as long as you don't remove the above acknowledgement
//		

Inputs: 
	Price(numericseries), 
	Length(numericsimple);

Vars:
	j(0),
	workinglen(maxlist(1,absvalue(Length))),
	peak(workinglen/3),
	tot(0),
	divisor(0);

Array:
val[100](0);

if workinglen>100 then workinglen=100;  //  use larger array to handle lengths over 100


tot=0;
divisor=0;
for j=1 to floor(workinglen+1) begin
	if j<=peak then val[j]=j/peak
	else val[j]=(workinglen+1-j)/(workinglen+1-peak);
	tot=tot+price[j-1]*val[j];
	divisor=divisor+val[j];
end;
if divisor<>0 then FMA_smooth=tot/divisor;
zdo is offline  
Reply With Quote
Old 09-25-2008, 01:04 PM   #3
zdo

Join Date: Nov 2007
Location: boonies
Posts: 1,349
Ignore this user

Thanks: 317
Thanked 355 Times in 256 Posts
Blog Entries: 104

Re: Quick MA

Here is a comparison of JurikMA (cyan) and QuickMA (yellow)

The arrows show spots where JMA beat QMA to the turn
(Note, though, there may be instances off this chart where QMA leads JMA)
Enjoy
Attached Thumbnails
Quick MA-comparequickvsjurik.jpg  
zdo is offline  
Reply With Quote
The Following User Says Thank You to zdo For This Useful Post:
pathfinder62 (11-22-2008)
Old 09-26-2008, 02:29 AM   #4

Join Date: Jul 2008
Location: chicago
Posts: 67
Ignore this user

Thanks: 2
Thanked 13 Times in 8 Posts

Re: Quick MA

Wow! Here's the best I could do in that same time period (6/4 YM 1 min).

I'm very impressed by how smooth both of those are.

There's three in this pic: the light blue was my attempt at smoothing the thin pink one. The other thin pink one was another smooth attempt but it wasn't good.

Those up there are very, very smooth.
Attached Thumbnails
Quick MA-fast-mas.jpg  
metalhead is offline  
Reply With Quote
The Following User Says Thank You to metalhead For This Useful Post:
Old 11-22-2008, 03:53 PM   #5

Join Date: Feb 2007
Location: MidWest
Posts: 23
Ignore this user

Thanks: 184
Thanked 1 Time in 1 Post

Re: Quick MA

QUOTE-Here is a comparison of JurikMA (cyan) and QuickMA (yellow)...

Great work & thanks for sharing/educating us. Tom M.
pathfinder62 is offline  
Reply With Quote
Old 11-27-2008, 07:58 AM   #6

Minis Trader's Avatar

Join Date: Jun 2007
Location: Long Island, NY
Posts: 79
Ignore this user

Thanks: 7
Thanked 12 Times in 5 Posts

Re: Quick MA

I have been looking for a MA smoothing indicator similar to Juriks, thanks for sharing.
Minis Trader is offline  
Reply With Quote
Old 01-08-2009, 08:30 AM   #7

Join Date: Oct 2008
Posts: 5
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: Quick MA

zdo, your graph show the Quick MA as yellow, and "AMA" as cyan... not JMA. Can you post another graph that have the QuickMA, AMA and JMA on 1 graph?

Thanks
rurimoon is offline  
Reply With Quote
Old 01-08-2009, 01:46 PM   #8
zdo

Join Date: Nov 2007
Location: boonies
Posts: 1,349
Ignore this user

Thanks: 317
Thanked 355 Times in 256 Posts
Blog Entries: 104

Re: Quick MA

Quote:
Originally Posted by rurimoon »
zdo, your graph show the Quick MA as yellow, and "AMA" as cyan... not JMA. Can you post another graph that have the QuickMA, AMA and JMA on 1 graph?

Thanks
rurimoon,

Yellow is QuickMA
Cyan is really Jurik
(through the 90's it was the only adaptive mov avg I considered, hence the indicator label of "AMA" … (and obviously) it uses JMA function)
TS has an AdaptiveMovingAverage built in (Kaufman’s) but I would be afraid to even allow it to open on my screen …seriously and
If you have TS you can try it... if not let me know and I will take some serious pain medication and put up a comparison. Keep in mind though that the kaufman effectively just 'dynamically' varies the length parameter via a stochastic rather than actually doing the 'phasing and whatever' that more recent ama do...
hth
zdo is offline  
Reply With Quote

Reply

Tags
hull, moving average

Thread Tools
Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick Facts about Rollover Day MrPaul E-mini Futures Trading Laboratory 7 06-13-2008 06:07 AM
A quick question on EuroDollar? yjl Beginners Forum 4 01-28-2008 03:56 PM
A few quick questions on Tradestation... MC Brokers and Data Feeds 4 11-04-2007 09:39 AM
A quick hello BlowFish Introduce Yourself 4 03-25-2007 03:42 PM
Quick YM Analysis 01/17/07 TinGull Market Profile 0 01-17-2007 08:14 AM

All times are GMT -4. The time now is 08:26 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.