Print Page | Close Window

Close of candle

Printed From: BullCharts Forum
Category: BullCharts
Forum Name: BullScript
Forum Discription: Technical discussion related specifically to the BullScript programming language.
URL: http://www.bullcharts.com.au/forum/forum_posts.asp?TID=683
Printed Date: 23 Apr 2025 at 8:55pm
Software Version: Web Wiz Forums 9.69 - http://www.webwizforums.com


Topic: Close of candle
Posted By: jalna
Subject: Close of candle
Date Posted: 10 Dec 2010 at 6:45am
Could anyone help me with some Bull script.
I want to write a scan with the close of the candle being in its top area. The top 1/3 of the candle



Replies:
Posted By: maximo
Date Posted: 10 Dec 2010 at 3:36pm
Hi jalna,
 
I made digital filter for this.  It displays a 1 for true and 0 for false condition of a close in top 1/3.
You can name the indicator 'Top Third Close', then add it to any scan.
 

if( (L-C)*.33 >= C-H, 0, 1);



Posted By: jalna
Date Posted: 10 Dec 2010 at 5:08pm
Many thanks Maximo. Thats perfect
What would we do without you?




Posted By: maximo
Date Posted: 10 Dec 2010 at 7:50pm

Umm tell me that's not quite right lol.   Always seem to be in a rush.. this is better.

 
if(C > ((H-L)*0.66)+L AND C > O, 1, 0);
 
translation:  if the Close is above the lower 2 thirds of bar AND Close is above the Open THEN return 1 ELSE return 0.



Print Page | Close Window

Bulletin Board Software by Web Wiz Forums® version 9.69 - http://www.webwizforums.com
Copyright ©2001-2010 Web Wiz - http://www.webwiz.co.uk