Backtesting and trading camarilla pivots

rajendrani

Well-Known Member
#31
Rajendra...Excellent man..great job.only one real thing which im not able to clarify for some time now..hehe..Buddy, its about the long that we take at around 2 pm..do we take the long on cross over from the L3 area or any other reason?? Coz the level was already tested about 3 times before this...Plzz clarify that dude..Thanks again for the wonderful explainations..
Yes Kammy you are right that L3 was tested 3 times but the 4th time when it tested it went below L3 and then we had a move up and this is the time we went to long, so that we are with the trend.

We could have reversed to long when it tested the l3 at first time, as trading with camarialla is like going opposite to trend, but i would like to trade the camarilla, plus would like to stay with the trend too, so i waited till it went below the L3 level and then we had a move up, so at this time we can go long as we are with the trend and also our L3 level says us to go long.

Hope I am clear, will try to explain on chart if I get time to do so.

Regards,
rajendrani
 

Ajax

Well-Known Member
#32
Hi camirillians

Amibroker code is :


//---- pivot points
DayH = TimeFrameGetPrice("H", inDaily, -1); // yesterdays high
DayL = TimeFrameGetPrice("L", inDaily, -1); // low
DayC = TimeFrameGetPrice("C", inDaily, -1); // close
DayO = TimeFrameGetPrice("O", inDaily); // current day open


//............camarilla pivots

H4 = ( (DayH-DayL) * (1.1/2) ) + DayC;
H3 = ( (DayH-DayL) * (1.1/4) ) + DayC;
H2 = ( (DayH-DayL) * (1.1/6) ) + DayC;
H1 = ( (DayH-DayL) * (1.1/12) ) + DayC;

L1 = DayC - ( (DayH-DayL) * (1.1/12) );
L2 = DayC - ( (DayH-DayL) * (1.1/6) ) ;
L3 = DayC - ( (DayH-DayL) * (1.1/4) ) ;
L4 = DayC - ( (DayH-DayL) * (1.1/2) ) ;

Plot(H4, "R2",colorGold,styleLine+styleNoLabel);
Plot(H3, "R2",colorOrange,styleLine+styleNoLabel);
Plot(H2, "R2",colorLightOrange,styleLine+styleNoLabel);
Plot(H1, "R2",colorTan,styleLine+styleNoLabel);

Plot(L4, "R2",colorPaleGreen,styleLine+styleNoLabel);
Plot(L3, "R2",colorBrightGreen,styleLine+styleNoLabel);
Plot(L2, "R2",colorSeaGreen,styleLine+styleNoLabel);
Plot(L1, "R2",colorGreen,styleLine+styleNoLabel);


Enjoy:thumb:

Ajax:cool:
 

rajendrani

Well-Known Member
#34
Hi camirillians

Amibroker code is :


//---- pivot points
DayH = TimeFrameGetPrice("H", inDaily, -1); // yesterdays high
DayL = TimeFrameGetPrice("L", inDaily, -1); // low
DayC = TimeFrameGetPrice("C", inDaily, -1); // close
DayO = TimeFrameGetPrice("O", inDaily); // current day open


//............camarilla pivots

H4 = ( (DayH-DayL) * (1.1/2) ) + DayC;
H3 = ( (DayH-DayL) * (1.1/4) ) + DayC;
H2 = ( (DayH-DayL) * (1.1/6) ) + DayC;
H1 = ( (DayH-DayL) * (1.1/12) ) + DayC;

L1 = DayC - ( (DayH-DayL) * (1.1/12) );
L2 = DayC - ( (DayH-DayL) * (1.1/6) ) ;
L3 = DayC - ( (DayH-DayL) * (1.1/4) ) ;
L4 = DayC - ( (DayH-DayL) * (1.1/2) ) ;

Plot(H4, "R2",colorGold,styleLine+styleNoLabel);
Plot(H3, "R2",colorOrange,styleLine+styleNoLabel);
Plot(H2, "R2",colorLightOrange,styleLine+styleNoLabel);
Plot(H1, "R2",colorTan,styleLine+styleNoLabel);

Plot(L4, "R2",colorPaleGreen,styleLine+styleNoLabel);
Plot(L3, "R2",colorBrightGreen,styleLine+styleNoLabel);
Plot(L2, "R2",colorSeaGreen,styleLine+styleNoLabel);
Plot(L1, "R2",colorGreen,styleLine+styleNoLabel);


Enjoy:thumb:

Ajax:cool:
Thank you very much buddy.

Regards,
rajendrani
 

rajendrani

Well-Known Member
#36
Ajax bhai a small help from you, in amibroker all the levels are marked as R2 any help in look like H1,h2,h3, h4 and l1,l2,l3 and l4

 

Sunil

Well-Known Member
#38
Congrates for a starting new thread. For some time I use to trade Camarilla. Earlier in Nifty thread Sunil used to give Camarill levels and trade it. Then he stopped it. I do not know the reason. If you have done some backtesting you may succeed.
The above chart is the precise & practical reason why I stopped paying attention to Camarilla levels, and instead relied only on the classical pivot levels, that too as a reference band (something like bollinger band).

There were many instances of whipsaws, especially at level 3 prices, and more time was being spent on whether to initiate trade or not - it became more of a guessing game, and believe me, this is the worst aspect one can bring in while day trading.

