logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
StorkBite  
#1 Posted : Sunday, August 14, 2005 4:16:46 AM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
<Request forwarded to forum> How do you build a Moving average formula with 5 days closing price and 6 days opening price MA?
wabbit  
#2 Posted : Sunday, August 14, 2005 8:14:38 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
If you want to see the two lines on the same indicator: Simple MA's ma1:=Sum(C,5)/5; ma2:=Sum(O,6)/6; ma1; ma2; Exponential MA's m1:=2/(5+1); ma1:=(C*m1)+(PREV*(1-m1)); m2:=2/(6+1); ma2:=(O*m2)+(PREV*(1-m2)); ma1; ma2; If you want to combine the indicators and add some weighting to one of the values, something like: ma1:=Sum(C,5); ma2:=Sum(O,6); ((ma1*x)+(ma2*y))/z; or m1:=2/(5+1); ma1:=(C*m1)+(PREV*(1-m1)); m2:=2/(6+1); ma2:=(O*m2)+(PREV*(1-m2)); ((ma1*x)+(ma2*y))/z; find the right values of x,y, and z that suit your purpose. Hope this helps. wabbit :D
Users browsing this topic
Guest (Hidden)
Similar Topics
Moving Averages Values (Formula Assistance)
by Redhorse 10/27/2022 9:43:49 PM(UTC)
Creating price filters for crosses of moving averages (Formula Assistance)
by norsk123 4/30/2013 10:33:45 AM(UTC)
Moving Averages 3.0 (Formula Assistance)
by HyperionAUT 1/29/2013 4:11:42 AM(UTC)
System testing formula for moving averages help (Formula Assistance)
by GeneralRC 1/10/2013 5:20:07 AM(UTC)
Converging Moving averages detection using Explorer (Basic Coding Techniques)
by Sylar Trader 1/27/2012 2:08:27 AM(UTC)
3 different Moving Averages in 1 Indicator (MetaStock)
by Abhishek 12/7/2011 9:39:42 AM(UTC)
plz help. why the moving averages i plotted on the graph shift as I drag graph alone? (MetaStock)
by sharonjing 10/5/2009 11:20:55 PM(UTC)
Moving Averages (MetaStock)
by chiriwayra 6/2/2008 9:37:12 PM(UTC)
Moving averages change when scrolling? (MetaStock)
by j32driver 1/30/2008 11:44:12 AM(UTC)
Dennis Tilley - Moving averages with resistance and support (Formula Assistance)
by minnamor 1/20/2007 1:06:09 AM(UTC)
Moving Averages Crossover (MetaStock)
by trevor.chorn 5/16/2006 12:28:31 PM(UTC)
Moving Averages of "Variable" (Formula Assistance)
by WmWaster 4/16/2006 1:02:31 PM(UTC)
NEW!!! Moving Averages [RESOLVED] (MetaStock Developer's Kit (MDK) Assistance)
by wabbit 4/13/2006 12:45:55 PM(UTC)
Help please- daily moving averages on weekly charts (MetaStock)
by jakethedog 2/27/2006 12:25:43 AM(UTC)
Intersecting Moving Averages [RESOLVED] (Formula Assistance)
by topher1254 12/7/2005 8:38:18 PM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.