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

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

2010.01.26 11:19

# Parabolic SAR - indicator for MetaTrader 5

Views:
6397
Rating:

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 it’s bearish (Down Trend), it is above the prices.

If the price crosses Parabolic SAR lines, the indicator turns, and its further values are situated on the other side of the price. When such an indicator turn does take place, the maximum or the minimum price for the previous period would serve as the starting point. When the indicator makes a turn, it gives a signal of the trend end (correction stage or flat), or of its turn.

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. It means one should trace the movement of Parabolic SAR and hold open positions only in the direction of this movement. It is often the case that the indicator serves as a trailing stop line.

If the long position is open (i.e., the price is above the SAR line), the Parabolic SAR line will go up, regardless of what direction the prices take. The length of the SAR line movement depends on the scale of the price movement.

Parabolic SAR indicator

Calculation:

For long positions:

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

For short positions:

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

where:

• SAR (i - 1) - value of Parabolic SAR on the previous bar;
• ACCELERATION - acceleration factor;
• HIGH (i - 1) - maximum price for the previous period;
• LOW (i - 1) - minimum 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.

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

Moving Average of Oscillator (OsMA)

The Moving Average of Oscillator (OsMA) is the difference between the oscillator and its smoothed value.

On Balance Volume (OBV)

The On Balance Volume Indicator (OBV) is a momentum technical indicator that relates volume to price change.

Price Channel

The Price Channel Indicator draws the price channel, its upper and lower boundaries are determined by maximal and minimal prices for a certain period.

Price and Volume Trend (PVT)

The Price and Volume Trend Indicator(PVT), like On Balance Volume (OBV), represents the cumulative sum of trade volumes calculated considering close price changes.