[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Macd properties



PureBytes Links

Trading Reference Links

Jeff,

You can use the PRICE OSCILLATOR function instead of MACD(). MS help
gives that explanation :

SYNTAX  : oscp( PERIODS, PERIODS, MA_METHOD, DIFF_METHOD )

FUNCTION : Calculates the PERIODS/PERIODS predefined Price Oscillator
indicator calculated using the MA_METHOD moving average method expressed
in DIFF_METHOD.

Valid MA_METHODs are SIMPLE, EXPONENTIAL, WEIGHTED, TIMESERIES,
TRIANGULAR, and VARIABLE  (these can be abbreviated as S, E, W, T, TRI,
VAR).

Valid DIFF_METHODs are PERCENT and POINTS (these can be abbreviated as %
and $).

EXAMPLE : The formula "oscp(1, 25, E, $)" returns a 1-period/25-period
exponential price oscillator expressed in points.


So Jeff, if you use OscP( 12,26, E, $ ) and add a 9 periods exponential
moving average of this indicator as signal line, you have about the same
result that MACD(). You can now change the parameters.

Pierre Tremblay



jeff a écrit :

>  High guys I'm new to metastock and have a very simple question for
> you , when using the macd indicator  , how do I change one set of the
> property parameters without changeing the other i.e the moving
> averageline property and the macd property , as soon as I change one
> the other changes too?regards Steve.
>
>      ----- Original Message -----
>      From: Larry
>      To: metastock@xxxxxxxxxxxxx
>      Sent: Saturday, June 15, 2002 2:18 AM
>      Subject: Re: OBTR
>       I have the following formula for On Balance True Range!
>
>      Mov(Cum(If(C > Ref(C,-1),1,-1) *
>            (If(Ref(C,-1) < L,
>            {Then} (H - Ref(C,-1)),
>            {Else}
>            If(Ref(C,-1) > H,
>            {Then} (Ref(C,-1) - L),
>            {Else} (H - L) )))), 10 ,E);
>      Mov(Mov(Cum(If(C > Ref(C,-1),1,-1) *
>            (If(Ref(C,-1) < L,
>            {Then} (H - Ref(C,-1)),
>            {Else}
>            If(Ref(C,-1) > H,
>            {Then} (Ref(C,-1) - L),
>            {Else} (H - L) )))), 10 ,E),10,E);
>      Mov(Mov(Mov(Cum(If(C > Ref(C,-1),1,-1) *
>            (If(Ref(C,-1) < L,
>            {Then} (H - Ref(C,-1)),
>            {Else}
>            If(Ref(C,-1) > H,
>            {Then} (Ref(C,-1) - L),
>            {Else} (H - L) )))), 10 ,E),10,E),10,E)
>
>      Bob wrote:
>
>     > Here is one to fool around with. Put an EMA on it or watch
>     > for cross of zero. I think something similar was in the
>     > old Livewire software. Called "On Balance True Range." If
>     > anyone finds a good use for it let us know.Cum(
>     >     If( C, >, Ref(C,-1), + ATR(3) ,
>     >         If( C, <, Ref(C,-1), -ATR(3), 0) ))
>     > ---
>     > Outgoing mail is certified Virus Free.
>     > Checked by AVG anti-virus system (http://www.grisoft.com).
>     >
>     > Version: 6.0.370 / Virus Database: 205 - Release Date:
>     > 6/5/2002
>






  • References: