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: Craig DeHaan who wrote (7124)10/11/1998 2:44:00 AM
From: Alan_C  Read Replies (1) of 11149
 
Anyone,

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

output = "out.lst";
issuetype = common;
exchange = nyse,nasdaq,amex;
daystoload = 100;
daysrequired = 99;
integer a, b, c, d, j, k, l, m;
set ROC=10;
a := ROC(0);
j := ROC(-1);
set ROC=15;
b := ROC(0);
k := ROC(-1);
set ROC=20;
c := ROC(0);
l := ROC(-1);
set ROC=30;
d := ROC(0);
m := ROC(-1);

if
(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))

then
println symbol,",", close(0);
endif;
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext