VWAP Date anchored

VWAP Date anchored

Another version of the VWAP indicator, this time you can set the start of its calculation with a date in YYYYMMDD format (modify it in the indicator settings). Set it on the last gap a stock on a daily timeframe will give you a good idea of the mean price since this particular day.

You also have the possibility to view or not the 3 upper and 3 lower standard deviation lines with a switch in the settings.

The VWAP formula is:

VWAP = Sum (Price[t] x Volume[t])  / Sum(Volume[t])

Indicator coded by a request made in this forum topic: https://www.prorealcode.com/topic/anchored-vwap/

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. hamid1736 • 10/19/2017 #

    Hi Nicolas,
    I couldn’t find a better way to ask you my question. I have a problem of finding a way to rerun a bar index of highest or lowest criteria. For example I want to know what is bar index of this statement highest [250](rsi[14](close)). Is it possible to get the bar index of such statement. Just to make it clear, I want to know what bar number that maximum or minimum RSI has happened in the last 52 weeks?
    Thanks in advance for your help.
    Hamid

    • Nicolas • 10/19/2017 #

      Sorry but this question has nothing to deal with this indicator, it belongs to a specific support to a new topic you need to open in the ProBuilder section of the forums. Thank you.

  2. rossneptune • 10/19/2017 #

    Hello Nicholas,

    I am super excited to see you having built this script (and @jaysay requesting it)! I assume he is a Brian Shannon scholar as am I. However, I am having difficulty creating this on the thinkorswim platform. I’m sure its a noob mistake, but my scripting knowledge is about nill. When I paste this script into thinkorswim, it replies with the error of “Invalid statement: // at 1:1”. When I remove the “//” of course I continually get similar errors. When I remove entire first two ‘paragraphs’ where these forward slashes occur, the script takes, but with no input ability (of course because the date settings you’ve created are removed. How can I get this thing to take?

    • Nicolas • 10/19/2017 #

      Hi, we do not offer free assistance for other trading platform than ProRealTime. There is no ThinkOrSwim (TOS) scripts at all here 🙂
      You can ask for private paid services through the programming services: https://www.prorealcode.com/trading-programming-services/

  3. Geons • 10/19/2017 #

    Hi! The indicator works perfect, but I can’t find a way to anchored the VWAP specify for each different ticker symbol. This VWAP has default settings like an moving average, eg. 200 days in every symbol, timeframe. I want the anchored VWAP to set different dates on different tickers. Is it possible? Thanks in advance!

    • Nicolas • 10/19/2017 #

      just change the starting date in the settings. The indicator does not have any predefined period as it uses the bars quantity elapsed since its first calculation, as per the VWAP formula.

    • Geons • 10/19/2017 #

      Not working because every change on VWAP not anchored on specific symbol. I want as a trend line is different for every ticker, not for all the same… Maybe this is not possible. Maybe must use drawing functions on code…

    • Nicolas • 10/19/2017 #

      Because you change the date in the code it affects all charts. Download the itf file from this page and use the settings from the indicator window and don’t change anything in the code.

  4. Geons • 10/19/2017 #

    No, I change the start date in settings, not in code. The problem is still here. I have installed the .itf file. Don’t know why..

    • Nicolas • 10/19/2017 #

      Because your charts are linked together in the same group. Just unlink them.

  5. Carlos G. Carreño • 10/19/2017 #

    Hi Nicolas,
    I´ve tried to add this script. Nonetheless, a message warning an error on programming code appears
    “the following variable is undefined: startDate, viewSD”
    I´m using the format yyyymmdd. Also I defined to show each standard deviation (1) .

    Suggestions?

    Thanks in advance

    • Nicolas • 10/19/2017 #

      Download the itf file and import it into the platform, or remove the // before the 2 variables names you mentionned, in your code.

  6. Carlos G. Carreño • 10/19/2017 #

    Thank you very much!!

  7. apalokamar • 10/19/2017 #

    Hello. Firstly, It doesn’t really replicate what Brian Shannon uses on his videos. Anyone has compared it and got the same ? And second It displays the anchored vwap on another window. can it be in the same window as the price? Anyone got any luck with it? Thank you for your help in advance.

    • Nicolas • 10/19/2017 #

      Sorry i don’t know who is Brian Shannon?! If you want to get the indicator applied on the price, apply it on the price. Use the wrench on the left upper side of the price chart.

  8. Bel • 10/19/2017 #

    Does look different esp when anchoring from the high… https://www.trendspider.com/blog/trendspider-user-guide-exploring-the-anchored-vwap-with-brian-shannon/

  9. PeterClothier • 10/19/2017 #

    Hi, is it possible to alter the SD setting to SD of say 0.5, 1.5 etc in the code? Thanks (Prorealtime user)

  10. PeterClothier • 10/19/2017 #

    @Bel. I was comparing to Trendspider too. I tried altering the code on Line 35 and Line 36 by adding a smaller the 1 SD to make it as similar as possible
    SDup1 = vwap+sd+0.45
    SDlw1 = vwap-sd+0.45.
    I then unticked the other lines. It makes it a much closer match to Trendspider, using MELI as an example from a youtube video.

  11. Dadoo • 10/19/2017 #

    Bonjour Nicolas. Avant tout merci beaucoup pour votre aide et cet indicateur. J’aimerais savoir s’il est possible d’apporter une modification à cet indicateur, afin de pouvoir ajouter des heures et minutes. Celapermet de positionner l’anchored VWAP a des bougie précises (gap, point bas, breakout etc)
    Où dois-je faire la demande, ici ou j’ouvre un post dans le forum ? merci

    • Nicolas • 10/19/2017 #

      voir ces sujets: https://www.prorealcode.com/topic/time-anchored-vwap/#post-128382
      https://www.prorealcode.com/topic/vwap-date-time-anchored/

  12. PhilHowells • 10/19/2017 #


    Hi Nicolas. I am really late to the party about this post but I have a question. I am an absolute newbie when it comes to coding and this is the first indicator that I have tried to import to PRT. I would like the indicator to show on my charts and it doesn’t, instead it displays underneath the chart. I know it’s not meant to be like this, from the illustration. Can you help me?

    • Nicolas • 10/19/2017 #

      Add it on the price chart with the wrench at the upper left side of price chart.

  13. poldoposta • 10/19/2017 #

    //PRC_VWAP Date anchored | indicator
    //19.10.2017
    //Nicolas @ http://www.prorealcode.com
    //Sharing ProRealTime knowledge

    // — settings
    //startDate = 20161212
    //viewSD = 1 //1 = true / 0 = false
    // — end of settings
    whith this setting my vwap is anchorated on 16.06.2022.
    where am i wrong?
    i want anchorate vwap and sd or at a specified date or at last week?
    Thanks you very much

    • Nicolas • 10/19/2017 #

      Better to download the file from the page and import it into your platform in order to not change the code by yourself. Once installed you will be able to change the date of the anchor with the setting “startDate” available in the indicator window.

  14. marcov66 • 10/19/2017 #

    Hi Nicolas, thanks for sharing the VWAP Date Indicator. It is really powerful. Nevertheless, It seems that there are slight differences on values in different time frames if you set the same date. The difference is around about 30/40 points from 1m TF to the daily. Thanks for your feedback. Regards Marco

    • Nicolas • 10/19/2017 #

      Are you sure you are using the same exact date, hours, minutes, seconds for anchor?

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
gabri Ha ragione in computer, ho sbagliato io BullAD = summation[period](ADvolbull*((Close-Low) –...
marcov66 Perfetto! Funziona. Grazie di tutto!
SkrHugo Bonjour, J'essaye d'utiliser le script avec le graphique renko mais sa ne marche pas, quelq...
Tonicejudo Hola Nicolas, a ver si me puedes ayudar. Hay un indicador que se llama volumen stop de bolsa...
Nicolas Utilice los foros para hacer preguntas no relacionadas con la página actual ...
Alai-n I also have the same problem that I can not solve especially on LowVolume (Yellow) ... Sorry
Mert No need to apologise, my friend. It is great code. I hope you find a solution soon. Regards.
gabri I think it's because the lookback period changes at every new bar and that means that many c...
Giuseppe68 ciao, ho provato l'indicatore e mi sembra interessante, ma in fase di backtest non riesco ad...
poldoposta veramente bello.....complimenti
rb-72 Thank you, area of twist by dilatacion of the price, missing part of the code that is not pu...
Thomas007 after reading your blog now I understand why there is only a part of your code here. I'm try...
Juanjo Hola¡¡ la estrategia se podria aplicar sobre acciones con marco temporal diario?? gracias.
rb-72 5 Minutes, 15 Minutes, The most effective 1 Hour below 0 or above 0 as a turn signal in the ...
Andraxx Interpretación de el indicador??? Gracias
TAC Bolsa Oscilador que hace una medición ponderara basado en la distancia entre precio y una media Mó...
julien1978 changing the trendDetectionLength setting does not seem to have any effect on the wave calcu...
arran i can't seem to get this indicator to work on forex pairs. it works great on indices etc. An...
Nicolas Indicator needs Volume, and there are no volumes with forex pairs with IG.
Lydia1948 Hi I really like this indicator - is it easy to change the colour of the blue dots to say g...
Nicolas Lines 23 and 24 are the Red and Blue value between 0 to 255, you can change the color of the...
Trading_En_El_Ibex35 El screener no busca acciones que estén en máximos absolutos , busca acciones en las que el...
Andraxx lo de volumen aceptable, lo dices en relación al Ibex 35 supongo. Porque se margen de volume...
Juanjo Hola Queria preguntarte si la idea de maximos anuales es tuya, o bien está basada en el sis...
BERTJES82 Hi Nicolas, is it possible to adjust the starting date of the VWAP on the charts? Thanks in ...
Nicolas Yes, have a look there: https://www.prorealcode.com/prorealtime-indicators/vwap-date-anchored/
Dadoo Merci Nicolas!
Thomas007 Is there any way to build something similar for FX? I wonder what would be the replacement f...
Jean-Pierre Poulain When I buy and when I sell ?
Nicolas The featured image of the post do not deserve the indicator you are right, I attached other ...
Nicolas It is described in the post already :) The BUY/SELL signals are quite similar of what you ca...
Nicolas
8 years ago
jiminykricket Hi Nicolas, Its fair to say i'm a relative novice with ProRealtime and as such i am not sur...
Nicolas You can use assisted creation in probacktest, you'll get a quick overview on how to call a p...
jiminykricket Thanks Nicolas, i'll take a look
CavalierDeCesDames Bonjour Nicolas, Thanks for your use full job. I tried this indicator on a shorter timefram...
Nicolas You are welcome. I'm glad you like it.
Bolbo It does not appear over the price indicator on V11. Thanks in advance.
bolsatrilera
8 years ago
Volume Stops
v10.3
Volume Stops
6
Indicators
Aragorna Hello, ask for a help, please. why the indicator in my PRT is in a different area and not in...
Nicolas Add it on the price chart: https://www.prorealcode.com/blog/video-tutorials/how-to-add-an-in...
Infanta Congratulations. Of all the indicators that I have been able to examine, in my opinion and f...
Nicolas
8 years ago
Voluminator
Voluminator
0
Indicators
Nicolas
8 years ago
Nicolas Sure, please open a new topic in the probuilder forum with all specifications needed.
toni1750 Hola, funciona en P11? lo he puesto y no me sale como en la imagen. gracias.
GustavoLoboOrenstein Hello Nicolas, I have a cumulative histogram update problem, the indicator often updates ...

Top