ATR bands |
Post Reply |
Author | |
jalna
Regular Joined: 31 Mar 2007 Posts: 95 |
Post Options
Quote Reply
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 |
|
maximo
BullCharts Guru Joined: 02 Sep 2006 Location: Australia Posts: 232 |
Post Options Quote Reply 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 |
|
rbbrain
BullCharts Staff Joined: 22 Jul 2006 Location: Melbourne Posts: 169 |
Post Options Quote Reply 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 |
|
Convenor - Australian BullCharts User Group Brainy's Share Market Toolbox and BullCharts Tips [/CENTER |
|
jalna
Regular Joined: 31 Mar 2007 Posts: 95 |
Post Options Quote Reply 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 |
|
maximo
BullCharts Guru Joined: 02 Sep 2006 Location: Australia Posts: 232 |
Post Options Quote Reply 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 |
|
Post Reply |
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |