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 -- Ignore unavailable to you. Want to Upgrade?


To: Gary Lyben who wrote (6579)9/17/1998 12:34:00 PM
From: Nine_USA  Read Replies (2) | Respond to of 11149
 
I just did the update for yesterday's data
and then ran several scans, including the one
which bombed yesterday.

So far, everything appears fine.



To: Gary Lyben who wrote (6579)9/17/1998 4:38:00 PM
From: Johan Van Houtven  Read Replies (1) | Respond to of 11149
 
Is it possible to write a scan for an all-time high in QPv2?

I thought this was relatively simple:

//All-time high scan
input = "stocks-in.lst";
output = "all-time-high.lst";

Integer NumDays;
Float MxHi;

DaysToLoad=2200;

if close(0) > 0 then
NumDays:=((DaysLoaded-1)*-1);
MxHi := Max(0,-255,hi);
Println Symbol, ", ", NumDays, ", ", MxHi;
endif;

If you replace the constant '-255' by the variable 'NumDays', in order to scan for a high over all loaded days like this

MxHi := Max(0,-255,hi); // original

MxHi := Max(0,NumDays,hi); // with -255 replaced by NumDays

the scan stops working. I.e. there is no output at all.

Anyone know why? Is this a parsing bug again?

Regards,

Johan



To: Gary Lyben who wrote (6579)9/18/1998 1:34:00 PM
From: Roy Yorgensen  Read Replies (1) | Respond to of 11149
 
Gary,
I'm getting different results from a scan ran on 9-16 and then after updating for 9-17.

The following scan returned CYMI and HMA on 9-16 after the 9-16 update.
After the 9-17 update (and setting the loop back one day) there were no HITS for 9-16.

There seems to be a problem with the ABS function?? Data?? or???? If I changed the marked lines I can get CYMI to come up but have not been able to get HMA.

I have a second computer that had not been updated to 9-17 and the results for 9-16 still come up CYMI & HMA.

After backing up comp #2, I updated with the 9-17 data and ran the scan for 9-16, no HITS.

This leads me to believe that the data is corrupted in such a way that it messes up the ABS function?

Please help!!

TIA
Roy

Input"Issue List.lst";
Output"!Morning DOJI Star.lst";
Integer i,Start,End,NumDays; //For back test loop
//
// Start and End were 0 on 9-16 and changed to -1 on 9-17 getting different results
//
Start:=-1; // Set to Oldest day for loop
End:=-1; // Set to Most recent day for loop
NumDays:=0; // Set to number of days for MovAvg etc.
DaystoLoad((Start*-1)+10);
For i=start to end
DO
//Black Body first day
If
Close(i-2)Open(i-2)*.03 //Longer Body
Then
//Gapping Body second day
If
Open(i-1)Open(i)and //White body
(Close(i)-Open(i))>Open(i)*.03 //Longer body
Then
// Down Trend Previously
If
Close(i-1)<Close(i-2)and
Close(i-2)<Close(i-3)and
Close(i-3)<Close(i-4)and
Close(i-4)<Close(i-5)//and
Then
PrintLn Symbol,",",Date(i),",","Morning Star" ,",","Reversal at Bottom";

//The following line was inserted for testing the inconsistent results
//PrintLn Open(i-2),",",Close(i-2),",",Open(i-1),",",Close(i-1),",",Open(i),",",Close(i);

EndIf;
EndIf;
EndIf;
EndIf;
EndIf;

Next i;



To: Gary Lyben who wrote (6579)9/18/1998 7:12:00 PM
From: Roy Yorgensen  Read Replies (3) | Respond to of 11149
 
Gary, Here is the scan again, don't know what happened the first time.

Sorry for any confusion
TIA
Roy

Input"Issue List.lst";
Output"!Morning DOJI Star.lst";
Integer i,Start,End,NumDays; //For back test loop
Start:=-0; // Set to Oldest day for loop
End:=-0; // Set to Most recent day for loop
NumDays:=0; // Set to number of days for MovAvg etc.
DaystoLoad((Start*-1)+10);
For i=start to end
DO
//Black Body first day
If
Close(i-2)<Open(i-2)And //Black body
(Open(i-2)-Close(-2))>Open(i-2)*.01 //Longer Body
Then
//Gapping Body second day
If
Open(i-1)<Close(i-2)and
Open(i-1)<Open(i)
//Close(i-1)=Open(i-1)
Then
If
Abs(Close(-1)-Open(-1))<Open(-1)*.01 //DOJI body
//Or
//Open(i-1)=Close(i-1)
Then
//White body third day
If
Close(i)>Open(i)and //White body
Close(i)-Open(i)>Open(i)*.03 //Longer body
Then
// Down Trend Previously
If
Close(i-1)<Close(i-2)and
Close(i-2)<Close(i-3)and
Close(i-3)<Close(i-4)and
Close(i-4)<Close(i-5)//and
//Close(i-5)<Close(i-6)
//MovAvg(i,5,Cl)<MovAvg(i-5,5,Cl)
Then
PrintLn Symbol,",",Date(i),",","Morning Star" ,",","Reversal at Bottom";
//PrintLn Open(i-2),",",Close(i-2),",",Open(i-1),",",Close(i-1),",",Open(i),",",Close(i);
EndIf;
EndIf;
EndIf;
EndIf;
EndIf;

Next i;



To: Gary Lyben who wrote (6579)9/19/1998 1:21:00 AM
From: Roy Yorgensen  Respond to of 11149
 
Gary, Found a Typo error (dumba me) in the scan, it works now.
Thanks for your efforts
Sorry for any inconvenience

Roy