Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 1/5/2010 Posts: 29
|
Thank you in advance. What would real code be for candestick with shadow more than 1 time(s) the size of body. Need one for upper shadow and lower shadow.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
A RealCode Condition for the upper shadow being larger than the body can be be written as follows.
If Price.High - System.Math.Max(Price.Open, Price.Close) > _
System.Math.Abs(Price.Open - Price.Close) Then Pass
A RealCode Condition for the lower shadow being larger than the body can be written as follows.
If System.Math.Min(Price.Open, Price.Close) - Price.Low > _
System.Math.Abs(Price.Open - Price.Close) Then Pass
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 1/5/2010 Posts: 29
|
Thanks Bruce. Is their a way to make this more adjustable. For instance, the shadow being two or three times the size of the body. What I am looking for an indicator to show candles with large shadows either up or down. I was using the body as a form of reference not a absolute. I am not looking for a simple "hammer". I would like to use as a scan or a condition on a watchlist.
|
|
Registered User Joined: 12/9/2008 Posts: 30
|
Hi Bruce, I asked about creating a search for " Pipe Bottom " patterns @ have not found it anywhere. I will try and be clear... On weekly charts a stock has a down trend for at least 3 weeks. Then it has another down week and the trading range is larger than the previous week. Then, the next weeks trading range is very close to the previous week. Thank You Arnie
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
trout2,
Your question and answer is in the following forum topic.
price changes in scan conditions
Starting your own topic instead of asking questions in other unrelated topics might make it easier for you to find your questions and answers.
The following forum topic has more information about how to use the forums.
Learn how to use the forums: post a new topic, reply, Search existing topics
For example, you can click on your name in the forums to bring up a list of your ten most recent posts.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
brihous,
The following RealCode Condition for the upper shadow size being more than a certain multiple of the body size has a MoreThanX user input which can be used to adjust the multiple.
'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Adjustable Upper Shadow
'|******************************************************************
'# MoreThanX = UserInput.Single. = 1
If Price.High - System.Math.Max(Price.Open, Price.Close) > _
MoreThanX * System.Math.Abs(Price.Open - Price.Close) Then Pass
The following RealCode Condition for the lower shadow size being more than a certain multiple of the body size has a MoreThanX user input which can be used to adjust the multiple.
'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Adjustable Lower Shadow
'|******************************************************************
'# MoreThanX = UserInput.Single. = 1
If System.Math.Min(Price.Open, Price.Close) - Price.Low > _
MoreThanX * System.Math.Abs(Price.Open - Price.Close) Then Pass
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |