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 : TA-Quotes Plus

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: Alan_C who wrote (7125)10/11/1998 1:15:00 PM
From: Gary Lyben  Read Replies (1) of 11149
 
I'm entry level in this stuff but trying to learn how to write. Below is a small chunk of a scan to keep my question simple. I just can't figure out why I get an "unexpected letter" on the "a" after "if".

Thanks to anyone who has the time
Alan

(MovAvg(0,10,a) + ((MovAvg(0,10,b)*2) +
((MovAvg(0,10,c)*3)+((MovAvg(0,15,d)*4))>
(MovAvg(-1,10,j) + ((MovAvg(-1,10,k)*2) +
((MovAvg(-1,10,l)*3)+((MovAvg(-1,15,m)*4))


The movavg function requires a token as the third parameter.

To get a ten day ma of a 10 day roc,

SET ROC = 10;
a := movavg( 0 , 10 , roc );

SET ROC = 15;
b := movavg( 0 , 10 , roc );

a will contain today's vaue for the 10 day ma for a 10 period roc.

b will contain today's vaue for the 10 day ma for a 15 period roc.

Gary
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext