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
kats Bonsoir, cet indicateur est vraiment très bien avec plusieurs possibilités en coloration . ...
roccafragius Thank you Ivan for your indicators, very very interesting!!!!
kats bONSOIR Est ce normal que les droites se démultiplient en plusieurs droites quelle differe...
kats j ai fait une copie d'ecran mais je ne sais pas comment l'envoyer sur le site
Iván Thanks ;)
kats BONJOUR je lai mis sur du renko , il est complexe car toujours a l'envers??? Peut être ne ...
RTR Great tool again and great job, thank you! So from what I see everytime Z-Score is over 0...
Gaspare Ciao Ivan si puo' inserire una strategia su questo indicatore per ottimizzare le variabil...
P. Marlowe Impressive work. Accurate, interesting, good background. You hit the nail on the head again....
14starwberryhill Such a wonderful work, thanks Ivan..............
Iván Hi! You should change $rbox, $gbox and $bbox variables. Also r,g,b for last box.
finplus Thanks Ivan.
roccafragius Ivan, I just want to say you.. very very great job!!!! Thank you so much for this indicator!...
Iván
3 weeks ago
Iván Si lo descargas e importas en tu PRT verás que se han creado las variables para luego config...
WhyAskOZ Hi, Ivan As always you are doing great coding. The code works on my PRT, however the issu...
Iván You can delete in the last line (return) the configuration for color. Delete coloured(xx,xx,...
Iván
3 weeks ago
Danger Zones Indicator
Danger Zones Indicator
2
Indicators
P. Marlowe Quite an impressive work, as usual. You share extremely useful tools and show an stunning ba...
Iván Thank you very much!
P. Marlowe Quite an impressive work, Iván. Extremely useful and accurate. Congratulations. Keep it up¡
lkiklkik i love it !!! thanks.
Stenozar Hi Ivan, can you translate from tradingviwe the EMA TREND METER INDICATOR? It couid be inte...
Iván Hi Yes I can. Please, create a new topic for that I will translate it.
Stenozar Hi Ivan, I've created a new topic about the indicator: https://www.prorealcode.com/topic/ema...
Iván sería así //------------------Inputs------------------------------ linreglength = 11//i...
Doddge Muchísimas gracias Iván, está genial.
superfalcio holaaa, have you run some statistics?
Doddge Hola Iván, ¿sería posible crear un screener que indique cuándo las velas coloreadas del indi...
RTR Ivan thank you for the pro-screener. I a trying to understand how to write the signals from ...
Iván Hi, Lines 62 and 63. These lines define buy and sell conditions.
el titi Bonjour, merci beaucoup pour ce partage. Je vais regarder avec attention ce script et analys...
Armand2020 Bonjour , super taf!! serait il possible de faire un poc dynamique en timeframe 5 min en mod...
philippe59139 voici ce qu'il faudrait faire ou ajouter: //poc dynamique defparam calculateonlastbars=1...
Iván
2 months ago
Iván I personally like it in daily timeframe
oliTR Many thanks Ivan, I copy/paste your code to try it but could only get a constant stable unif...
Iván Hi, I've copied the code above and it works... what asset are you trying? $indices array ...
francis59 Hello Ivan, thanks for this very nice and powerfull indicator. Could you have time to create...
Iván Hi We could find stocks with sweep on: //PRC_Sweep Institucional //version = 0 //28.0...
inverse Like the way you think Ivan ... :)
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.

Top