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

[EquisMetaStock Group] Re: OK...I got it...NOW, YOU HAVE IT!



PureBytes Links

Trading Reference Links

Conrad,

Okay, I am seeing a lot of confusion on your part.:-)

Let's see if we can straighten you out.

Listed in the files and links pages of the equismetastock group site 
are a wealth of places to get information from. One place is 

http://www.eis.pl/kr/AFM/index.htm

To find a formula you simply click on the appropriate letter and look 
for the formula. If you click on M, you will get a host of MACD 
formulas. One formula that I extracted and modified is listed below. 


mp1:=Input("Short MA",1,250,5);
mp2:=Input("Long MA",1,250,13);
final:=Mov(C,mp1,E)- Mov(C,mp2,E);
final

I believe this is what you are looking for. 

Line by line, let's explain the formula. The first line...mp1 is the 
method of setting the short moving average. In this case it is set to 
allow a minimum of 1, a maximum of 250, and defaults to 5. The second 
line...mp2 is the input for the long moving average. The minimum and 
maximums are the same as line 1 with a default to 13. The third line 
is the computation of subtracting the long EMA from the short EMA. 
The last line simply calls the computation.

All of this could be displaced by using a ref statement. To displace 
an indicator, you would use Ref(Ind,-dp) where Ind is your indicator 
and dp is the displacement periods. So if you wished to displace the 
final output of your indicator by lets say 3 days, the last line 
would read:
Ref(final,-3)

Displacement is a method of smoothing which simply looks at past 
value today. It is another way of slowing an indicator. Metastock 
does not have the capability to look into the future.

Since the computation of your indicator produces an oscillator, it 
will have a value of -100 to 100. If you attempt to place this on a 
chart with a price plot you would need to use correct scaling. You 
could use oscillator scaling on the left and price scale on the 
right. You could also use price scaling on the right and simply 
overlay the oscillator without a scale. Another option is to place 
the oscillator in a window of its own.

This should cover all of your confusion but if I missed something or 
only added to it let me know and I'll try to get you straightened out.


Preston


  



--- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@xxxx> wrote:
> Conrad,
> 
> The original formula that I sent was correct for your request. The 
> reason why it plotted as it did was because you needed to place it 
on 
> your chart using "overlay without scale" if it is in the same 
window 
> as your price plot. It should have been in its own window.
> 
> The formula is a macd type. Try switching around the A and B which 
> would be the difference of the 13 from the 5 not the 5 from the 13.
> 
> Preston
> 
>  
> --- In equismetastock@xxxxxxxxxxxxxxx, Conrad Smith 
> <conradfsmith3@xxxx> wrote:
> > Here is the code I came up with:
> > 
> > A:= Mov(C,13,E);
> > B:= Mov(C,5,E);
> > X:= A - B;
> > X:= Mov(C, 13, E) - X;
> > A;
> > X;
> > 
> > 
> > I needed the 13 day EMA - (the diffence of the 13 day EMA - the 5 
> day EMA).
> > 
> > This "thinking for yourself" is novel, but it hurts my head... :)
> > 
> > Thanks again!
> > Conrad



To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/