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.
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.
4 comments To post a new comment, please log in or register
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
Ellipse (e=1/2),parabola (e=1)andhyperbola (e=2) with fixed focusFand directrix.
The four defining conditions above can be combined into one condition that depends on a fixed pointF(thefocus), a lineL(thedirectrix) not containingFand a nonnegative real numbere(theeccentricity). The corresponding conic section consists of all points whose distance toF equalsetimes their distance toL. For 0 <e< 1 we obtain an ellipse, fore= 1 a parabola, and fore> 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 topwhich 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...
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.
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.
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.
No comments:
Post a Comment