Pivot Points (Daily)

Pivot Points (Daily)

Hi all,

This is the code for classical Pivot Points (daily).

It is very simple, and can be very useful to backtest some strategies.
By the way, if you know an efficient one, tell me and I can backtest and improve it.
I haven’t found it yet.

And for the Monday, pivot points are based on the calculation of SUNDAY, so it is wrong.
I will soon fix this issue

Greetings,
Marc

NB :

I can’t set “H =”… or “R2 = “… so I did write “Ht” and “Res2”.

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. filiprb • 03/25/2016 #

    Hello Doctrading,
    I’m currently building a strategy that sets the daily Pivot point as target. I´ve though run in to some problems. My code doesn’t exit trades at the pivd and i can’t find the reason why.
    Here is my target code; 
    ttarget = ((DHigh(1) + DLow(1) + DClose(1))/3)

    set target profit ttarget
    What am i doing wrong? I would appreciate your help. 
     

  2. Doctrading • 03/25/2016 #

    “Set target profit” is the target in PIPS
    You should write : 
    sell at target limit
    exitshort at target limit
    Regards,

    • Nicolas • 03/25/2016 #

      You made a mistake by using “target” instead of “ttarget” which is the good variable name.
      The code would be instead:
      sell at ttarget limit
      exitshort at ttarget limit
       

  3. filiprb • 03/25/2016 #

    Thank you for your help. 
     
    Best regards

  4. Doctrading • 03/25/2016 #

    Yes, you are right Nicolas

  5. Petrus • 03/25/2016 #

    There is a trick to avoid the failure of the wrong signal on monday :
    a1=OpenDayOfWeek
    b1=DHigh(1)
    b2=DHigh(2)
    c1=DLow(1)
    c2=DLow(2)
    d1=DClose(1)
    d2=DClose(2)
    IF a1=1 THEN
    b1=b2
    c1=c2
    d1=d2
    ELSE
    b1=b1
    c1=c1
    d1=d1
    ENDIF

    H1 = b1//High
    L1 = c1//Low
    C = d1//Close

    Pivot = (H1 + L1 + C) / 3

    You can do the same procedure to calculate the resistances and supports.
     

  6. Doctrading • 03/25/2016 #

    Thanks, I will try
     

  7. Choo Jen-Sin • 03/25/2016 #

    Is there any way to:

    change style of indicator, e.g. solid lines to dotted lines
    display the label of the line, e.g. S3

    • Nicolas • 03/25/2016 #

      Yes if you are with version 10.3 already, you can have a look at how to draw them with the new graphical instructions of the programming language here: http://www.prorealcode.com/documentation/style/

  8. bluetime6 • 03/25/2016 #

    Hello.
     
    In german xetra count for pivot only time 09.00 to 17.30 german time. In ig the count for pivot is 0.00 to 24.00.
    So how can i found pivot and r1 for xetra?
     

  9. Toto le Heros • 03/25/2016 #

    There is a mistake in S3 and R3 (and S4 and R4…)… if I am not mistaken.
    I personnaly consider :
    Pivot = (H + B + C) / 3
    S1 = (2 x Pivot) – H
    S2 = Pivot – (H – B)
    S3 = B – 2x (H – Pivot)
    S4 = B – 3x (H – Pivot)
    R1 = (2 x Pivot) – B
    R2 = Pivot + (H – B)
    R3 = H + 2x (Pivot – B)
    R4 = H + 3x (Pivot – B)

  10. Grantx • 03/25/2016 #

    When I add this code, the indicator appears in the panel below price. How do I get it to display on the chart itself?
    Thanks

  11. Patrik72 • 03/25/2016 #

    Hello, thank you very much for the great indicator. One question, is it possible just have lines for each day as the original Pivot Points in ProRealTime without lines between one day and another? Best regards, Patrik

  12. datageek • 03/25/2016 #

    is it possible to add Mid pivot points (midR1 and MidS1)?

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Iván
2 days ago
atlante buenas tardes pero es un sistema que repinta por que pasa eso si repinta no sirve.gracias d...
Iván Hi. You could add these lines of code: if intradaybarindex=0 then varhigh=round((dhigh(...
RTR Edit
Razz Hello, thank you for your indicator. Can you please tell me how I can change the text size,...
Iván Hi! you have all information about it here (https://www.prorealcode.com/documentation/drawte...
Miro Mis felicitaciones por este indicador. Funciona muy bien en el corto plazo. Gracias gracias ...
Regisnew finaly the screener could be something like this for green blocks but it probably could be b...
efahmy the support and resistance colors become darker and darker with the time, could you please c...
Iván Hi. You can change colors in lines 75,76,91,92
Iván
7 months ago
Iván Hi, Sorry, but what do you mean?
luiskohnen Hola, queria saber si el indicador repinta, porque a mi me parecio que si. Saludos y gracias...
Diamant Bonsoir, L'un d'entre vous peut-il me donner les définissions de LL-HH-LH et HL. Merci d'av...
MrMagic This is amazing work. Well done, Ivan!
Regisnew Bonjour Ivan serait il possible de proposer un screener pour détecter les zones de support v...
lee Thank you!
Iván Hi We could find stocks with sweep on: //PRC_Sweep Institucional //version = 0 //28.0...
inverse Like the way you think Ivan ... :)
ar Bonjour Ivan et merci pour ton partage, Est-il possible d'avoir ce code en ITF
Nicolas
1 year ago
Maxime Baudin Well done Nicolas, creative!
Stenozar Hi Nicolas, please can you explain how to read/use this indicator? thanks!
YvesRobert Hi smp, how should I configure this indicator because everything is at zero -> High, Clos...
smp Hi, this is an end of day pivots indicator, so you need to find the end of day pivot info; t...
YvesRobert Thank you smp.
smp I also have an End Of Day (EOD) cash pivot indicator for use on cash markets; this indicator...
cdc.andersson Hej! Jag försöker lära mig att koda PRT. Jag vill testa en strategi med RSI-värde, ATR-värde...
Swingforfortune Du kan väl jämföra om open > close (röd) eller open < close (grön)
IV Mcm I don't speak English and the translation is not clear. Do you have a different turn of ...
IV Mcm stonk ?
avatar
Anonymous Thanks very much for sharing, look forward to testing this idea out.
Noobywan (My apologies for unformatted code, the formatting only works in forum or library posts not ...
Noobywan Hi FXTT, no problem for requests (as long as no one requests me singing), just usually it’s ...
JC_Bywan Bug fix at line 38, should be: if changebarre or (opentime[1]=start) then (same as in ...
Nicolas Oui le code est correct et il fonctionne, j'ai de bons résultats sur la liste NASDAQ par exe...
pincherman Bonjour :-) J'ai coller le script dans prorealtime pour jouer avec le supertrend et j'ai un...
Nicolas Vous l'avez sans doute collé au mauvais endroit, dans l'éditeur de code pour les stratégies,...
Bhanu Pratap Great Work Sir, Hats Off.
bolsatonimora2 Hi Roberto, It is possible to modify this indicator which it marks the supports and resist...
robertogozzi What do you mean by "very high volume"? What do you want to be printed exactly?
Bard Very interesting approach Vonasi! I'm getting a 404 error when trying to download though?
Vonasi I just tested and I was able to download with no error.
Psari Hi Vonasi, I am a newbie and was wondering whether you could possibly help me with this pro...
mscharstrom Hi @robertogozzi, I really love this indicator. However, I'd like to tinker with it to fit ...
Ahimsa Hi Roberto I cannot thank you enough for writing this code. It could help me more than you ...
Nicolas With PRT v11, you have to click on "price" at the upper left side of the price chart.

Top