Print Page | Close Window

ATR

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=875
Printed Date: 19 May 2024 at 5:33am
Software Version: Web Wiz Forums 9.69 - http://www.webwizforums.com


Topic: ATR
Posted By: pauley
Subject: ATR
Date Posted: 18 Dec 2012 at 9:55am
Is anyone aware of how we change the ATR to a 10 day, 1.25 ATR?
 
Or perhaps that can be written up as a new one?
 
Cheerio
 
Confused


-------------
pauley



Replies:
Posted By: rbbrain
Date Posted: 05 Feb 2013 at 9:30am
Hi Pauley,

You could try the following Script for an indicator that places dots above, and below the price on a price chart (I am guessing that it is an indicator on the price chart that you want). If you want only the ATR dots above the price, then you can change the script to remove the lower ones (and vice versa). Or if you want the dots above to be a different ATR value, then again the script can be tweaked. Also, if you would rather have a stepped line instead of dots, or something different, then this is doable also.:

[description="This indicator shows ATR bands around the Typical Price, with the option to specify how far out the bands are to be placed. The purpose is to use the band as a Maximum Chase value when entering a stock (either long or short)."]
[citation="(citation not included)"]
[author=Brainy]
[target=Price]

atrperiods := input("Time Periods for ATR",13);
atrmultiples := input("ATR multiples",1.3);
atroffset := atrmultiples*atr(atrperiods);

TP := (H + L + C) /3;

stdha := TP + atroffset;
stdla := TP - atroffset;

[Name=Typical Price; linestyle = long dash; color = red]
TP;
[Name=Top; linestyle = points; color = blue]
stdha;
[Name=Bottom; linestyle = points; color = blue]
stdla;


Cheers



-------------
Robert Brain (Brainy)
Convenor - Australian BullCharts User Group
http://www.RobertBrain.com - Brainy's Share Market Toolbox and BullCharts Tips
[/CENTER



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