Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 12/10/2018 Posts: 4
|
What is the code to do a simple end of day scan to find stocks which have gapped down?
I will do this from a list of imported symbols/tickers
Thanks
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I am not actually sure what you are requesting. I don't know if you want to scan a daily time frame at the end of the day to check for a gap down (this is what I would suspect based just on the text of the post).
High below previous low:
H < L1
High below previous close:
H < C1
Open below previous low:
O < L1
Open below previous close:
O < C1
Or if you are interested in some sort of gap down near the end of the day in an intraday time frame (this seems to be suggested by the title of the topic). If you want this intraday version, I would need further clarification as to exactly what type of gap down you are attempting identify, the time frame, and how near it needs to be to the end of the trading day.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/10/2018 Posts: 4
|
Error in formula
Unkown method high at position 4
??????
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
If you have the word "high" in your formula, then you are including the description of at least one of the formulas in the formula.
The formulas themselves are quite short and in a different font. There are four of them. One of the formula checks for the high being below the previous low and all of the other formulas in the previosu post are of similar length and style.
H < L1
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/10/2018 Posts: 4
|
H < L1
H < C1
O < L1
O < C1
Error in formula
Syntax Error near <
Thanks
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
There are four completely different formulas. Choose whichever one best aligns with your definition of a "gap down".
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/10/2018 Posts: 4
|
Thanks! I am getting to grips with the charting software as I was using another provider. Pity TC2000 doesn't support The London Stock Exchange.
What condition do I add to screen for gap downs between two moving averages like in the image.
It gapped down between the 20 and 50 day moving average. I am using the gap down criteria from TC2000 as standard.
-1 * (L>H1) + -2 * (H<L1)
https://photos.app.goo.gl/epQzLtj5fxwbKwk4A
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
There are other possible interpretations, but please try the following condition formula.
(AVGC20 < H AND H < L1 AND L1 < AVGC50) OR (AVGC50 < H AND H < L1 AND L1 < AVGC20)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |