Print Page | Close Window

Labelling recent highs and lows

Printed From: BullCharts Forum
Category: BullCharts
Forum Name: BullCharts discussion
Forum Discription: General discussion about getting started with BullCharts and exploring its features.
URL: http://www.bullcharts.com.au/forum/forum_posts.asp?TID=508
Printed Date: 19 Apr 2025 at 9:38pm
Software Version: Web Wiz Forums 9.69 - http://www.webwizforums.com


Topic: Labelling recent highs and lows
Posted By: sleepy
Subject: Labelling recent highs and lows
Date 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 - http://www.filedropper.com/highsandlows

Would love to replicate this if possible.

sleepy :)



Replies:
Posted By: maximo
Date 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;



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