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

Re: Metastock and future values



PureBytes Links

Trading Reference Links


Here it goes for MACD - the indicator:

{It gives TODAY's Close which would make TODAY's MACD(12,24) = YESTERDAY' MACD(12,24) based upon
YESTERDAY's data}

1/(2/(12+1)-2/(24+1))
*(
2/(12+1)*Ref(Mov(C,12,E),-1)-2/(24+1)*Ref(Mov(C,24,E),-1)
)

For any other pairs of M,N in MACD(M,N)=Mov(C,M,E)-Mov(C,N,E) put M for 12, N for 24 in the above
formula. Now in MS7.x you can simplify down to elegance with parameters:

Period1:=Input("M=",1,250,12);
Period2:=Input("N=",1,250,24);

Just haven't had time to do it. Sorry.

Also, one may want to remove 1-day backshift to give TOMORROW's Close which would make TOMORROW's
MACD(12,24) = TODAY' MACD(12,24) based upon TODAY's data. It's a choice of how to chart it best.


Cheers, Vitaly


SGT099@xxxxxxx wrote:

> Greetings
>
> Anyone knowif it is possible in metastock to determine what values have to be
> reached to make an indicator turn in the future. i.e. if stochastics or the
> macd is turning down what values would you need to see it rise tommorow or
> the day after. thanks
>
> ST