BullCharts Forum Homepage
Forum Home Forum Home > BullCharts > BullCharts discussion
  New Posts New Posts RSS Feed: Labelling recent highs and lows
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Labelling recent highs and lows

 Post Reply Post Reply
Author
Message / View First Unread Post
sleepy View Drop Down
Newbie
Newbie


Joined: 03 Sep 2006
Posts: 5
Post Options Post Options   Quote sleepy Quote  Post ReplyReply Direct Link To This Post Topic: Labelling recent highs and lows
    Posted: 07 Oct 2008 at 11:04pm
Has anyone come across BullChart code that labels recent highs and lows?

Below is a snapshot from Ninja Trader that does just this.

http://www.filedropper.com/highsandlows

Would love to replicate this if possible.

sleepy :)
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: 15 Oct 2008 at 2:31am
If you look in BullScript Help/Attribute Reference/Linestyle.  The code is there for you.
 
ie.
 
[target=Price]
size := input("Zig zag size",4,0);
z := zigzag(Close,size,%);
ispeak := z>hist(z,1) and z>future(z,1);
istrough := z<hist(z,1) and z<future(z,1);

[linestyle=Solid; color=Red]
z;

[color=Blue]
[linestyle=Text; textalign=Above,Center]
if(isPeak, "Peak at " + z, undefined);
High;

[linestyle=Text; textalign=Below,Center]
if(isTrough, "Trough at " + z, undefined);
Low;


Edited by maximo - 15 Oct 2008 at 2:32am
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

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