Macro Score - Dem. Fib. McGinley DynamicsA "macro score", as defined here, is created by giving various weights to different signals and adding them together to get one smooth score. Positive or negative values are assigned to each of the signals depending on if the statement is true or false (e.g. DPO > 0: +1, DPO < 0: -1). This manner of strategy allows for a subset of the available signals to be present at one time as opposed to every technical signal having to be active in order for a long/short signal to trigger.
The DFMG - Democratic Fibonacci McGinley Dynamic - is a separate indicator that we have released that takes 10 different Fibonacci McGinley Dynamics (lengths of 3 to 233, at Fibonacci intervals) and averages them to form the DFMG line. This helps by creating a consensus on the trend based on these dynamic lines alone. Crossovers of the DFMG with the various McGinley lengths as well as a cross of the price source and these lines can provide adequate long and short signals.
This strategy has the signals and weights pre-determined in the code. Heaviest weights have been given to crosses of the DFMG line/McGinley(233) as well as the crosses of the McGinley(3)/DFMG. Additionally, there are thresholds for DPO ( Detrended Price Oscillator , above or below 0), CMO ( Chande Momentum Oscillator , above or below 0), Jurik Volatility Bands (above or below 0), and Stoch RSI (above or below 50). These four signals hold a lighter weight than the McGinley cross signals.
The macro score itself is printed in an underlay as a white line that goes between -10 and 10 for this strategy. In addition to the macro score line, a green momentum line (sourced by the macro score itself) has been included. A crossover/crossunder of the macro score and the macro momentum line is included into the long/short signal syntax in addition to long and short thresholds for the macro score, defaulted to 5 and -5 respectively.
Take profit, stop loss, and trailing percentages are also included, found at the bottom of the Input tab under “TT and TTP” as well as “Stop Loss”. Make sure to understand the TP/SL ratio that you desire before use, as the desired hit rate/profitability percentage will be affected accordingly. The option for adding in a trailing stop has also been included, with options to choose between an ATR-based trail or a percentage-based trail.
This strategy does NOT guarantee future returns. Apply caution in trading regardless of discretionary or algorithmic. Understand the concepts of risk/reward and the intricacies of each strategy choice before utilizing them in your personal trading.
Profitview/Pineconnector Settings:
If you wish to utilize Profitview’s automation system, find the included “Profitview Settings” under the Input tab of the strategy settings menu. If not, skip this section entirely as it can be left blank. Options will be “OPEN LONG TITLE”, “OPEN SHORT TITLE”, “CLOSE LONG TITLE”, and “CLOSE SHORT TITLE”. If you wished to trade SOL, for example, you would put “SOL LONG”, “SOL SHORT”, “SOL CLOSE LONG”, and “SOL CLOSE SHORT” in these areas. Within your Profitview extension, ensure that your Alerts all match these titles. To set an alert for use with Profitview, go to the “Alerts” tab in TradingView, then create an alert. Make sure that your desired asset and timeframe are currently displayed on your screen when creating the alert. Under the “Condition” option of the alert, select the strategy, then select the expiration time. If using TradingView Premium, this can be open-ended. Otherwise, select your desired expiration time and date. This can be updated whenever desired to ensure the strategy does not expire. Under “Alert actions”, nothing necessarily needs to be selected unless so desired. Leave the “Alert name” option empty. For the “Message”, delete the generated message and replace it with {{strategy.order.alert_message}} and nothing else. If using Pineconnector, follow the same directions for setting up an alert, but use the " ,buy, ,risk=" syntax as noted in the tooltips.
Default Properties for AVAX 20M:
DPO - 35 , uncentered
CMO - 25, open
K/D - 3/3
RSI Stoch Length - 3
Stoch Length - 4
Stoch Source - open
JVB Length - 14
JVB Smoothing - 2
DFMG source - close
Macro Length - 14
TP % - 1.5%
TTP % - 0.005%
SL % - 1.8%, no trail
McGinley Dynamic
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.
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 Backtest (Simple) [Loxx]Simple backtest for McGinley Dynamic found here:
What this backtest includes:
-Longs and shorts
-Customization of inputs for McGinley Dynamic calculation
-Take profit 1 (TP1), and Stop-loss (SL), calculated using standard RMA-smoothed true range
-Activation of TP1 after entry candle closes
Happy trading!
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
TB_Harmonic_Pro_TrendThis indicator is NOT meant to be used as a standalone trading system.
It has been designed to produce signals for potential up or down moves in the market subject to certain critreria being met.
The indicator measures several independent concepts that line up and when congruent produces a signal.
The concepts used are based on the Awesome Oscillator, the Directional Movement Index, Stochastic and the McGinley moving average.
An UP signal is produced when trend has potentially changed to up.
The McGinley MA provides the inital trigger which is followed by supporting oscillators which must move to the upside also indicating a possible change in trend. When the oscillators and MA conditions are met and are 'Congruent' an UP signal is produced to dispaly a potential change in trend for the interim period.
A secondary UP signal is also produced after the initial UP signal. This is as a result of a trend being detected (after the first entry) and the cross of secondary MA with different inputs. This usually occurs after a retarcement and potential continuation of trend. All components must line up to support the idea that trend has changed for the interim.
The combination of several positive trend indicators and confirmation of price assists in the trend change confirmation.
An alert system has been added for convenience.
The opposite occurs for a Down Signal.
The indicator is often useful after a significant swing HIGH/LOW when price is potentially changing direction. The overall concept is to be able to set alerts for such potetnial entries after you have completed your own market analysis. A particularly good reference point is after the 'D' point has formed on a Harmonic Scan (your Own anaysis) and awaiting an entry zone for a change in trend and as price moves away.
This can also be used with significan support and resistence levels and pull-backs in trend direction. Pitchforks applied to Harmonic scans provide numerous potential entry points for this type of indicator which often constitutes a good scalping strategy. Heiken ashi candles can also be used for additonal trend confirmation 'BUT' entry decisions 'SHOULD NOT' be made based on those candles
It works across all time frames.
If you would like to enquire about access to this invite only script please send me a private message on trading view and I will be happy to assist. Thank you.
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 Indicator This is a strategy based on the Mcginley Dynamic Moving Average indicator, 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.
Moving averages used:
EMA: 21
EMA: 42
The chart used for the backtest was the Bovespa Futures Index ( WIN1! Continuous: current contract in front )
Trading Safely Multiple Time Frame Dynamic MACDOur Multi-Time frame MACD is a Zero-Lag (well near zero-lag) We make this claim because MACD utilizes Moving Averages and as you know moving averages are lagging indicators.
For our MACD we utilize The McGinley Dynamic which looks like a moving average line yet it is a smoothing mechanism for prices that turns out to track far better than any moving average.
The McGinley Dynamic minimizes price separation, price whipsaws and hugs prices much more closely.
The McGinley Dynamic does this automatically as this is a factor of the formula.
Because of the calculation, the Dynamic Line speeds up in down markets as it follows prices yet moves more slowly in up markets.
As traders we want to be quick to sell in a down market, yet ride an up market as long as possible.
How to Trade.
It best to use lower time frame charts and higher time frame MACD settings such as 1H chart and 6H (360min) MACD time frame
You can input any time frame in minutes from 1 min to 1440 minutes on the MACD settings.
1H = 60
2H = 120
3H = 180
4H = 240
6H = 360
12H = 720
24H = 1440
Week = W
Month = M
You can set alerts for bullish and bearish crossovers which are good indications of a potential entry into a long or short trade.
shout out to lonesometheblue for inspiration.
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!
McGinley Dynamic VWAP/MVWAP [Dayasagar]Mcginley Dynamics and Volume weighted moving average
Timeframe: 1 hour
Use 200 MA
Buy: If the price is above 200 MA, take only the buy signal.
Sell: If the price is below 200 MA, take only the sell signal.
McGinley Dynamic Band DTThis indicator consists of 2 x McGinley Dynamic moving averages with the ability to fill the area between the 2 MA lines.
The McGinley Dynamic MA is a very powerful tool that has many applications and can be a great addition to a traders arsenal if you're interested in it I suggest doing a bit of research.
I personally use this indicator in addition to the other indicators in my algorithm as a method of filtering out ranging trades, thus I will not enter a trade if the price is within the colour filled area
When using this indicator don't forget to adjust the inputs to find the best settings to suit your trading method, timeframe and personality.
The source code is available to use and modify as you wish.
Enjoy
FALSE BREAKOUT NO PROBLEM !! CHK TWIN MOV AVG SEGREGATED RIBBON PROBLEM DEFINITION 1 : To Avoid False Breakouts
PROBLEM DEFINITION 2 : To Ascertain if the trend has changed when a Stock opens with a Gap up or Gap Down
## PROBABLE SOLUTION : Use a Moving Average with lot of latency
## PROBLEM WITH ABOVE SOLUTION : Misses on lot of trades, Late exits leads to drain on winning trades
S O L U T I O N
An Indicator which plots two different types of Moving Averages at the same time
For the MA length 5-100 a fast plot of choice
For the MA Length 110-200 a plot with a lag to ascertain the trend
And then ONE LAST MAN STANDING with even bigger MA length for a lagging indicator to save the day
This indicator gives one 9X9 = 81 Permutation Combinations to look at the markets
One can devise strategies basis if one particular MA Type has crossed another MA Type
Feel free to post the strategies you have come out with!
//// CREDITS AND ACKNOWLEDGEMENTS //////////////////////////////////////////////////////////////////
Following contributors helped the author ::
Credits to Neobutane for his Multiple Type Mov. Avg. Guppy at ......
hxxps://www.tradingview.c0m/script/UQAv1U0c-MA-Study-Different-Types-and-More-NeoButane/
Credits to Jose5770 for sharing Jurik MA code at .....
hxxps://www.tradingview.c0m/script/uqYvkHna-Trend-Direction-Force-Index/
Appreciate and Thank You for sharing your work.
//////////////////////////////////////////////////////////////////////////////////////////////////////
P.S You might notice in the code that the few plots are skipped. It is done to fasten the indicator without compromising
on the functionality
McGinley Dynamic Convergence/Divergence [ChuckBanger]This is a MACD version with MaGinley Dynamic indicator invented by John R. McGinley. MaGinley Dynamic can be used as a moving average and is a highly reliable indicator. Here i use it instead of EMA witch normally is used to calculate MACD.
For more information of MaGinley Dynamic
www.investopedia.com
BOSS Zero-Lag Dynamic MACDTHE BEST FOREX, BINARY OPTIONS, AND CRYPTO INDICATORS FOR TRADINGVIEW.COM
Our MACD is a Zero-Lag (well near zero-lag) We make this claim because MACD utilizes Moving Averages and as you know moving averages are lagging indicators.
For our MACD we utilize The McGinley Dynamic which looks like a moving average line yet it is a smoothing mechanism for prices that turns out to track far better than any moving average.
The McGinley Dynamic minimizes price separation, price whipsaws and hugs prices much more closely.
The McGinley Dynamic does this automatically as this is a factor of the formula.
Because of the calculation, the Dynamic Line speeds up in down markets as it follows prices yet moves more slowly in up markets.
As traders we want to be quick to sell in a down market, yet ride an up market as long as possible.
Source: Investopedia.com
Chart Image shows conventional MACD on Bottom and BOSS Zero-Lag Dynamic MACD on top
Available at: bosscripts.com
FROZONO₣ⱤØⱫØ₦Ø indicator automatically adjust itself in relation to the speed of the market. Base on a Dynamic Formula, combining simple and exponential moving average with a filter that smooths the data to avoid whipsaws.
The Problem with Moving Averages
moving averages have many problems. In the first place, they are inappropriately applied. Moving averages in different periods operate with varying degrees in different markets. For example, how can one know when to use a 10-day to a 20- to a 50-day moving average in a fast or slow market? In order to solve the problem of choosing the right length of the moving average, ₣ⱤØⱫØ₦Ø was built to automatically adjust to the current speed of the market.
Moving averages failed to follow prices since large separations frequently exist between prices and moving average lines. He sought to eliminate these problems by inventing an indicator that would hug prices more closely, avoid price separation and whipsaws and follow prices automatically in fast or slow markets.
Trend is your friendThis indicator evaluates the trend based on crosses of two McGinley moving averages. It paints candles accordingly (it does not repaint), so you can see what the indicator is saying more clearly and stay in your trade until you see a period of consolidation or a reversal. You can control how far away those moving averages need to be for you to consider it a trend. If this distance is not met candles color is not changed and it shows you that the market is in a period of consolidation. I also added visualization of RSI, so you can have an easier time finding appropriate profit targets. For stop loss I would recommend placing it a couple points above or below the previous high / low that is located above / below you final target for entry. You can also use a certain percentage that works for you. I tried adding a stop loss based on ATR, but I did not like the results. Using market structure is a better choice in my opinion.
Here is a basic trading strategy for the default settings:
Wait for the indicator to start printing a series of green or red candles. After that you can enter a long or a short around moving averages. Another valid place to entry is the specific RSI zone. If we are in an uptrend buying when RSI is oversold can be beneficial as you expect market to recover. I do not recommend changing RSI from 14. Vice versa for the downtrend. It gives you an edge as you know at what price RSI will be oversold and allows you to place trades in advance. Pretty neat! You need to realize that no indicator or strategy can give you an exact entry. There will always be some margin of error. What I wanted to say is that if there is a strong trend up and you buy around your key moving averages and when RSI is oversold you entered in good places and there is a pretty good chance you will make money.
Time frame settings:
If you want to use tighter stop losses I would recommend sticking to 15m. Do not go lower. It is not worth the stress. 1h and 4h seems to be very good as well, but expect your stop losses to be wider. What I personally tend to do is display 15m, 30m and 1h and compare it. Think of it as a short, mid and long term. That way you can see things little bit better.
Examples:
1H chart BTC
4h chart EUR / USD
1D chart NASDAQ
15m chart BTC (Daytrading)
That last chart shows that even if you were longing while the trend was about to change you still had a good chance to close it with a little profit and switch to short easily. The default settings is what has worked the best for me. Feel free to change them as you see fit and do not forget to let me know if you find something that works better :)
Notes:
Either disable wick display or change it to a neutral color like gray for both green and red candles. Unfortunately pine script does not allow wick painting, so if you have red / green wicks it will look terrible. If RSI visualization makes your candles look too small you can go to settings and disable the display of individual RSI levels. You will still be able to see the zones, but the scale won't be affected.
McGinley Dynamic FixedIgnores first x amount of bars to include in the calculation to prevent McGinley Dynamic from staying a flat line.
Usage:
The length is equal to 60% of regular length, for ex. 30EMA is input as 18 length
Trend tool, not ideal as a signal tool