Anderson Regression Line Stretch ARLS

v10.3
Anderson Regression Line Stretch ARLS

The Anderson Regression Line Stretch (ARLS) is an oscillator indicator conceptualised by me inspired by this paper that I found online (http://www.vantharp.com/Tharps-Thoughts/608_Dec_19_2012.html). The indicator measures the distance that price has moved away from its 30 period linear regression line expressed as a percentage of the current market price. If markets are orderly, price should not “stretch” too far away from the 30 period regression line. Therefore, statistically aberrant “stretches” beyond 2 standard deviations should be analysed by the trader. In order to make the indicator more useful, we apply +/- 2 & +/- 3 standard deviation lines on the ARLS oscillator. We deliberately do not plot a +/-1 standard deviation as this captures 68% of oscillation and it is the extreme moves (i.e. 2 & 3 standard deviations) that we want to identify for trading set ups. When the ARLS moves beyond the 2 standard deviation level, this should be noted and the trader should look at price action to see where price is in the context of the overall market trend. Markets that have experienced a prolonged up/downtrend and have moved beyond 2 standard deviations should be on watch for a statistical reversion. The price reversion should, at a minimum, go back to the 30 period regression line, which is interpreted as the current direction of travel for price. Another scenario is for price to remain steady and the regression line to catch up with price. The indicator is best combined with other statistical price observations such as ATR multiples and Bollinger bands to add context to the ARLS.

Text excerpt from the definition of the indicator posted by rowestock in this topic: https://www.prorealcode.com/topic/anderson-regression-line-stretch/

The upper and lower bands made of 2 and 3 standard deviation of the oscillator is calculated within the last ‘deviationP’ period which can be enlarged to get a more statistical deviation of the whole data set. Be sure that your current chart has enough bars to calculate completely this period.

 

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

New! PRC is also now on YouTube, subscribe to our channel for exclusive content and tutorials

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar
Related users ' posts
victormork Hi! No I don't have 200k history.
Yannick There is a huge drawdown from 2012 to 2013 after it keeps rising https://ti.md.it-finance...
victormork Thanks for sharing the 200k test!
Robin von Bauhn Here you go! Would like to hear your feedback :) cl = RSI[2]100-a if cl and close &...
Francesco78 Sorry there might be few typos, pls send the full code. Thank you
Robin von Bauhn Oh, it's "cs" that's missing. I don't have the code right now but it's the exact same condit...
atlante je me demande si prorealtime pourrait etre programee sur fonction lorsquún point cgange de c...
lizmerrill can you provide this code for tradestation, please. Thanks
Nicolas No sorry, please use this file instead into a prorealtime trading platform.
StantonR Got good results on ZAF 1hr timeframe
Wilko Great!
Wilko Thanks for letting the community know!
lizmerrill can you explain the flow of the code, just to clarify. RE:fullness = (Dclose(0)-Dopen(0))/ab...
Francesco78 hi Lizmerril, yes, that is correct
lizmerrill Thanks for replying, so.... I assume in your backtest, the fullness calculations using dclos...
supertiti Felicidades Laurenzo d'avoir pris le temps pour ce gros travail et en plus dans l'esprit du ...
gatarayihajp Hello,  It's very interesting indicator. Could you explain more about it? Thank a lot
diegofe_2000 cordial saludo NICOLAS , gracias por excelente indicador. ¿ es posible obtenerlo en MT4 ? ...
Nicolas Lo siento, pero no estoy trabajando para ayudar a la gente aquí de forma gratuita para promo...
diegofe_2000 Nicolas , gracias por tu atención. La pregunta era por curiosidad (yo no trabajo ni manejo ...
reb Hello Marc your strat seems very intersting, will take a look Reb
897148 What exactly is meant by Total price? Is r1 =28 in your example the no of days for "Total P...
larmhen
9 months ago
HerveS_67 Bonjour, A quoi correspondent les données S, M, L ? Hello, What do the data S, M, L?
gabri Excellent job like always!! are you working also on the Barycenter indicator?
Nicolas No but I think you can find a lot of different version of the "center of gravity - COG" indi...
Juan Salas Hi Francesco, Yes, this is pretty much the question. The system ask me a number of contract...
Francesco78 ok sounds good, you can put min size = 1 and go for the seasonable breakout too, also you ca...
JR1976 HI all , anyone test 200k bar for this great code ?
David Nicolas I've looked at it again and there's a problem.  As an example here's a simple cross...
Nicolas You'll need to preload bars to get the good calculations of you indicators. I did not test i...
David Nicolas I tried DEFPARAM Preloadbars = 5000 And still the same drawn output of entries/exit...
rpreviteri Hi Nicolas, thanks a  loto for sharing your knowliedge, Wasn't the original momentum pinball...
air Thank you!  
elanoa Buonasera sig. Nicolas......sarebbe possibile far in modo che quando l'indicatore raggiunga ...
Dimi.A Perfect for counter-trend scalping. I like this!
xel @DerPat - I don't see any question regarding the indicator.  Anyway, I think I give enough l...
diegofe_2000 Xel, tu eres el creador de este indicador? Bueno te  cuento que es muy bueno para hacer est...
xel Buen día @diegofe_2000 -  Claro, mandalo y por aquí lo probamos en otros instrumentos y si g...
leyoy Elles viennent d'apparaitre après redémarrage. Merci Nicolas. Du coup, les signaux sont à pr...
patrick3 Merci Nicolas pour cet indicateur, il me tarde de faire les tests
helloe do u have same indicator for mt4 ? as mq4 ?
Nicolas version 10.3 beta is already available at www.prorealtime.com
Gustaf Thank you Nicolas.Now it works!
HANTZ Hello, with I am currently use this linear regression channel. I would like to add a add...

Top