BullCharts Forum Homepage
Forum Home Forum Home > BullCharts > BullScript
  New Posts New Posts RSS Feed: Number of New Daily Highs indicator
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Number of New Daily Highs indicator

 Post Reply Post Reply Page  <12
Author
Message Reverse Sort Order / View First Unread Post
cudderbean View Drop Down
Regular
Regular
Avatar

Joined: 02 Oct 2006
Location: Thailand
Posts: 40
Post Options Post Options   Quote cudderbean Quote  Post ReplyReply Direct Link To This Post Posted: 07 Feb 2013 at 11:26pm

Thank you for your reply, Maximo.

>> A value of 250 will show which are making new highs or lows for the year.

In the scan I don’t want to know which code names are making new highs. I simply want to know the raw number of codes making new highs, and have that number appear in a results table, not just in a corner of the toolbar at the bottom.

I tried fiddling with k% but by the time I had finished it did not look much different from my original coding above with a list of stocks that are making new highs. I think I may be missing your point.

Please could you demonstrate the basic scan for the stochastic K% you suggest..none of the fancy bits (if that’s too time consuming for you) just the core.

Thank you for your help

Back to Top
maximo View Drop Down
BullCharts Guru
BullCharts Guru
Avatar

Joined: 02 Sep 2006
Location: Australia
Posts: 232
Post Options Post Options   Quote maximo Quote  Post ReplyReply Direct Link To This Post Posted: 07 Feb 2013 at 12:33pm

A simple solution is to use the Stochastic indicator %K fast which does not lag or use averaging as opposed to %D.     A value of 250 will show which are making new highs or lows for the year.  The downside may be that this indicator doesn't have  a value greater than 100%.   Perhaps a modified version that goes to 200% would suffice.



Edited by maximo - 07 Feb 2013 at 12:35pm
Back to Top
cudderbean View Drop Down
Regular
Regular
Avatar

Joined: 02 Oct 2006
Location: Thailand
Posts: 40
Post Options Post Options   Quote cudderbean Quote  Post ReplyReply Direct Link To This Post Posted: 03 Feb 2013 at 4:02pm

I am trying ultimately to code Elder and Lovvorn’s The New High - New Low Index. It creates a line indicator showing the running total of new daily (and weekly) highs minus the new daily (and weekly) lows looking back over various periods of up to one year.

The concept seems quite good...looking for exceptional spikes, and divergences heralding a possible trend change etc Although I’m not sure it would tell you anything fundamentally different from extreme RSI readings for the XAO, or RSI divergence. But it would be fun to find out using Bullcharts (and Tradesim)... I’m like a kid in a lolly shop when I discover new indicators.

I can roughly figure out how to do it in Excel but my coding skills aren’t up to it in Bullcharts yet..or they were once but I’ve forgotten how. I need to lock myself in a room for a week doing nothing but working my way through the BC help file and every BC indicator/scan to get my head around the coding. I wish I lived next door to Robert Brain! (I can highly recommend his very helpful site for BC users   http://www.robertbrain.com)

I can do the code for a scan for new highs for a single day.

Eg for 1st Feb 2013 data I find by looking at the scan progress toolbar that there are 43 new highs from a total of 484 codes when I use the All Ordinaries as the Securities database

{"New Daily Highs in 250 days" scan}

{Variables}

prevhhi := hist(hhv(H,249),1);

 

{Condition}

filter := (h > prevhhi);

filter;

 

{Columns}

[name="High"; dp="3"] High;

[name="Prev highest hi"; dp="3"] prevhhi;

1.     How do I code for this scan (or any other), so that the count of the “pass filter number”   43   is shown in one of the columns? [name=.....]

    2    How do I change this very basic scan coding for one day only into a running total line indicator stretching back years.

Eg. This scan run individually on a daily basis for the codes in All Ordinaries this last rolling week produces the figures

25/1/13           47 new highs from 484 codes

29/1/13           72

30/1/13           40

31/1/13           29

1/2/13             43

How can I turn this scan into an indicator that incorporate those figures 47,72,40,29,43 as points on an indicator line chart.

Pointing out errors and suggestions most welcome

Thank you for your help.

Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.69
Copyright ©2001-2010 Web Wiz