Democratic Fibonacci McGinley DynamicsWith this indicator, we have taken McGinley Dynamic lines at Fibonacci lengths (3 to 233) as well as the average of these values, labeled the DFMG (Democratic Fib. McGinley). Additionally, these values have been inputted into a table overlay. The cross of the FibMG(233) and the DFMG can be used as a signal for long or short.
The FibMG lengths of 3 and 233 are plotted in white by default, the FibMGs with lengths between 3 and 233 are plotted in blue by default, and the democratic line (DFMG) that averages these lines is plotted in green or red depending on if the value is above or below the 233-length FibMG.
This is the same indicator as our DFMA except using McGinley Dynamic lines as opposed to exponential moving averages.
Mcginleydynamic
McGinley Dynamic x Donchian ChannelsThis indicator combines the McGinley Dynamic and Donchian Channels by taking the lowest and highest values over a set length (defaulted to 14) then applying the McGinley Dynamic math to these values. The upper range is denoted by a green line while the lower range is denoted by a red line. Additionally, standard deviations of 1, 2, and 3 have been put in place using the upper and lower values as the basis for the deviations as opposed to the baseline average of the upper and lower bands. These deviations are plotted as lime and orange colors. These channels can be used to determine when the price is gaining or losing momentum based on the distance between the channels. Otherwise, the channels can be used to determine potential overbought and oversold levels.
McGinley Dynamic [Loxx]The McGinley Dynamic indicator is a type of moving average that was designed to track the market better than existing moving average indicators. It is a technical indicator that improves upon moving average lines by adjusting for shifts in market speed.
Included:
- Various average modes to fine-tune the signal
This is an exact clone of the McGinley Dynamic MT4 indicator
3 McGinley DynamicI recently found out about McGinley dynamic and its capability to respond better to market's speed changes when compared with EMA. I was doing some tests on previous charts and I've noticed that according with the risk you want to take there are different intervals which can suits you. For example MG3 is very responsive, I've noticed that it's better if you want to enter long positions, on the other side is unreliable for shorting. Mg10 is instead the slower one but I've noticed is perfect for shorting and opposed to Mg3 tends to identify upper trends too late making the investor losing profit. I've introduced Mg7 to make comparison with the others, when you're uncertain between 3 and 10 you can compare them with the 7.
I encourage everyone to define its own strategy, I've just explained how I'm gonna use it. Do your tests before using it otherwise you could lose money.
McGinley Dynamic (Improved) - John R. McGinley, Jr.For all the McGinley enthusiasts out there, this is my improved version of the "McGinley Dynamic", originally formulated and publicized in 1990 by John R. McGinley, Jr. Prior to this release, I recently had an encounter with a member request regarding the reliability and stability of the general algorithm. Years ago, I attempted to discover the root of it's inconsistency, but success was not possible until now. Being no stranger to a good old fashioned computational crisis, I revisited it with considerable contemplation.
I discovered a lack of constraints in the formulation that either caused the algorithm to implode to near zero and zero OR it could explosively enlarge to near infinite values during unusual price action volatility conditions, occurring on different time frames. A numeric E-notation in a moving average doesn't mean a stock just shot up in excess of a few quintillion in value from just "10ish" moments ago. Anyone experienced with the usual McGinley Dynamic, has probably encountered this with dynamically dramatic surprises in their chart, destroying it's usability.
Well, I believe I have found an answer to this dilemma of 'susceptibility to miscalculation', to provide what is most likely McGinley's whole hearted intention. It required upgrading the formulation with two constraints applied to it using min/max() functions. Let me explain why below.
When using base numbers with an exponent to the power of four, some miniature numbers smaller than one can numerically collapse to near 0 values, or even 0.0 itself. A denominator of zero will always give any computational device a horribly bad day, not to mention the developer. Let this be an EASY lesson in computational division, I often entertainingly express to others. You have heard the terminology "$#|T happens!🙂" right? In the programming realm, "AnyNumber/0.0 CAN happen!🤪" too, and it happens "A LOT" unexpectedly, even when it's highly improbable. On the other hand, numbers a bit larger than 2 with the power of four can tremendously expand rapidly to the numeric limits of 64-bit processing, generating ginormous spikes on a chart.
The ephemeral presence of one OR both of those potentials now has a combined satisfactory remedy, AND you as TV members now have it, endowed with the ever evolving "Power of Pine". Oh yeah, this one plots from bar_index==0 too. It also has experimental settings tweaks to play with, that may reveal untapped potential of this formulation. This function now has gain of function capabilities, NOT to be confused with viral gain of function enhancements from reckless BSL-4 leaking laboratories that need to be eternally abolished from this planet. Although, I do have hopes this imd() function has the potential to go viral. I believe this improved function may have utility in the future by developers of the TradingView community. You have the source, and use it wisely...
I included an generic ema() plot for a basic comparison, ultimately unveiling some of this algorithm's unique characteristics differing on a variety of time frames. Also another unconstrained function is included to display some the disparities of having no limitations on a divisor in the calculation. I strongly advise against the use of umd() in any published script. There is simply just no reason to even ponder using it. I also included notes in the script to warn against this. It's funny now, but some folks don't always read/understand my advisories... You have been warned!
NOTICE: You have absolute freedom to use this source code any way you see fit within your new Pine projects, and that includes TV themselves. You don't have to ask for my permission to reuse this improved function in your published scripts, simply because I have better things to do than answer requests for the reuse of this simplistic imd() function. Sufficient accreditation regarding this script and compliance with "TV's House Rules" regarding code reuse, is as easy as copying the entire function as is. Fair enough? Good! I have a backlog of "computational crises" to contend with, including another one during the writing of this elaborate description.
When available time provides itself, I will consider your inquiries, thoughts, and concepts presented below in the comments section, should you have any questions or comments regarding this indicator. When my indicators achieve more prevalent use by TV members, I may implement more ideas when they present themselves as worthy additions. Have a profitable future everyone!
McGinley Dynamic IndicatorMcGinley Dynamic is a technical indicator developed by a market technician, R. McGinley in 1997
I based my indicator from code by everget so you should go follow him if you aren't already!
I had issues with the default version of this indicator using different lengths so this is my fix for those issues. This follows the price very closely especially when the stock is falling. I have color coded so go long when it is green and short when it is red.
Let me know if you would like me to write any other scripts for indicators out there!