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
Nicolas Please open a new forum topic, and respect the posting rules. Add a precise description of w...
FXTT ok will do, apologies, as I said I am new here. many thanks
Noobywan Version v2 including requested additions: https://www.prorealcode.com/prorealtime-indicators...
Trading_En_El_Ibex35 Para calcular el punto pivote y los niveles de soporte y resistencia para operar durante la ...
supertiti Hola mis disculpas, creia que tu eres Jose Antonio Madrigal ! gracias por las explicaci...
Trading_En_El_Ibex35 espero que las explicaciones te hayan sido de ayuda saludos
Paul Thanks for posting. I was currently searching how to improve day-trading based on support an...
Jessar Könntest du im Forum etwas öffnen und später darüber zu sprechen?
arahussein Hi All, I am new to trading and i find this indicator very logicail! Hence my (dumb?) quest...
juju333 Merci Nicolas, j'utilisais avec bonheur ce code dans la 10.3, il ne tourne plus dans la v11....
Nicolas Remplacer les lignes 11 et par 12 avec: yearlyHigh = Highest[max(1,BarIndex - lastYearBarI...
juju333 merci !!!
zilliq Be careful, It works only if you are in daily timeframe, and on your graphic you are on hou...
DerPat I guess you are right, like always. If you change n to 24 you have at least the hours of a d...
gabri DerPat, you can also change line1 to read as follow to adapt this script to hourly timefram...
roos Hi Nicolas, another really helpful bit of code, thank you! Can I ask how you might amend so ...
Denis Good evening Nicolas, could you tell me where thae arrows on the chart come from ? I don't s...
Nicolas there is no arrow in this indicator.
rajiwas Hello Nicolas, With Daily Pivot, it easy for me to show current day pivot e.g. if Date = T...
Nicolas You'll find many other pivots points indicators in the library, just use the search box of t...
rajiwas Thanks for the suggestion.
Doctrading Thanks, man !
rajiwas How is it possible to add currentWeekHigh and currentWeekLow, currentWeekOpen and currentWee...
Takeshi Totally don't match the PRT basic pivots on weekly
Nicolas Dans l'onglet prix, choisir d'appliquer l'échelle qu'au prix uniquement.
Eloi MERCI
Nicolas
9 years ago
Pivot oscillator
Pivot oscillator
3
Indicators
supertiti // PIVOT OSCILLO onchart PRC DID Pivot Oscillator - ProRealCode - prorealtime prog...
supertiti https://hubic.com/home/pub/?ruid=aHR0cHM6Ly9sYjEuaHViaWMub3ZoLm5ldC92MS9BVVRIXzFiNjRhYmY3ZjA...
supertiti http://ovh.to/rbcdfr2

Top