Print Page | Close Window

Script help...

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=73
Printed Date: 23 Apr 2025 at 11:43pm
Software Version: Web Wiz Forums 9.69 - http://www.webwizforums.com


Topic: Script help...
Posted By: davkell
Subject: Script help...
Date Posted: 12 Dec 2004 at 9:48pm

Hi all;

I would like to run a scan that calculates the following formulae, but cannot implement it into a Bullscript. Any suggestions?

Stage Factor = (Close - Lowest Low of 12months) / (Highest High of 12months - Lowest Low of 12months) * 100%.

Hope that makes sense. Thanks.



-------------
"Trade Your Way To Financial Freedom."



Replies:
Posted By: Peter
Date Posted: 13 Dec 2004 at 9:51am
Assuming you're on a daily chart, this should do the trick:
100*(CLOSE-LLV(L,250))/(HHV(H,250)-LLV(250))

(Or change 250, to 52 or 12 if you're using a weekly or monthly chart respectively).


Posted By: davkell
Date Posted: 16 Dec 2004 at 11:48pm

Peter;

Where can we get info/training on learning Bullscript? I have several ideas and don't want to run them all by you. For example, the script you just gave me makes sense, but I have only a basic  understanding of the values LLV (L, 250). It would be great to be able to learn all these type of functions and similar.



-------------
"Trade Your Way To Financial Freedom."


Posted By: Peter
Date Posted: 17 Dec 2004 at 9:03am
The best place to start with BullScript is by clicking on the Help menu in BullCharts, and selecting "Getting Started with BullScript".

This includes general discussion of the various features of BullScript, as well as a reference to all of the built in functions. In particular, you might want to look at the "Sample Indicator" page (third from the bottom in the contents tab), as this looks closely at each element of one of the built-in indicators.

The next thing to do is spend some time looking at the built-in indicators. Go to the build tab of the Insert Indicator window, select an indicator, and press Copy. This gives you ready access to over 100 examples.

If you've still got general questions, feel free to post them on the forum so everyone can benefit. Or if you need help with a specific system you've designed and want to keep private, http://www.bullcharts.com.au/contact.asp - email us.




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