Camarilla – A group of confidential, often scheming advisers; a cabal.
An attentive reader of this blog, Walter Baker, found some typos in my code. I have corrected them in the code section – if you have used this code make sure you copy and paste the code in its entirety into your EasyLanguage editor and replace your prior version.
I wanted to elaborate on the original version of Camarilla. The one that users have been downloading from this website is pure reversion version. The Camarilla Equation was by created by Nick Scott, a bond day trader, in 1989. The equation uses just yesterday’s price action to project eight support/resistance price levels onto today’s trading action. These levels, or advisers, as the name of the equation suggests provides the necessary overlay to help predict turning points as well as break outs. Going through many charts with the Camarilla indicator overlay it is surprising how many times the market does in fact turn at one of these eight price levels. The equations that generate the support/resistance levels are mathematically simple:
Resistance #4 = Close + Range * 1.1 / 2;
Resistance #3 = Close + Range * 1.1/4;
Resistance #2 = Close + Range * 1.1/6;
Resistance #1 = Close + Range * 1.1/12;
Support #1 = Close – Range * 1.1/12;
Support #2 = Close – Range * 1.1/6;
Support #3 = Close – Range * 1.1/4;
Support #4 = Close – Range * 1.1/2;
The core theory behind the equation and levels is that prices have a tendency to revert to the mean. Day trading the stock indices would be easy if price broke out and continued in that direction throughout the rest of the day. We all know that “trend days” occur very infrequently on a day trade basis; most of the time the indices just chop around without any general direction. This is where the Camarilla can be effective. Take a look at the following chart [ ES 5-minute day session] where the indicator is overlaid. and how the strategy was able to take advantage of the market’s indecisiveness. This particular example shows the counter-trend nature of the Camarilla. The original Camarilla looked at where the market opened to make a trading decision. The chart below is an adapted version of the one I send out when one registers on for the download. I thought it would be a good idea to show the original that incorporates a break out along with the counter trend mechanism. I will go over the code in the next post. You can copy the code below and paste directly into you EasyLanguage editor.
Original Camarilla rules:
- If market opens between R3 and R4 go with the break out of R4. This is the long break out part of the strategy.
- If market opens between R3 and S3 then counter trend trade at the R3 level. In other words, sell short at R3. If the market moves down, then buy S3. As you can see this is the mean reversion portion of the strategy.
- If market open between S3 and S4 go with the break out of S4 – the short break out method.
- Stops are placed in the following manner:
- If long from a R4 break-out, then place stop at R3.
- If short from a S4 break-out, then place stop at S3.
- If long from a R3 countertrend, then place stop at R4.
- If short from a S3 countertrend, then place stop at S4.
- Profit objectives can be placed at opposite resistance/support levels:
- If short from a R3 countertrend, then take profits at S1, S2, or S3.
- If long from a S3 countertrend, then take profits at R1, R2, or R3.
Profit objectives for all trades can be a dollar, percent of price of ATR multiple.
Discover more from George Pruitt
Subscribe to get the latest posts sent to your email.
thank you george.
i test it but number of contract is 100….
i do not see how to change the quantity in the code.
see you soon
HI Jerome,
On stocks use the keyword shares like the line below
buy(“R4-BrkOut”) 20 shares next bar at r4 stop
On futures you can use shares or contracts keyword.
Or format the Strategy and click Properties for All and select the number of shares/contracts in the Trade size section there.
Let me know if this doesn’t solve your problem.
Hello, George.
The indicator does not verify for me. I get \”position information function not allowed in a study.\”
Hi Gee D,
Seems like you are pasting the strategy code into a an indicator. I will shoot you an ELD you can import – it will include indicator and strategy.
Best,
Geo
Can I have a copy too?
Hi Angeliho – I will email you that – Best George
Good Morning George,
I found this after days of searching for a way to add these pivots into tradestation. Is there any chance you\’re willing to email me the ELD? I would greatly appreciate it!