Daily Weekly Monthly pivot points

Daily Weekly Monthly pivot points

This indicator embed the daily, weekly and monthly pivot points with choice of their mode of calculation.

Each support and resistance of the daily, weekly and monthly pivot formulas are rendered on chart. Since pivot points indicator is a common request, I found this one to answer perfectly to a lot of them!

This code has been posted on forum by Henry, many thanks to him.

 

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. oyinloyea • 05/12/2016 #

    Good Morning. What type of Pivot is this. I notice it is not the Classic Pivot 

    • Nicolas • 05/12/2016 #

      Hello, you can change the pivot calculation mode by modifying the “mode” variable at line 2 from 0 to 3. This indicator embedded all kind of pivot calculation (classical, woodies, etc..)

  2. filiprb • 05/12/2016 #

    Hello Nicolas! I’m having trouble using the monthly pivot part of this indicator into a strategy.
    Here is an example of what I’m kind of trying to achieve;
    DEFPARAM CUMULATEORDERS = FALSE

    //

    Once lastMonthBarIndex = 0
    Once monthlyHigh = undefined
    Once monthlyLow = undefined
    Once monthlyPivot = undefined

    If Month<>Month[1] then
    monthlyHigh = Highest[BarIndex - lastMonthBarIndex](High)[1]
    monthlyLow = Lowest[BarIndex - lastMonthBarIndex](Low)[1]
    lastMonthBarIndex = BarIndex

    monthlyPivot = (close[1] + monthlyHigh + monthlyLow) / 3
    Endif

    MM1 = AVERAGE[7](CLOSE)

    //

    C1 = MM1 CROSSES OVER MONTHLYPIVOT

    IF NOT LONGONMARKET AND C1 THEN
    BUY 1 CONTRACTS AT MARKET

    SET STOP %LOSS 2
    SET TARGET %PROFIT 5
    ENDIF

    What I’m doing wrong here? Answer would be much appreciated.

  3. bbtrading • 05/12/2016 #

    Thanks for the code.May it be possible to have the lines plotted in my chart? At this moment I got it in my indicator field which is a mess and not easy reading.

    • Nicolas • 05/12/2016 #

      Use the wrench on the left upper side of the chart to apply an indicator on price.

    • Partha Banerjee • 05/12/2016 #

      Hello Nicolas,
      There is a small difference between the outcome of this weekly and monthly pivots (mode 0) with that of the standard ones as shown in the enclosed chart. The mismatch stays same whether I use Sunday bar or not. Is it possible to fix this.
      Regards,

  4. bbtrading • 05/12/2016 #

    Thank you so much!
     

  5. Beloul • 05/12/2016 #

    Bonjour,
    Suite à des backtest, j’essai actuellement de tester les pivots Week et mensuel. Après plusieurs essais avec le code ci-dessus mes pivots ne correspondent pas aux pivots PRT par défaut.

    Exemple :

    J’ai testé individuellement le code du pivot Week suivant :
    weeklyPivot = (weeklyHigh + weeklyLow + Close[1]) / 3
    weeklyHigh = Highest[BarIndex – lastWeekBarIndex](High)[1]
    weeklyLow = Lowest[BarIndex – lastWeekBarIndex](Low)[1]
    lastWeekBarIndex = BarIndex

    Mais le résultat ne me donne pas le bon pivot, avec la formule [(H+B+C)/3]

    Aurais je une erreur dans le code ?

  6. Beloul • 05/12/2016 #

    J’ai l’impression que le “lastweekbarindex” n’est pas reconnu convenablement,

  7. Takeshi • 05/12/2016 #

    Oui il y a de grosses différences entre ce code et les pivots Week/Mensuel malhereusement

  8. Partha Banerjee • 05/12/2016 #

    Hello Nicolas,
    I am unable to attach the image. How do I do it please to fix this issue.
    Regards,

  9. efex77 • 05/12/2016 #

    Hello,

    Is it possible to modify the code to calculate pivots based on quarters? I mean, calculate pivots every quarter of the year (not last 3 months). How can I do that?

  10. Jezza34 • 05/12/2016 #

    Hello
    J’essaie d’importer ce code sur PRT11.
    Mais malheureusement j’obtiens l’erreur “Un paramètre de type entier positif est attendu avec Highest”
    Une idée sur ce qui peux provoquer cette erreur ?
    Merci pour votre aide

  11. Toto8 • 05/12/2016 #

    Hello,
    When I use the code above with no change at all, I get an error message stating that an entire and positive number is expected with “Highest”.
    What’s wrong ?

  12. fabien philipp • 05/12/2016 #

    Hi,
    I have the same message error by importing the itf file, or by copying and pasting the code.

  13. Manu L. • 05/12/2016 #

    Idem

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Iván Hi You should delete from the indicator code all drawing functions and all variables not us...
Iván I've created a screener to show [longcondition or shortcondition]
Chrisinobi Hallo Ivan, Danke das ist Perfekt !! Kannst du bitte in der Screener-Bibliothek die itf. hoc...
Gio56 Super idée. j'ai juste un souci. j'ai pas de barre verte mais plusieurs lignes de couleurs.....
DeathMetal change line in histgram, (click on indicator name, click on tool (
Gio56 Super merci.
KumoNoJuzza Thank you @philippe59139 !! We finally have the VAL / VAH to play with. Could you attach th...
yanntorp Merci @pilippe59139 pour le travail que vous partagez. Vos programmes sont vraiment au top.
philippe59139 Merci Yanntorp
MaoRai54 Thanks, now it's OK. in your first code at line 15-16 it's missing.
Madrosat Hello Ivan Did you try a strategy with this indicator
Iván Hi. No I didn't. This is a code translation requested by an user a few days ago.
Fgats https://www.prorealcode.com/topic/indicateur-3-sigma-documentation/ lien pour la documentat...
DELBERT Bonjour , merci pour le partage et la traduction , je vais essayer d'assimiler ce nouvelle i...
Iván
3 months ago
cjr30 Simplemente modifica las lineas 19 y 21 por las siguientes: drawtext("▲",barindex,low-0.1*a...
groelandes Gracias!!
WhyAskOZ i copied the code into strategy and it gives error on line 21 and 23. it says " Line 1: ...
Iván
3 months ago
Madrosat Hello Ivan You have interesting topics on indicators , smart supertrend, optimised trend t...
Iván Hi! thanks. All of these codes are translations requested in the forum. I've on mind to back...
Raspete01 Buenos días Iván, estoy intentando llevar el código eliminando los colores y pasando un Back...
jacquesgermain sì da aggiungere
Maik2404 auf welchen Wert muss ich die Kompresionsperiode stellen?
jacquesgermain — Période de compression : ce paramètre détermine la période de rétrospection utilisée pour ...
Iván
3 months ago
ARLEQUIN49 Hello Ivan, Would it be possible to convert the code of this QQE MOD indicator which accomp...
ARLEQUIN49 here is the code: //@version=4 //By Glaz, Modified // study("QQE MOD") RSI_Period = i...
Iván Hi, Yes I can translate it but please, create a new topic for it.
philippe59139 Bravo super travail
gidien
3 months ago
gidien Thanks for the hint. I think i know now, why this happen. The "settings" block was added by ...
LucasBest Thank you for sharing your work, both original and very disconcerting. When I went through t...
gidien Hello LucasBest, thanks for your comment. Point 1: Yes your are right. The Zigzag ve...
gidien
4 months ago
Cram13 Bonjour, qu'elles sont les valeurs des variables ? Avec mes remerciements Marc
gidien This indicator will not return any value. You can change the last line to : return ao...
gidien SMA1 = MovingAverage Length applied to the source candles (high , low, op...
Fgats quelques explications en Français ici : Some explanations in French here : https://www.p...
Nicolas Merci pour cette contribution, j'apprécie ! :)
Fgats Merci Nicolas pour ces encouragements et merci aussi pour le commentaire en Anglais accompa...
Msport71 Thank You very much
luxrun A question: what are the initial (or default) values ​​of maximum and minimum in the executi...

Top