Multi Time Frame Simple Moving Average and Standard Deviation Bands

v11
Multi Time Frame Simple Moving Average and Standard Deviation Bands

This indicator allows you to display simple moving averages and standard deviation bands (Bollinger Bands) from slower time frames on your faster time frame chart. The indicator allows you to draw up to five different time frame lines and bands on your chart. Apply the indicator multiple times if you need more.

This indicator only works with PRTv11 onwards.

You set the average period and number of standard deviations for the bands with the various ‘p’ and ‘dev’ settings.

  • Mp – Monthly average period
  • MDev – Monthly deviations
  • Wp – Weekly average period
  • WDev – Weekly deviations.
  • Dp – Daily average period
  • DDev – Daily deviations.
  • HRp – Hourly average period
  • HRDev – Hourly deviations.
  • MIp – Minutes average period
  • MIDev – Minutes deviations.

If putting Hourly or Minute lines on your chart then you also need to set HRQty and MIQty to the number of hours or minutes. So for example set HRQTY to 4 to display the simple moving average and standard deviation bands from the 4 hour chart. Set the p value of any line that you don’t want to draw to zero –  this also helps the indicator calculate slightly quicker. For example if on a daily chart set HRp and MIp to zero.

The ‘EveryBar’ setting allows to to either just update the lines at the close of each bar on their slower time frame chart or if ‘EveryBar’ is set then the lines update on every bar on the chart you are viewing them on.

You can turn individual lines on and off and change their colour in the indicator configure window.

You can select whether the lines are calculated on close, high, low, median price etc in the indicator configure window.

As always I advise downloading and importing the ITF file to get full functionality.

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. Vonasi • 04/20/2020 #

    There are actually two ways to calculate standard deviations and I seem to have used the version for calculations on populations rather than on data samples. There is only a tiny difference between them but if you want a modified code then you can find it here; https://www.prorealcode.com/topic/standard-deviation-indicators-minor-fix/

  2. denmar • 04/20/2020 #

    Great, can’t wait for V11

    • Vonasi • 04/20/2020 #

      You can open a free end of day account directly with PRT and so play with some of the new features whilst we wait for v11 to become fully available for manual and auto trading.

  3. segie • 04/20/2020 #

    Can something similar be done with Supertrends?

    • Vonasi • 04/20/2020 #

      Not sure I fully understand what you are asking for. Are you asking for MTF Supertrend levels or standard deviation bands of Supertrend with MTF?

  4. Kris75 • 04/20/2020 #

    very interesting; thanks !

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Vonasi
5 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...
Nicolas https://www.prorealcode.com/topic/screener-regressione-canale/
wharfdog Hi Nicolas, Fantastic work, I'm really grateful for this. I was wondering if it would be ...
Nicolas File and code are updated.
Zasinas2000 Hi allo I am not sure I am doing it correctly, but this adds to proreal as an indicator. ...
Trimicha Hi, when I copy the code, i get an error message that LinRegPeriod is not defined. Doe...
lokbuscas is it possible to make a screener with this conditions??? thank you
achel I believe so but I leave it to Nicolas to decide if it is possible
Nicolas Please open a new topic in the screeners forum
XXXXVII Excellent indicateur ! Déterminer une tendance est devenu un jeu d'enfants ! Félicitation......
gregoire bonjour nicolas j ai cherché partout sur le net et impossible de trouvé ce que je recherch...
Nicolas Merci de poster une demande dans le forum des indicateurs, ainsi on pourra le coder dans ce ...
leoulve Hello, I uploaded correctly the screener and it is not selecting any. Is it normal? cheers
Oliviertrader2020 Hello, where do you find the ZeroLagMACDWeek indicator? You only posted the mtf-macd-diverge...
MJZTrader Good morning! I was trying to tweek the code in the way as to set it for intraday (1 Min to ...
Nicolas Definition of CustomClose: https://www.prorealcode.com/documentation/customclose/ [2] means...
Bard Just wondered Nicolas, say you had set DEFPARAM CumulateOrders = True, is there anyway for t...
Bard Sorry pls ignore last image, try this - it actually has the Dev Stop indicator! https://www...
Gianluca Hello Nicolas, my prt become stuck when i load the indicator, is there any problem with it?
m-zeter Has anyone found a solution for Sofitech? Would it be possible to draw two lines? An upper l...
m-zeter Hm, i dont know exactly why, but I think, that the indicator needs lots of power. I need als...
Vonasi Forum discussion on these indicators can be found here: https://www.prorealcode.com/topic/av...
jennr29 Hi. Is it possible to convert this code to an mq4 file?
Nicolas Sorry but our website is dedicated to prorealtime programming. However, you can ask for priv...
Leo Does it opens pending orders?... maybe they were not trigger.
Mattzi Dont know, all i can see is that it opened an order yesterday in backtest but not live. Th...
Jean-Christophe Hello Leo, when running the strategy from 29/12/2015 to 31/08/2018 on ProRealTime Premium, I...
anametsinwha Is it possible to change it to highs and lows rather than open and close?
apachx Hi. Please, describe the algorithm in words. I want to understand how it works, but for now...
mcha Bonjour Nicolas J'ai mis cet indicateur sur une période graphique 1 heure. J'ai choisi 1...
marzibre Bonjour Nicolas. I work mainly on Daily timeframe. I was looking something similar but usi...
TraderGlyn This is an excellent indicator, it provides a hugely useful visual interpretation that filte...
juanj This gets me thinking about creating a strategy on the 5min timeframe that only takes trades...
GraHal I noted above does okay on DAX 10 min with even a reduction to 30 of the Stop Loss. I've s...
Kris75 Hi Grahal, What about making the same great work you did with the snipet on google doc but...
LancerX This catch my attention, tried to load in pro order but not coming through. What variables n...
macdopa Hello ALE. Is there any way to help us develop or program an algo-strategy for automatic tr...
Giuseppe68 Ciao, sono nuovo e poco esperto, volevo chiedere perchè il ProBacktest lo esegue correttamen...
Alai-n Merci pour ce travail...
patmaba merci Alai-n. C'est ma première participation sur prorealcode, merci pour à toi pour ton co...
longtrade Can this be converted to a screener?
swapping Oups nicolas ! je pense que tu a oublié de mettre les variables "setting" accessible en exte...
Nicolas Je viens de vérifier, elles y sont pourtant?
swapping Mea culpa, j'ai fait un bête (copier/coller) et forcément cela ne pouvait pas y être puisqu'...
WarningTrading Comment peut on la comparer ? comme ceci ? cela ne me donne plus le message d'erreur manque...
sally31120 Bonjour, je n'arrive pas à créer ce screener close > supertrend extended2[1] la réponse...
Nicolas voir ce sujet pour un screener basé sur Supertrend Extended: https://www.prorealcode.com/top...
Nicolas Better to download the file from the page and import it into your platform in order to not c...
marcov66 Hi Nicolas, thanks for sharing the VWAP Date Indicator. It is really powerful. Nevertheless,...
Nicolas Are you sure you are using the same exact date, hours, minutes, seconds for anchor?

Top