Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2011.10.07 19:00

Camarilla Equation - indicator for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

votes: 10

Camarilla Equation system was implemented by Nick Stott at the end of 1980s.

Camarilla Equation consists of 8 or 10 levels (in later modifications) calculated by using Open, Close, High and Low prices of a previous trading session and a set of instructions on the application of these levels in trading.

The levels are divided in two groups. The first one is built downwards from the yesterday's Close price, indicated by L symbol (for "Low") and numbered from 1 to 5. Similarly, the second group of levels is built upwards from the yesterday's Close price, indicated by H symbol (for "High") and also numbered from 1 to 5.

It should be noted that levels 1 and 2 have comparatively small value and are often not considered. As for L5 and H5 levels, they should always be considered, though they are ignored in some sources.

Camarilla Equation levels are calculated the following way:

H1 = close + (high-low)*1.1 /12
H2 = close + (high-low)*1.1 /6
H3 = close + (high-low)*1.1 /4
H4 = close + (high-low)*1.1 /2
H5 = (high/low)*close

L1 = close - (high-low)*1.1 /12
L2 = close - (high-low)*1.1 /6
L3 = close - (high-low)*1.1 /4
L4 = close - (high-low)*1.1 /2
L5 = close - (H5 - close)


Translated from Russian by MetaQuotes Software Corp.
Original code:


The universal moving average with double smoothing and possibility to select each of this smoothings from the dozen of possible variants.


Four digital filters that form the basis of the V. Kravchuk's AT&CF method in one separate window.

Camarilla_Full Camarilla_Full

The system of Camarilla Equation levels for all bars.

Heiken Ashi Smoothed Heiken Ashi Smoothed

Standard Heiken Ashi calculated using smoothed price time series.