Quote from ig0r:
Ya sure, here's the cam equation, cracked by me a few months ago
HL5 = (hi/lo)*close
HL4 = ( ((hi/lo)+0.83)/1.83 ) *close
HL3 = ( ((hi/lo)+2.66)/3.66 ) *close
LL5 = close - (HL5-close)
LL4 = close - (HL4-close)
LL3 = close - (HL3-close)
that should be it
Anyone using Metastock 8 can use the following formula to create a new indicator that will draw Igor's Camarilla lines (and a HLC/3 pivot) for every day on your INTRA-DAY chart. It will base the calculations on your previous day's chart data. After dropping the indicator on your chart, you can lower the variable to only show lines near the current price. 5 works good for ES.
{---------------------------BEGIN---------------------}
Prd:=Input("Points From Nearest Pivot",.1,200,45);
D:=DayOfMonth()<>ValueWhen(2,1,DayOfMonth());
HighPd:=If(D OR Cum(1)=2,H,Max(H,PREV));
LowPd:=If(D OR Cum(1)=2,L,Min(L,PREV));
LastH:=ValueWhen(1,D,ValueWhen(2,1,HighPd));
LastL:=ValueWhen(1,D,ValueWhen(2,1,LowPd));
LastC:=ValueWhen(1,D,ValueWhen(2,1,C));
Pivot:=(LastH+LastL+LastC)/3;
R1:=((LastH/LastL))*LastC;
S1:=LastC - (R1-LastC);
R2:=(((LastH/LastL)+0.83)/1.83)*LastC;
S2:=LastC - (R2-LastC);
R3:=(((LastH/LastL)+2.66)/3.66)*LastC;
S3:=LastC - (R3-LastC);
If(R3-HHV(H,30)<Prd,ValueWhen(1,R3>0,R3),ValueWhen(1,Pivot>0,Pivot));
If(R2-HHV(H,30)<Prd,ValueWhen(1,R2>0,R2),ValueWhen(1,Pivot>0,Pivot));
If(R1-HHV(H,30)<Prd,ValueWhen(1,R1>0,R1),ValueWhen(1,Pivot>0,Pivot));
ValueWhen(1,Pivot>0,Pivot);
If(LLV(L,30)-S1<Prd,ValueWhen(1,S1>0,S1),ValueWhen(1,Pivot>0,Pivot));
If(LLV(L,30)-S2<Prd,ValueWhen(1,S2>0,S2),ValueWhen(1,Pivot>0,Pivot));
If(LLV(L,30)-S3<Prd,ValueWhen(1,S3>0,S3),ValueWhen(1,Pivot>0,Pivot));
{---------------------------END---------------------}