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

Notification

Icon
Error

Options
Go to last post Go to first unread
biandi  
#1 Posted : Saturday, August 25, 2007 1:39:10 PM(UTC)
biandi

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/23/2007(UTC)
Posts: 25

blank someone can to help to construct one me medium centered? I have tried but I do not succeed
amory  
#2 Posted : Saturday, August 25, 2007 5:20:06 PM(UTC)
amory

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/18/2007(UTC)
Posts: 99
Location: sydney australia

what do you want, a moving average of high & low prices?

Mov(H+L)/2,25,E ... or 10,S .... or whatever period you require (simple or exponential)

wabbit  
#3 Posted : Saturday, August 25, 2007 9:04:24 PM(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)
I think Andrea might be looking to construct a center-weighted moving average? sometimes called a centered moving average?

This can be done using the built-in Moving Average indicator, just drop the MA onto your chart then use the horizontal shift parameter to move the indicator left or right as appropriate. You can do this same task programmatically too...

BUT

at the right hand side of the chart there will be no data as it is not possible to create a centered MA on the last n/2 bars of data! (unless you have a one period MA! [:)] ) This limits the use of centered MAs in real life trading.

It is possible to construct algorithms to deal with the gaps at the hard right edge, but these usually involve external or other functions to deal with the N/A region; some people have tried to fill in the zone using hindsight based indicators making the result just as untradable as the centered MA.



Hope this helps?

wabbit [:D]

Jose  
#4 Posted : Saturday, August 25, 2007 9:20:10 PM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
Just like the ZigZag, Centered Moving Averages (CMA) and Detrended Price Oscillators (DPO) have their use in past trends and pattern recognition. You can find MetaStock code for almost any CMA from the free formula section at MetaStockTools.com. jose '-)
biandi  
#5 Posted : Sunday, August 26, 2007 2:39:02 AM(UTC)
biandi

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/23/2007(UTC)
Posts: 25

thanks to all the comunita one is truly pleasant
Users browsing this topic
Guest (Hidden)
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.