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
luxrun A question: what are the initial (or default) values ​​of maximum and minimum in the executi...
jacquesgermain Bonjour non pas de soucis car src=customclose donc dans le menu configuration/propriété me...
geroniman Merci Jacques , indic tres utile. J'ai un indic à programmer avec du price action. es tu dis...
jacquesgermain ok pour regarder ...
Bateson
6 months ago
Bateson
6 months ago
Quino
6 months ago
Bateson
6 months ago
MACD Reloaded
MACD Reloaded
2
Indicators
NEOMKEY Nada nuevo
Carlose I love your version of the MACD, if you use it you can get a lot of use out of it, for me ma...
Bateson
6 months ago
TSI 3.0
TSI 3.0
6
Indicators
Fgats a = (Average[l1,m1](Average[l2,m2](ROC[mfvalue](close)))) b = (Average[l3,m3](Average[l4,m4...
Bateson Fgats, Un grand merci. Cela fonctionne parfaitement. J'ai bien compris la partie à rajouter ...
Fgats
7 months ago
bousalahane hello, thank you for sharing, I’m not top strong in the programation part, there is a way to...
Fgats Hi, With this indicator I just wanted to show the interest that can exist to synthesize th...
davidguerreir how to adapt nbStdSig values ?
lkiklkik thanks a lot. description of the indicator seems wrong ...
robertogozzi Sorry, you're right. The correct description, from https://www.tradingview.com/script/omlpq...
carlvan Hi Nicolas, thank you for this very interesting code. There is something I don't get though ...
Atemi19 probleme code : message veuillez definir alpha futur nbO X X1Y y1
Xtian Bjr Nicolas , pour exemple cet indicateur est extrêmement bien développé chez trading view ...
Actaru5 Hi, I couldn't see the candles well. Changing the code solves the problem. from line 164 to...
LucasBest Thank you
Alai-n @LucasBest Hello, do you think it is possible to isolate moving averages? I would like to us...
Alai-n I really like it when you develop ideas around price movement! I am much less a fan of all t...
finplus Bonjour, une petite demande concernant cet indicateur : comment faire pour que lorsque la bo...
LucasBest Bonjour, la coloration des bandes se fait ligne 111 et 112 à l'aide des instructions colorbe...
Matriciel Very nice job ! Is it possible to do the opposite because what interests me is to have the ...
YvesRobert Hi Matriciel, how can we do this, because stochastic is limited between 0 and 100 but price ...
Traderfox06 Dear zeiiermantrading, I really like your approach combining adaptive averages with MACD in...

Top