Intraday flexible camarilla pivot points

Intraday flexible camarilla pivot points

A flexible intraday camarilla pivot points indicator was requested on the probuilder french forum, working for no matter how small the timeframe, robust enough to function in case of empty bars :

http://www.prorealcode.com/topic/point-pivot-camarilla-hourly/

Change integer n among values 15, 30, 60, 120, 180, 240 in minutes as the period for calculation of the camarilla pivot points.

Use start and finish variables in HHMMSS format for intraday start and finish times. First calculation is made one « n »  period after the start.

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. FXTT • 10/12/2020 #

    the choice of period and start and end time is exactly what i was asking for the classic pivot calculation in another thread. Being able to define those parameters is awesome. Is there any chance this methodology could be applied for the classical pivot calculation? apologies if a bit straightforward, I am new here so don’t know if requests are taken. Many thanks in advance.

    • Noobywan • 10/12/2020 #

      Hi FXTT, no problem for requests (as long as no one requests me singing), just usually it’s preferred for the forum to be the entry point. For the classic pivot points using above flexible intraday coding method, we would just need to replace lines 46 to 68 with classic calculation, and keep everything else above ligne 46 the same, the end result is:

      // PRC classic points intraday, adapted from Camarilla Pivot Points intra day
      // 04.10.2020 mod 09.10.2020 mod 14.12.2020
      // Noobywan @ http://www.prorealcode.com
      // Sharing ProRealTime Knowledge
      // Forum ProBuilder user Choliver request

      // — Settings
      n=120 // time span in minutes, choose parameter n equal to 15, 30, 60, 120, 180 or 240
      start=080000 // time start in HHMMSS format
      finish=220000 // time end in HHMMSS format
      // — End of settings
      //
      if n=15 then
      changebarre= openminute[1]>openminute or (openminute[1]=15) or (openminute[1]=30) or (openminute[1]=45)
      deltamin=1500
      elsif n=30 then
      changebarre= openminute[1]>openminute or (openminute[1]=30)
      deltamin=3000
      elsif n=60 then
      changebarre= openminute[1]>openminute
      deltamin=10000
      elsif n=120 then
      deltamin=20000
      hrs=(opentime-start)/deltamin
      changebarre= (hrs[1]=1) or (hrs[1]=2) or (hrs[1]=3) or (hrs[1]=4) or (hrs[1]=5) or (hrs[1]=6) or (hrs[1]=7) or (hrs[1]=8) or (hrs[1]=9) or (hrs[1]=10) or (hrs[1]=11)
      elsif n=180 then
      deltamin=30000
      hrs=(opentime-start)/deltamin
      changebarre= (hrs[1]=1) or (hrs[1]=2) or (hrs[1]=3) or (hrs[1]=4) or (hrs[1]=5) or (hrs[1]=6) or (hrs[1]=7)
      elsif n=240 then
      deltamin=40000
      hrs=(opentime-start)/deltamin
      changebarre= (hrs[1]=1) or (hrs[1]=2) or (hrs[1]=3) or (hrs[1]=4) or (hrs[1]=5)
      else
      DRAWTEXT(“n must be 15, 30, 60, 120, 180 or 240”, barindex, close)
      endif
      //
      if changebarre or (opentime[1]=start) then
      stoque=barchange
      barchange=barindex
      myhigh=highest[barchange-stoque](high)[1]
      mylow=lowest[barchange-stoque](low)[1]
      myclose=close[1]
      endif
      //
      if opentime>=start+deltamin and opentime<finish then

      PPclassic = (myhigh+mylow+myclose)/3
      R1classic = 2*PPclassic-mylow
      R2classic = PPclassic+(myhigh-mylow)
      R3classic = myhigh+2*(PPclassic-mylow)
      S1classic = 2*PPclassic-myhigh
      S2classic = PPclassic-(myhigh-mylow)
      S3classic = mylow-2*(myhigh-PPclassic)

      else
      PPclassic = 0
      R1classic = 0
      R2classic = 0
      R3classic = 0
      S1classic = 0
      S2classic = 0
      S3classic = 0
      endif

      RETURN PPclassic AS "PP", R1classic AS "R1", R2classic AS "R2", R3classic AS "R3", S1classic AS "S1", S2classic AS "S2", S3classic AS "S3"

  2. Noobywan • 10/12/2020 #

    (My apologies for unformatted code, the formatting only works in forum or library posts not in library comments)

  3. JC_Bywan • 10/12/2020 #

    Bug fix at line 38, should be:

    if changebarre or (opentime[1]=start) then

    (same as in modified code in 10/12/2020 comment above)

    My apologies

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
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...
adeelq79 Hi Ivan, thank you for this indicator. Is it possible to include the volume of buys and sell...
achel J'ai la même erreur sur ligne 1 avec une importation dans les règles de l'art. Comment faire?
Iván Cela est probablement dû au fait que vous avez une ancienne version de l'outillage. Vérifi...
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
8 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
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.
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,...
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...
Nicolas change the lastline with: RETURN lastsig and check if lastsig change its value with the a...
nectouxg Hello Nicolas, I will try tonight when I get home, just one last question, I trade the DA...
FXtonio Bonjour, j'ai un problème avec le code, il me dit que ce n'est pas correct ligne 26-27-28: ...
abhay I am getting a shading between the lines, how can I avoid that. I just want to see lines as ...
Vonasi Delete the 'Color Zone' in the indicator settings window.
Juanjo Hola?. Exactamente cuál es su utilización?.
bolsatrilera Hola Juanjo, su principio esparecido a las bandas de Bollinguer.Las lineas de las bandas son...
Vonasi The indicator code can easily be adapted for use as a filter in strategies as well. For exam...
AVT Tested today in manual DAX trading (transcripted to MT and changed look into aka oszillator)...
Vonasi I think that short time frame charts will be too noisy for this indicator. One blue bar real...
Vonasi I forgot to mention in the description that Sunday pivot lines are ignored and Monday's pivo...
AVT Like that, simple and clear!
Vonasi Thanks AVT. I like simple - some people would say that I do simple very well! Sometimes you ...
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...

Top