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: TechTrader42 who wrote (3918)7/21/1998 2:10:00 AM
From: Dale Wingo  Read Replies (1) of 11149
 
Hi:

I'm a rookie and need some help..

In an attempt to begin some backtesting on some scans, I'm trying to determine what relative day number a certain date is using the following:

Output="Dater.lst";

DaysToLoad = 250;

integer intdays;

string strTarget;

strTarget:= "03/24/1998";

for intdays = -250 to 0 step 1 do
if date(intdays) = strTarget then
println "Date:",date(intdays):11, " = ", intdays;
intdays = -250;
endif;
next intdays;

When I run it I get an error just before the "Then" in the If statement: "Comparison undefined".

What am I doing wrong?

Thanks for any and all help!
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext