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: Howard R. Hansen who wrote (5150)7/3/1998 9:51:00 PM
From: Rick Slemmer  Read Replies (2) of 11149
 
Howard:

However, the Date function works just fine in this context.
Loop( -18, -18 )
Println Symbol, Date( 0 ), Close( 0 )

This will print the date and close 18 trading back.


Thanks, Howard; I'll give it a shot.

Something else I'd like to see is a "count" function. Loop the scan back 200 days, count the number of condition occurrences, and output the results. For instance:

1. Set count = 0
2. Loop back for 200 days
3. For [conditions=blah, blah, blah] count = count+1
4. Println count

Those of us with a penchant for statistical analysis could then take some comfort that the odds of certain occurrences were on our side.

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