SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : Metastock 6.0 for Window

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: Dominick who wrote (3720)11/18/2000 3:28:56 AM
From: Warthog   of 4056
 
hi Dominick,

One way to debug these things is to develop the
indicator in steps..

1) create a variable to just compute (High + Low)/2
2) create a variable to display the Moving average
3) Optimize

For example 1st Pass;
V1: = (High + Low)/2;
V2: = mov(C,30,s);
V1

{ this should display plot median )
===========
For example 2nd Pass;
V1: = (High + Low)/2;
V2: = mov(C,30,s);
V2
{ this should display the moving average }
==========================================
For example 3rd Pass;
V1: = (High + Low)/2;
V2: = mov(C,30,s);
V1 - V2
{ this should display the desired result}
===========================================
Then optimize...
V1: = (High + Low)/2 -mov(c,30,s);
V1
{ getting closer...)
=================================
and if everything is going well...then just
((High+Low)/2) - mov(c,30,s);

should do it

hope this helps
wart
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext