# Price Levels - Previous Day HLC & Camarilla Levels

Studies that have been contributed to the community by other users. If you’ve got something useful to share, that’s great!
Ranger
Posts: 1
Joined: 03 Aug 2009
Location: St Lucie West, FL

### Price Levels - Previous Day HLC & Camarilla Levels

Code: Select all

```{Plots previous day Hi/Low/Close - Open {x} Out below} {Plots Camarilla Lines} {Rev date 07Aug09} variables: var0( 0 ) , var1( 0 ) , var2( 0 ) , var3( 0 ) , var4( 0 ) , var5( 0 ) , var6( 0 ) , var7( 0 ) , var8( 0 ) ; if Date <> Date[1] then begin var0 = var0 + 1 ; var1 = var2 ; var3 = var4 ; var5 = var6 ; var7 = Close[1] ; var2 = Open ; var4 = High ; var6 = Low ; end else begin if High > var4 then var4 = High ; if Low < var6 then var6 = Low ; end ; condition1 = var0 >= 2 and BarType < 3 ; value10 = ((var3 - var5)*(1.1/2)) + var7 ; {H4} value20 = ((var3 - var5)*(1.1/4)) + var7 ; {H3} value30 = ((var3 - var5)*(1.1/6)) + var7 ; {H2} value40 = ((var3 - var5)*(1.1/12)) + var7 ; {H1} value50 = var7 - ((var3 - var5)*(1.1/12)) ;{L1} value60 = var7 - ((var3 - var5)*(1.1/6)) ;{L2} value70 = var7 - ((var3 - var5)*(1.1/4)) ;{L3} value80 = var7 - ((var3 - var5)*(1.1/2)) ; {L4} if condition1 then begin {Plot1( var1, "Y-O" ) ;} Plot2( var3, "Y-H" ) ; Plot3( var5, "Y-L" ) ; Plot4( var7, "Y-C" ) ; Plot10( value10, "H4" ) ; Plot20( value20, "H3" ) ; Plot30( value30, "H2" ) ; Plot40( value40, "H1" ) ; Plot50( value50, "L1" ) ; Plot60( value60, "L2" ) ; Plot70( value70, "L3" ) ; Plot80( value80, "L4" ) ; end ; ```