Automatic drawing Standard Deviation Channel

Automatic drawing Standard Deviation Channel

This indicator plots automatically a linear regression channel with 1 and 2 standard deviation lines of the last X periods.

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?

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

  1. Choliver • 02/22/2019 #

    Bonjour et merci pour cet indicateur.
    Toutefois, il me semble qu’il est unidirectionnel.
    Par exemple ce matin 8 mars, sur un graphe CFD Dax en 5 min (10 unités), il devrait avoir changé d’orientation en passant d’une orientation haussière à une orientation baissière.
    Il est finalement resté en orientation haussière toute la matinée.
    Nicolas, pouvez vous me confirmer qu’il y a effectivement un souci please ?

    • Louis Winthorp III • 02/22/2019 #

      Hi Choliver, you are right, there is a problem with the drawing instruction when the slope is = 0 THEN
      y1 = LinRegres – ((LinRegPeriod-1)*LinRegresSlope)
      y1 = LinRegres – ((LinRegPeriod-1)*LinRegresSlope)

      with :
      y1 = LinRegres – ((LinRegPeriod-1)*LinRegresSlope)

      I’ll ask Nicolas to update the code.

    • Nicolas • 02/22/2019 #

      File and code are updated.

  2. Zasinas2000 • 02/22/2019 #

    Hi allo

    I am not sure I am doing it correctly, but this adds to proreal as an indicator. How to ad it as a study, so it would draw lines on the chart?

  3. Trimicha • 02/22/2019 #


    when I copy the code, i get an error message that
    LinRegPeriod is not defined.
    Does anyone know how to solve that?

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Fabian Hi IV Mcm, have you drawn the rectangles (Dinamic, Range) by yourself in the chart or are...
IV Mcm Myself to illustrate ;)
Nicolas Ask on an Excel website?!
imokdesign @nicolas ,if in want to "call" this indicator, which values i have to write down?
Vonasi There are actually two ways to calculate standard deviations and I seem to have used the ver...
Vonasi There are actually two ways to calculate standard deviations and I seem to have used the ver...
segie Can something similar be done with Supertrends?
Vonasi Not sure I fully understand what you are asking for. Are you asking for MTF Supertrend level...
Kris75 very interesting; thanks !
Nicolas How to import file page: in the help section of the website explains howto
kenssa import through the indicator page/window in the Proreal time
chicoteca Buenas, no consigo que se me muestre en el chart de DAX. ¿Cómo procedo? Gracias.-
Ciurno981 Does anyone have the data at 200,000 units, why would I like to see over 5 years?
Ludwig Bonjour Merci pour le code, je souhaite intégrer un break even et mette en place un réinves...
superfalcio hello, this strategy is pretty interesting, anyway on index after diferent suggestion and im...
Byggtrader Hi Nicolas! How do I get the indicator in the price chart? It only stays under i new chart.
Nicolas Just add it on the price chart by using the wrench on the left upper side of the chart (pric...
jobswaps oyes aste uno de soportes y recistencias
jobswaps eso lo necesitamos
redactv7 On my charts, the indicator doesnt go on the upper pannel, on prices, but under like an osci...
Nicolas apply in on the chart, look at this how-to video:
jonpt88 interesting code thanks!
Nicolas Sorry I do not provide assistance for Tradestation code.
surfeur Bonjour, Je suis pas expert en PRT donc si qq'un peut m'expliquer un peu le code ? Par...
Nicolas src c'est bien le customclose en effet. ATR, si aucune série de données n'est spécifié, il u...
carlvan That's a great indicator and I especially the use of colors, more or less pronounced to indi...
ALE Hello do you want to explain to me in more detail what you have to do? Please replay here:...
4 years ago
Balmora74 Thanks for this code. i will try to adapt it in the EUR/USD Pac Man Strategy who is based on...
Vonasi I still have two versions of the PacMan strategy on forward test although there have been va...
Balmora74 I use your version on a real account and the strategy is profitable and i did not have any p...
Jack86gv Ciao Nicolas, e possibile fare uno screener con questo codice ovvero vorrei sapere quando il...
wharfdog Hi Nicolas, Fantastic work, I'm really grateful for this. I was wondering if it would be ...
sir_i Bonjour à tous, Je suis nouveau sur le forum et sur la plateforme, pourriez-vous me dire com...
Nicolas Il faut simplement l'appliquer sur le prix.
sir_i Merci pour la réponse, je ne suis pas familier avec l'application de cette procédure simple,...