BullCharts Forum Homepage
Forum Home Forum Home > BullCharts > BullScript
  New Posts New Posts RSS Feed: ATR bands
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

ATR bands

 Post Reply Post Reply
Author
Message / View First Unread Post
jalna View Drop Down
Regular
Regular


Joined: 31 Mar 2007
Posts: 95
Post Options Post Options   Quote jalna Quote  Post ReplyReply Direct Link To This Post Topic: ATR bands
    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
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: 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);



Edited by maximo - 01 Jul 2010 at 11:23pm
Back to Top
rbbrain View Drop Down
BullCharts Staff
BullCharts Staff
Avatar

Joined: 22 Jul 2006
Location: Melbourne
Posts: 169
Post Options Post Options   Quote rbbrain Quote  Post ReplyReply Direct Link To This Post 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
Brainy's Share Market Toolbox and BullCharts Tips
[/CENTER
Back to Top
jalna View Drop Down
Regular
Regular


Joined: 31 Mar 2007
Posts: 95
Post Options Post Options   Quote jalna Quote  Post ReplyReply Direct Link To This Post 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
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: 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);

 


Edited by maximo - 06 Jul 2010 at 11:56pm
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