Rakesh,
these camarilla pivots have been recently picked up by new2sm & myself, as we mostly trade by incorporating classical & camarilla pivot levels into our intraday trading. We are still experimenting with them. (depending on the previous day's range ie High-Low, classical & camarilla pivots can be put to use - today only R4 level of camarilla came into pic; it was supposed to be a buy at 2978 with stop below 2930)

As in case of classical pivot levels (where, for eg, after facing resistance at R2, nifty might go down till R1 - now R1 may act as temporary support for day; and when R1 too breaks down, the next "pivot" level comes into picture), camarilla levels can also be used as such.
The level 1 & 2 figures may be used as part profit-booking level or also to add on to positions - purely subjective & depends on the market condition & the importance of that particular nifty level itself
let's take today's example: as per classical pivot method, R1 = 2963 & 2950 level was providing good resistance in the previous trading session. After such strong resistance levels break, they normally become support levels thereafter. Thereafter, nifty not only held to this 2950 (LOD) but also went on to break R1 2963 in last hour. After that, even R2 was taken out eventually.
More about classical pivots here
So, give more screen-time experience to these "imaginary" pivot levels & try to combine them with chartical levels to increase their importance.

Don't take pivot levels as RIGID & 100% sure levels... I give 90% importance to chartical levels & 10% to these pivotal levels - they just provide a sense of direction/movement of market based on the movement in the previous trading session.

This is not to discourage you, Rajendra, but, from experience, I just wanted to tell you that your 5min pivot trades (mini flow adaptation) will be more enjoyable than this formula-driven levels.

(PS: I may be wrong, and this depends subjectively not only on person but also on trading days - everything can be known, but, only on hindsight)
 

rajendrani

Well-Known Member
#39
Hi camirillians

Amibroker code is :


//---- pivot points
DayH = TimeFrameGetPrice("H", inDaily, -1); // yesterdays high
DayL = TimeFrameGetPrice("L", inDaily, -1); // low
DayC = TimeFrameGetPrice("C", inDaily, -1); // close
DayO = TimeFrameGetPrice("O", inDaily); // current day open


//............camarilla pivots

H4 = ( (DayH-DayL) * (1.1/2) ) + DayC;
H3 = ( (DayH-DayL) * (1.1/4) ) + DayC;
H2 = ( (DayH-DayL) * (1.1/6) ) + DayC;
H1 = ( (DayH-DayL) * (1.1/12) ) + DayC;

L1 = DayC - ( (DayH-DayL) * (1.1/12) );
L2 = DayC - ( (DayH-DayL) * (1.1/6) ) ;
L3 = DayC - ( (DayH-DayL) * (1.1/4) ) ;
L4 = DayC - ( (DayH-DayL) * (1.1/2) ) ;

Plot(H4, "R2",colorGold,styleLine+styleNoLabel);
Plot(H3, "R2",colorOrange,styleLine+styleNoLabel);
Plot(H2, "R2",colorLightOrange,styleLine+styleNoLabel);
Plot(H1, "R2",colorTan,styleLine+styleNoLabel);

Plot(L4, "R2",colorPaleGreen,styleLine+styleNoLabel);
Plot(L3, "R2",colorBrightGreen,styleLine+styleNoLabel);
Plot(L2, "R2",colorSeaGreen,styleLine+styleNoLabel);
Plot(L1, "R2",colorGreen,styleLine+styleNoLabel);


Enjoy:thumb:

Ajax:cool:

Just small editing in the afl, will mark the level as h1,h2,h3,h4 and l1,l2,l3 and l4

here is the afl code, thanks to ajax

Amibroker code is :


//---- pivot points
DayH = TimeFrameGetPrice("H", inDaily, -1); // yesterdays high
DayL = TimeFrameGetPrice("L", inDaily, -1); // low
DayC = TimeFrameGetPrice("C", inDaily, -1); // close
DayO = TimeFrameGetPrice("O", inDaily); // current day open


//............camarilla pivots

H4 = ( (DayH-DayL) * (1.1/2) ) + DayC;
H3 = ( (DayH-DayL) * (1.1/4) ) + DayC;
H2 = ( (DayH-DayL) * (1.1/6) ) + DayC;
H1 = ( (DayH-DayL) * (1.1/12) ) + DayC;

L1 = DayC - ( (DayH-DayL) * (1.1/12) );
L2 = DayC - ( (DayH-DayL) * (1.1/6) ) ;
L3 = DayC - ( (DayH-DayL) * (1.1/4) ) ;
L4 = DayC - ( (DayH-DayL) * (1.1/2) ) ;

Plot(H4, "H4",colorGold,styleLine+styleNoLabel);
Plot(H3, "H3",colorOrange,styleLine+styleNoLabel);
Plot(H2, "H2",colorLightOrange,styleLine+styleNoLabel);
Plot(H1, "H1",colorTan,styleLine+styleNoLabel);

Plot(L4, "L4",colorPaleGreen,styleLine+styleNoLabel);
Plot(L3, "L3",colorBrightGreen,styleLine+styleNoLabel);
Plot(L2, "L2",colorSeaGreen,styleLine+styleNoLabel);
Plot(L1, "L1",colorGreen,styleLine+styleNoLabel);
 

Similar threads