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
|
|
|
|
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)
|
|
|
|
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]
|
|
|
|
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 '-)
|
|
|
|
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.