Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Simple Shadows Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
brihous
Posted : Monday, July 7, 2014 3:19:56 PM
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.

Bruce_L
Posted : Monday, July 7, 2014 3:47:45 PM


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
brihous
Posted : Monday, July 7, 2014 4:06:09 PM
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.

 

trout2
Posted : Monday, July 7, 2014 8:36:27 PM
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

Bruce_L
Posted : Tuesday, July 8, 2014 12:11:51 PM


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
Bruce_L
Posted : Tuesday, July 8, 2014 12:57:52 PM


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
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.