Parabolic SAR, Parabolic V2

0
(0)
Name:
Parabolic SAR, Parabolic
Author: MetaQuotes (2005.11.29 12:55)
Downloaded: 10284
Download:
Parabolic SAR, Parabolic V2 1
 Parabolic.mq4 (5.7 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 the Moving Average Indicator 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.

Parabolic SAR, Parabolic V2 2

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 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.

Calculation
SAR(i) = SAR(i-1)+ACCELERATION*(EPRICE(i-1)-SAR(i-1))

Where:
SAR(i-1) — is the value of the indicator on the previous bar;
ACCELERATION — is the acceleration factor;
EPRICE(i-1) — is the highest (lowest) price for the previous period (EPRICE=HIGH for long positions and EPRICE=LOW for short positions).

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.

Technical Indicator Description

Full description of Parabolic is available in the Technical analysis: Parabolic SAR

7 comments  To post a new comment, please log in or register

Where is this fixed version as mentioned?
25.09.2013 23:55 HarriMQL4

To be more specific, I don't see where in the code the dots are actually "told" to be drawn and "told" what values to be drawn at.

I would like to be able to call it using the iCustom() function and get the price location of the dot at any given bar.

This is the call I used, and like I mentioned in the last post, it does not return the value of the green dot: iCustom(Symbol(),60,"Parabolic 1",.02,.2,0,0);

Ho do I get the value of the green dot?

05.09.2013 04:42 KalebC

I can see its efficacy on the graph, but the values it returns when you call it in a script differ from the values charted, and those values returned in a script are not always on the same side of the price as the charted values.

So, how would you use this indicator in an expert advisor?

04.09.2013 12:52 KalebC

This indicator is named the Stop And Reverse, SAR, Parabolic. A parabola is one of the three possible conic sections (others being ellipse [the circle is a special case of an ellipse] and hyperbola). Why is this indicator named parabolic?

The next question... What exact parameters in the MQL4 Parabolic SAR indicator code could make it an ellipsoidal shape/surface or a hyperbolic if indeed some set parameters make it parabolic?

The aim of my question(s) have to do with a question of mathematical eccenntricity (from wikipedia on conic sections):

Eccentricity

Parabolic SAR, Parabolic V2 3
Parabolic SAR, Parabolic V2 4

Ellipse (e=1/2), parabola (e=1) and hyperbola (e=2) with fixed focus F and directrix.

The four defining conditions above can be combined into one condition that depends on a fixed point F (the focus), a line L (the directrix) not containing F and a nonnegative real number e (the eccentricity). The corresponding conic section consists of all points whose distance to F equals e times their distance to L. For 0 < e < 1 we obtain an ellipse, for e = 1 a parabola, and for e > 1 a hyperbola.

The objective is for research and development of a 'SAR ellipsoid' and 'SAR Hyberbolic' indicators. It is further for development of a (continuous [24hrs]) 'time series wobble' type of model that is based on the physical phenomenon of a rattleback (rattleback from wikipedia):

A rattleback, also known as an "anagyre", "celt", "Celtic stone", "rebellious celt", "rattlerock", "spin bar", "wobble stone" or "wobblestone" and by the product names "ARK," "Bizzaro Swirls," "RATTLEBACKS," "Space Pet" and "Space Toy," is a semi-ellipsoidal top which will spin on its axis in a preferred direction. But, if spun in the opposite direction, it becomes unstable, "rattles", stops and reverses its spin to the preferred direction.

Behold the mysterious celt, with a property that amuses. One way it will spin, the other way it refuses.

This spin-reversal motion seems, at first sight, to violate the angular-momentum conservation law of physics...

22.01.2009 00:45 FXrules

swipes wrote:
sub wrote:

The built-in Parabolic SAR and Parabolic.mq4 will give different results when overlaid. Everything is a OK on refresh. However, as new bars are formed there are different results. This problem was corrected in Parabolic-Fix.mq4 which gives same results as built-in parabolic.

Where can i try it form

The Parabolic Sub.mq4 above is the modified version. See Fix1 note inside.

14.10.2008 11:30 sub

sub wrote:

The built-in Parabolic SAR and Parabolic.mq4 will give different results when overlaid. Everything is a OK on refresh. However, as new bars are formed there are different results. This problem was corrected in Parabolic-Fix.mq4 which gives same results as built-in parabolic.

Where can i try it form

13.03.2007 01:36 swipes

The built-in Parabolic SAR and Parabolic.mq4 will give different results when overlaid. Everything is a OK on refresh. However, as new bars are formed there are different results. This problem was corrected in Parabolic-Fix.mq4 which gives same results as built-in parabolic.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?



Author: Forex Wiki Team
We are a team of highly experienced Forex Traders [2000-2023] who are dedicated to living life on our own terms. Our primary objective is to attain financial independence and freedom, and we have pursued self-education and gained extensive experience in the Forex market as our means to achieve a self-sustainable lifestyle.