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 (3833)4/5/1998 4:54:00 PM
From: Roy Yorgensen  Read Replies (2) of 11149
 
Hello from a new member with questions about scans.

I spent quite a while last night looking through the past messages on this thread (and decided to become a member today). I want to thank everyone for all the information I found. I recently started using QUOTES PLUS and I hope someone can assist me in a couple of areas.

I would like to 'back test' some of my ideas and can't seem to get the LOOP()function to do what I thought it would. I would like to scan the history of specified issues and have the scan return the dates and results of each true occurrence. Here is the scan I have been trying;

//Scan for Stochastic switch on up volume

Integer A,K,D
A:=0 //A= Day to start search loop
K:=14 //K=%K parameter
D:=3 //D=%D parameter

Input "test.lst" //Use established list file
Set Stochastic=K,D //Set Stochastic parameters

Loop(A-1,A-90) //Set Loop
AllGroup //Set to all results
//Scan
Vol(0)>Vol(0-1) //Check volume
StochasticPctK(0)>50
StochasticPctK(0)>StochasticPctD(0) //%K>%D today
StochasticPctK(0-1)<StochasticPctD(0-1) //%K<%D yesterday

//Print results
Println symbol:6,Date(0):12,StochasticPctK(0):8:3,StochasticPctD(0):8:3

It only returns one occurrence for each issue, even when I know there are others. If I change the AllGroup to AnyGroup I only get the most current result (usually today).

Any help would be appreciated on this LOOP() function.
Thanks and happy trading
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext