Print Page | Close Window

ATR bands

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=667
Printed Date: 19 Apr 2025 at 6:26am
Software Version: Web Wiz Forums 9.69 - http://www.webwizforums.com


Topic: ATR bands
Posted By: jalna
Subject: ATR bands
Date Posted: 01 Jul 2010 at 2:20pm
Can someone write me ATR trailing stop that I can alter easily. The period and the multiple
eg 5 period at 1.5 or 2.5 etc
The bands on BC are set in the formula and the Jim Berg one is complicated



Replies:
Posted By: maximo
Date Posted: 01 Jul 2010 at 11:04pm
Hi Jalna,
 
 This is as simple as i can make it.  It resets when there's a close below the stop, which may be useful for re-entry stop. 
 
I included this in a simple active investing strategy of mine with a breakout indicator.  I could post that as well with instructions if you like?  Not much  activity in the forum lately..  It would be good for anyone wishing to develop the most basic yet profitable plan.
 
 

Mult:=Input("ATR Multiplier",2,1);

Nb:=Input("Nb Periods",14,1);

HH := Close-Mult*ATR(Nb);

[target=price; color=black; linestyle=solid;]

if(HH<prev and close>prev,prev,HH);



Posted By: rbbrain
Date Posted: 04 Jul 2010 at 9:13pm
Hi guys,

Have you looked at the Wilson ATR Trailing Stop indicator? It is very useful and it does have customisable parameters.

Cheers


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


Posted By: jalna
Date Posted: 06 Jul 2010 at 10:31am
Thanks guys. maximo would it be possible to add a top band too.
I will have a closer look at the wilson when i have time
Thanks


Posted By: maximo
Date Posted: 06 Jul 2010 at 11:54pm
Okay, added a top band. 
 

Mult:=Input("ATR Multiplier",2,1);

Nb:=Input("Nb Periods",14,1);

HH := Close-Mult*ATR(Nb);

LL := Close+Mult*ATR(Nb);

[target=price; color=black; linestyle=solid;]

if(HH<prev and close>prev,prev,HH);

[target=price; color=magenta; linestyle=solid;]

if(LL>prev and close<prev,prev,LL);

 



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