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

2016.05.16 11:42
Parabolic SAR

Parabolic SAR - indicator for MetaTrader 4

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

Views:
5730
Rating:
votes: 16
parabolic.mq4 (7.24 KB)view

Parabolic SAR Technical Indicator was developed for analyzing the trending markets. The indicator is constructed on the price chart. This indicator is similar to Moving Average with the only difference that Parabolic SAR moves with higher acceleration and may change its position in terms of the price. The indicator is below the prices on the bull market (Up Trend), when the market is bearish (Down Trend), it is above the prices.

Parabolic SAR

If the price crosses the Parabolic SAR lines, the indicator reverses, and its further values ​​are located on the other side of the price. In case of such an indicator reversal, the reference point is the previous period's high or low. The reversal of the indicator signals either the end of a trend (switch to correction or flat) or its reversal.

The Parabolic SAR is an outstanding indicator for providing exit points. Long positions should be closed when the price sinks below the SAR line, short positions should be closed when the price rises above the SAR line. The indicator is often used as the trailing stop line.

If a long position is open (i.e. the price is above Parabolic SAR), then the indicator line will move up irrespective of the
price movement. The amount of movement of the Parabolic SAR line depends on the value of the price movement.

Calculation

For long positions:

SAR (i) = ACCELERATION * (HIGH (i - 1) - SAR (i - 1)) + SAR (i - 1)

For short positions:

SAR (i) = ACCELERATION * (LOW (i - 1) - SAR (i - 1)) - SAR (i - 1)

Where:
SAR (i - 1) — value of Parabolic SAR on the previous bar;
ACCELERATION — acceleration factor;
HIGH (i - 1) — the high price for the previous period;
LOW (i - 1) — the low price for the previous period.

The indicator value increases if the price of the current bar is higher than previous bullish and vice versa. The acceleration factor (ACCELERATION) will double at the same time, which would cause Parabolic SAR and the price to come together. In other words, the faster the price grows or sinks, the faster the indicator approaches the price.


Description of the technical indicator

The full description of the Parabolic SAR is available in the Technical analysis: Parabolic SAR section

Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/7787

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

LinesProfitLoss LinesProfitLoss

Calculates profit (loss) of the current orders on the symbol.

FFC - Forex Factory Calendar FFC - Forex Factory Calendar

Modified version of FF Calendar Indicator with new features.