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
okeus Ivan, riesci a creare un indicatore per le "evolventi paraboliche" ? grazie
groelandes Impagable tu trabajo cada semana. ¡Gracias!
Iván de nada! :)
Row trading Hi, to see the current day put : for y = i-1 to i-1 do to see all days put : for y = 1 t...
Razz Hi, thanks for your answer. I'll keep an eye on the whole thing, I've now expanded it to in...
Razz Adding an image did not work : https://www.directupload.eu/file/d/8765/3ez6bzlq_png.htm
f1_maik Well programmed, but in my eyes ‘only’ better Bollinger Bands with all their quirks and fals...
groelandes Me uno al comentario de Edelmiro. Un millón de gracias por el trabajo constante, dándonos in...
JohnScher Ja, das würde mich auch interessieren
Iván
1 month ago
Madrosat Bonjour Ivan je ne sais pas si je dois écrire en Français ,anglais ,espagnol ,il y a les 3 ...
Iván Bonjour, la vérité est que ce n'est pas aussi facile qu'il n'y paraît.... Un indicateur peut...
Madrosat Merci Ivan j'espère que ce jour viendra bientôt , je sais que ce n'est pas facile car les in...
Iván
2 months ago
Madrosat Bonjour ivan Quelle différence il y a t il entre Extra trend et ultra trend lequel est le p...
P. Marlowe Muy bueno. ¿Podría hacerse para señalar extremos por el lado bajista? Lo mismo a la inversa....
Miro Esta es una versión del indicador, para ambos extremos. //-------------------------------...
P. Marlowe Muchas gracias ¡¡
Alai-n I have a problem! The "Kill Zones" do not start and stop at the appointed time but at the cl...
Alai-n I'll specify here, when the KillZone closing time has arrived and we are on the high or low ...
Iván Hi! Yes that's it. The indicator draws the rectangle after close
@toniyecla ¡gracias! más capturas aqui: https://www.prorealcode.com/wp-content/uploads/2024/10/IC...
robert123 I had a go at the 'order block' version- badly done I'm sure....but a start. // Sonarlabs ...
robert123 take ''sens1 = 5'' out and put ''rango'' in as variable
@toniyecla captura: https://www.prorealcode.com/wp-content/uploads/2024/10/sesiones_v3.png
@toniyecla y más opciones: añade una línea también en sesiones EUROPA y USA (configurable) y un texto o...
@toniyecla // Author: toniyecla - contact@rescommunesomnium.com // VARIABLES // EspHorarioVerano (b...
Alai-n Hello, take a look at this formulation made by "Blade106", Topic link attached post #227334....
@toniyecla ¡interesante acercamiento! (no lo conocía, simplemente tuve la necesidad y lo programé) pers...
Iván
2 months ago
Stenozar Hi Ivan, I can visualize only the central orange line but not the others, do you know why?...
MaoRai54 dear Ivan, it seems to be very interesting but please clarify what are all the lines I see i...
Iván Hi! you have the answer in the last line of code... MacdMiddle as "histo" style(histogra...
kats Le Top , a utiliser avec le nuage violet et alerte TN pour plus de précision.
roccafragius Hello Ivan, another great Indicator, very useful to trace the trend ( blue line) and the pos...
roccafragius Hello Ivan, very good job! May I ask you to translate teh script from TradingView named Tre...
Iván Hi! yes. You can ask for it here: https://www.prorealcode.com/free-code-conversion/
roccafragius Thank you so much Ivan! I created this request in english Translate from TradingView Indicat...
Regisnew très bel indicateur merci
jordan //---settings MAmode=0 Period=150 NumberOfMA=100 //---end of settings MA2=undefined ...
jordan dites moi si cela correspond à ce que vous cherchez
kats bonjour merci de ta reponse mais non ca fonctionne pas sympa quand même d'avoir essayé cdlt

Top