PureBytes Links
Trading Reference Links
|
The code below won't give you the exactly same results as the
calculator on surefirething.com. They'll be reasonably close though.
Not that it matters. Any level can be used as a resistance or support
level.
-Alex
>{The way Camarilla works is that you input the variables into a flash
>calculator in a members section of their website. It then outputs a total of
>eight numbers, four of which are particularly 'significant' called the L3
>and L4 levels - what they call the "L3" levels are high and low
>Resistance/reversal levels, and the other two L4 levels are higher and
>lower (respectively) 'breakout' points. The other four numbers are interim
>S&R levels between the two main L3 numbers. The way you are supposed to use
>these levels is to wait until price moves outside an L3 level, then take a
>position when prices moves back inside and, hopefully, heading for the
>other L3 level. Breakout levels are hopefully self explanatory. Basically
>the same as Pivot points (if you think that they work for you) - different
>numbers, but not really a big deal.
>
>It might be a good idea to have the $TICK divergence in Data2 tell you that
>the re-entry is about to occur.
>
>If the price rests on a line for a while, it might be the signal that it is
>going to breakout down or up.
>
>Use the same as Pivot Point lines basically. Stops are at Pivot Points,
>Resistance or Support Lines, or 5% above or below the entry. Projected exits
>are Fibonacci lines or use reaction highs or lows as pivot stops to take you
>out}
>
>{Support Camarilla Lines - Place into TS as an Indicator - Need two as TS
>cannot Plot 8 Lines, then put both onto the chart}
>
>(Camarilla S}
>Variables:
> Segment (0),
> Resist1Line (0),
> Resist2Line (0),
> Resist3Line (0),
> Resist4Line (0),
> Support1Line (0),
> Support2Line (0),
> Support3Line (0),
> Support4Line (0);
>
>{ Range = (HighD(1)-LowD(1))}
>
>Segment = (HighD(1)-LowD(1)) * 0.092 {9.2%};
>
>Resist4Line = CloseD(1) + (Segment * 6);
>Resist3Line = CloseD(1) + (Segment * 3);
>Resist2Line = CloseD(1) + (Segment * 2);
>Resist1Line = CloseD(1) + (Segment * 1);
>Support1Line = CloseD(1) - (Segment * 1);
>Support2Line = CloseD(1) - (Segment * 2);
>Support3Line = CloseD(1) - (Segment * 3);
>Support4Line = CloseD(1) - (Segment * 6);
>
>Value1 = Support1Line ;
>Plot1( Value1, "S1", Tool_Green ) ;
>
>Value2 = Support2Line ;
>Plot2( Value2, "S2", Tool_LightGray ) ;
>
>Value3 = Support3Line ;
>Plot3( Value3, "Short_S3", Tool_Cyan ) ;
>
>Value4 = Support4Line ;
>Plot4( Value4, "Breakout_S4", Tool_DarkGreen ) ;
>
>Condition1 = FALSE ;
>If C >= Value4 then Condition1 = True;
>if Condition1 = True then
> Alert( " BreakoutShort" ) ;
>
>{Camarilla R}
>
>Variables:
> Segment (0),
> Resist1Line (0),
> Resist2Line (0),
> Resist3Line (0),
> Resist4Line (0),
> Support1Line (0),
> Support2Line (0),
> Support3Line (0),
> Support4Line (0);
>
> { Range = (HighD(1)-LowD(1))}
>
>Segment = (HighD(1)-LowD(1)) * 0.092;
>
>Resist4Line = CloseD(1) + (Segment * 6);
>Resist3Line = CloseD(1) + (Segment * 3);
>Resist2Line = CloseD(1) + (Segment * 2);
>Resist1Line = CloseD(1) + (Segment * 1);
>Support1Line = CloseD(1) - (Segment * 1);
>Support2Line = CloseD(1) - (Segment * 2);
>Support3Line = CloseD(1) - (Segment * 3);
>Support4Line = CloseD(1) - (Segment * 6);
>
>Value1 = Resist1Line ;
>Plot1( Value1, "R1", Tool_Green ) ;
>
>Value2 = Resist2Line ;
>Plot2( Value2, "R2", Tool_LightGray ) ;
>
>Value3 = Resist3Line ;
>Plot3( Value3, "R3_Long", Tool_Cyan ) ;
>
>Value4 = Resist4Line ;
>Plot4( Value4, "R4_Breakout", Tool_DarkGreen ) ;
>
>
>Condition1 = FALSE ;
>If C <= Value4 then Condition1 = True;
>if Condition1 = True then
> Alert( "BreakoutLong" ) ;
>
>
>
>
>
|