Ehlers Modified Relative Strength Index [CC]The Modified Relative Strength Index was created by John Ehlers (Cycle Analytics For Traders pgs 87-88) and this is a typical RSI that uses his roofing filter as the input. He smooths it with his own super smoother filter to provide signals. This indicator is extremely reactive and works in cycles so keep that in mind. I haven't been able to come up with clear buy and sell signals at this point so let me know if you any suggestions but I'm publishing the code to complete my goal of publishing all of his work one day. I will be publishing a bunch of Ehlers scripts in the next few weeks so stay tuned. What I recommend for buy and sell signals at this point are to buy when the indicator goes below the oversold line and starts going up and sell when the indicator goes below the oversold line a second time. Vice versa for sell signals.
Let me know if there are any other scripts you would like to see me publish!
Cycles
Fast Fourier Transform (FFT) FilterDear friends!
I'm happy to present an implementation of the Fast Fourier Transform (FFT) algorithm. The script uses the FFT procedure to decompose the input time series into its cyclical constituents, in other words, its frequency components , and convert it back to the time domain with modified frequency content, that is, to filter it.
Input Description and Usage
Source and Length :
Indicates where the data comes from and the size of the lookback window used to build the dataset.
Standardize Input Dataset :
If enabled, the dataset is preprocessed by subtracting its mean and normalizing the result by the standard deviation, which is sometimes useful when analyzing seasonalities. This procedure is not recommended when using the FFT filter for smoothing (see below), as it will not preserve the average of the dataset.
Show Frequency-Domain Power Spectrum :
When enabled, the results of Fourier analysis (for the last price bar!) are plotted as a frequency-domain power spectrum , where “power” is a measure of the significance of the component in the dataset. In the spectrum, lower frequencies (longer cycles) are on the right, higher frequencies are on the left. The graph does not display the 0th component, which contains only information about the mean value. Frequency components that are allowed to pass through the filter (see below) are highlighted in magenta .
Dominant Cycles, Rows :
If this option is activated, the periods and relative powers of several dominant cyclical components that is, those that have a higher power, are listed in the table. The number of the component in the power spectrum (N) is shown in the first column. The number of rows in the table is defined by the user.
Show Inverse Fourier Transform (Filtered) :
When enabled, the reconstructed and filtered time-domain dataset (for the last price bar!) is displayed.
Apply FFT Filter in a Moving Window :
When enabled, the FFT filter with the same parameters is applied to each bar. The last data point of the reconstructed and filtered dataset is used to build a new time series. For example, by getting rid of high-frequency noise, the FFT filter can make the data smoother. By removing slowly evolving low-frequency components (including non-periodic constituents), one can reveal and analyze shorter cycles. Since filtering is done in real-time in a moving window (similar to the moving average), the modified data can potentially be used as part of a strategy and be subjected to other technical indicators.
Lowest Allowed N :
Indicates the number of the lowest frequency component used in the reconstructed time series.
Highest Allowed N :
Indicates the number of the highest frequency component used in the reconstructed time series.
Filtering Time Range block:
Specifies the time range over which real-time FFT filtering is applied. The reason for the presence of this block is that the FFT procedure is relatively computationally intensive. Therefore, the script execution may encounter the time limit imposed by TradingView when all historical bars are processed.
As always, I look forward to your feedback!
Also, leave a comment if you'd be interested in the tutorial on how to use this tool and/or in seeing the FFT filter in a strategy.
Financial Astrology Vesta SpeedVesta (asteroid) speed provides a good indicator to determine the periods of dominant trend. During the direct phase (when the speed accelerated and reached highest value) we can observe that BTCUSD experienced a clear trend, perfect for trend following. In the contrary when speed was decelerating and speed started backward motion (retrograde) the price was in congestion experiencing sideways moves. From statistical analysis we noted that when Vesta speed is in direct motion 56% of the days resulted in price increase. When speed was stationary (starting to move retrograde) we observed that in 62% of the days the price decreased, finally, during retrograde phase in 54% of the days the price increased. Is clear that direct motion also offers more bullish days. However, in the statistical analysis of the price is not evident the price change range, with visual exploration in the chart is clear that when Vesta speed is in direct phase the range of the price is wider, therefore, direct motion provides the most interesting risk/reward ratio.
Note: The Vesta speed indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the data is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart timezone.
Financial Astrology Vesta DeclinationVesta (asteroid) declination show a strong correlation with the BTCUSD trend, we can clearly see that all the most intense bullish periods have occurred when declination was moving from South to Node direction (when the slope is positive). In the events when declination was moving toward North and have penetrated the zero declination boundary (horizontal dashed line) we can observe a periods where price experienced more volatility.
Note: The Vesta declination indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the data is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart timezone.
Financial Astrology Vesta LongitudeVesta is one of the largest objects in the asteroid belt between Mars and Jupiter, the orbit duration is 3.63 years and seems to be very relevant celestial object in financial astrology. The experienced financial astrologer "Bill Meridian" indicates that this asteroid rules the security business, and paper securities such as bonds and stocks. We have confirmed through statistical research that adding this asteroid to astrology machine learning models provides an increase in daily trend predictions accuracy for crypto-currencies sector.
Our statistical analysis of Vesta zodiac sign location concluded that when is transiting the signs of Aries, Gemini, Cancer, Leo and Libra the daily trend is 59% or more of the days bullish. When Vesta is located at Capricorn is very bearish with 60% of the daily trend going in downward direction. In the other zodiac signs the daily trend was neutral showing most of the time a sideways pattern.
Is very interesting to note that the exact date July 21, 2021, when Vesta entered in Libra BTCUSD started the last bullish wave that finally broke the congestion zone of the 30K-35K and started a new bullish optimism. Pay attention on what happened in the previous cycle when Vesta was located in Libra and do your conclusions.
Note: Vesta longitude indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the data is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart timezone.
Financial Astrology True Lilith (Black Moon) LongitudeTrue Lilith (Black Moon) represents the wildly perturbed Moon apogee orbit, is not averaged (as Mean Lilith) and shows an erratic path with constant change of direction and speed. This Lilith uses the actual, real orbit rather than the average used by Mean Lilith. This perturbations are caused due to the gravitational pull of the Sun and the change of the orbit center which is the Earth-Moon Barycenter. The move of this apogee point toward all the Zodiac signs takes around 9 years to complete and as we can observe, the True Lilith moves back and forward within two consecutive zodiac signs during a prolonged period. In this erratic motion we can note that the peaks and valleys of this waves usually present a swing trade opportunities, is really impressive to note how a full or half True Lilith wave period correlates with short term local peaks and valleys in the BTCUSD price.
Note: The True Lilith (Black Moon) longitude indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the data is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart timezone.
Financial Astrology Mean Lilith (Black Moon) LongitudeMean Lilith (Black Moon) represents the apogee of the lunar orbit (point where the Moon is farthest from Earth) as the Moon experience perturbations due to the gravitational pull of the Sun and don't orbit in elliptical path due the fact that don't follow the Earth center but the Earth-Moon Barycenter cause that an average projection of this apogee point location needs to be calculated, for this reason, we need to differentiate the Mean Lilith and True Lilith. The move of this apogee point toward all the Zodiac signs takes around 9 years to complete so in BTCUSD asset we only have one complete revolution so is difficult to emit any clear judgement of the zodiac sign location influence in the trend. However this imaginary body named Lilith is widely adopted by astrologers and is very important in Chinese Astrology, for this reason, we decided to contribute the indicator to support the research of Chinese astro-traders.
Note: The Mean Lilith (Black Moon) longitude indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the data is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart timezone.
Financial Astrology South Node (Ketu) DeclinationThe declination of South Node (Ketu) is the inverse of North Node (Rahu), therefore, the only relevant pattern that we detected is that when declination was within -6 to +6 degrees the price was congested within narrow price zone as was previously mentioned at the North Node (Rahu) declination indicator.
Note: The South Node (Ketu) declination indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the data is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart timezone.
Financial Astrology North Node (Rahu) DeclinationThe North Node (Rahu) declination is a long term cycle so don't seem to provide useful pattern for short/mid term trading, however is interesting to note that when the declination was within -6 to +6 degrees the price was congested within narrow price zone. As observed in all planets declinations indicators the boundary of moving from North to South or viceversa is critical to determine trend change but in the case of the Moon Nodes it seems to show that the planets energy becomes in equilibrium which causes that price are more stable.
Note: The North Node (Rahu) declination indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the data is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart timezone.
Financial Astrology South Node (Ketu) LongitudeSouth Node (Ketu) in Vedic astrology is considered to cause a bear trend when Eclipse occurs at this Moon Node. Moon Nodes are important because when Moon and Sun are in conjunction or opposition very close to the degree of a Moon's Node, a Solar or Lunar eclipse occurs.
The effect of the trend will be coloured by the Moon Node zodiac sign position. Based on statistical research we have noted that the periods where South Node (Ketu) was located in Sagittarius the trend was bullish 56% of the days, in Aquarius 54% of the days and in Pisces 62% of the days. When located at Aries was bearish 51% of the days. The other zodiac signs experienced mixed results that don't show a clear pattern.
Consider that the transition of South Node across all the Zodiac signs takes 19 years so in all BTCUSD historical prices, we don't have a complete revolution yet, for this reason, our understanding of all the energy frequencies related to South Node location are incomplete.
Note: The South Node (Ketu) longitude indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the data is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart timezone.
Financial Astrology North Node (Rahu) LongitudeThe Moon Nodes are the points where Moon crosses the ecliptic and transition from North to South latitude, North Node (Rahu) in Vedic astrology is considered to cause a bull trend when Eclipse occurs at this Moon node. Moon nodes are important because when Moon and Sun are in conjunction or opposition close very close to the degree of a Moon Node, then a Solar or Lunar eclipse occurs.
The effect of the trend will be coloured by the Zodiac sign where the Moon Node is located at, based on statistical research we have noted that the periods where North Node (Rahu) was located in Geminis the 56% of days was bullish, in Virgo 62% of the days was bullish. The most bearish location was Libra with 51% of days bearish. However the transition of North Node around all the Zodiac takes 19 years so in all BTCUSD price history we don't have yet a complete revolution to have a complete understanding of all the energy frequencies.
Note: The North Node (Rahu) longitude indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the data is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart timezone.
Financial Astrology Ceres SpeedCeres speed influence is clear for BTCUSD and confirms other planets speed observations, volatility increase as speed is accelerating. The most dominant bull runs of BTC have occurred when Ceres was moving direct in speed and accelerating. In many cases the trend reversed or stalled where Ceres enter into deceleration period. The only exception was March 2019 where BTCUSD price increased while Ceres was moving retrograde but as we know, all the planets are acting simultaneously so careful exploration needs to be made with the other planets and asteroids speed phases during that same period to conclude why in that observation the volatility was strong.
Note: The Ceres speed indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the data is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart timezone.
Financial Astrology Ceres DeclinationCeres declination shows similar trend behaviour as we have seen with other planets, when moving from South to North the dominant BTCUSD trend is bullish, when moving from North to South the dominant trend is bearish. We observe that the periods of most intense corrections have occurred when Ceres was located in South declination.
Note: The Ceres declination indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the data is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart timezone.
Financial Astrology Ceres LongitudeCeres is the largest object in the asteroid belt between Mars and Jupiter orbits, most of the people don't know that Ceres don't have the category of asteroid but a "dwarf planet", the same as Pluto. Many astrologers don't take Ceres into account when casting an astrological chart but my thinking is that if is proved by experience that Pluto with a mass of 1.30900 x 10^22 kilograms is relevant for market predictions, why not to consider Ceres which has a mass of 9.39 x 10^20 kilograms (7.2% of Pluto mass) but is closer to the Earth?
Through the statistical analysis of Ceres transit through tropical zodiac signs we noted that for BTCUSD there was a significant bullish trend where Ceres transited Aries (62% days), Gemini (67% days), Virgo (57% days) and Pisces (62% days) and significant bearish trend where Ceres transited Libra (56% days) and Scorpio (61% days).
The astrologer Bill Meridian indicated that Ceres rules: food and nursing homes. Other astrologers suggest that it rules: cooking, eating, farming, growing, gardening. I think we need more research to identify the specific sectors that are ruled by Ceres but definitely this dwarf planet is very relevant for financial markets trend forecasting.
Note: The Ceres longitude indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the data is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart timezone.
Financial Astrology Pluto DeclinationPluto moves very slow in declination as can be viewed in this indicator, therefore, is logical to think that looking Pluto declination for short or mid term trading is useless. We cannot determine any useful pattern from Pluto declination or longitude but we was willing to document here that we did the exploratory analysis of all planets declination. The conclusion is that what is relevant for trading are the declinations of the tradition astrology planets: Moon, Mercury, Venus, Sun, Mars, Jupiter and Saturn. However, Pluto speed phases seems to be relevant so we recommend to keep an eye on the Pluto speed indicator.
Note: The Pluto declination indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the declination is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart timezone.
Financial Astrology Pluto SpeedPluto retrograde and stationary phases weaken the explosive energy effect of the extreme and ungovernable actions, causing a period where traders tends to wait and analyse more before acting. We can see in BTCUSD that in most of the retrograde periods of Pluto the price was trapped (sideways) within very narrow price range consolidating the price zone reached by the aggressive moves occurring during the Pluto direct motion phase.
Note: The Pluto speed indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the speed is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart timezone.
Financial Astrology Indexes ML Daily TrendDaily trend indicator based on financial astrology cycles detected with advanced machine learning techniques for some of the most important market indexes: DJI, UK100, SPX, IBC, IXIC, NI225, BANKNIFTY, NIFTY and GLD fund (not index) for Gold predictions. The daily price trend is forecasted through planets cycles (angular aspects, speed phases, declination zone), fast cycles are based on Moon, Mercury, Venus and Sun and Mid term cycles are based on Mars, Vesta and Ceres . The combination of all this cycles produce a daily price trend prediction that is encoded into a PineScript array using binary format "0 or 1" that represent sell and buy signals respectively. The indicator provides signals since 2021-01-01 to 2022-12-31, the past months signals purpose is to support backtesting of the indicator combined with other technical indicator entries like MAs, RSI or Stochastic . For future predictions besides 2022 a machine learning models re-train phase will be required.
When the signal moving average is increasing from 0 to 1 indicates an increase of buy force, when is decreasing from 1 to 0 indicates an increase in sell force, finally, when is sideways around the 0.4-0.6 area predicts a period of buy/sell forces equilibrium, traders indecision which result in a price congestion within a narrow price range.
We also have published same indicator for Crypto-Currencies research portfolio:
DISCLAIMER: This indicator is experimental and don’t provide financial or investment advice, the main purpose is to demonstrate the predictive power of financial astrology. Any allocation of funds following the documented machine learning model prediction is a high-risk endeavour and it’s the users responsibility to practice healthy risk management according to your situation.
Institutional OrderBlock Pressure█ OVERVIEW
OrderBlocks are areas where Banks take a Short or Long position. So they create a movement that they would like to hide from us, but luckily for us they cannot. Take the example of Banks opening Short position for x reason. The Trend is already Bearish. The Price will fall and then make a Reversal
(most often to the price where they opened their positions) and it is at this precise moment that they will again resume a Short position twice as
large because for the moment, following this example it is not in their interest that the Price exceeds a certain Price since they are Seller.
As a result they create a solid Resistance (the strongest it is). There are several ways to interpret this logic, we can try to follow the movement of Banks
or on the contrary take advantage of the recovery of the course. Note that not having level 2 and access to the order book from TradingView we can only
make a rough estimate of the "OrderBlocks" through VPOC.
█ HOW TO INTERPRET?
• The Labels displayed by "Red Arrow" and "Green Arrow" represent supposed Bearish or Bullish OrderBlock. Note that you should not in any way interpret these "Arrows" as Signals to Buy or Sell for the reasons mentioned above.
• The OB Line works according to detected OrderBlock Candle. These lines indicate the potential recovery area. (The highlighted lines and candles are white by default).
• It is better to use this indicator on Higher TimeFrame like 2H or 4H.
• You can change the Volume Ratio (here VPOC) which is 89 by default.
• There is a Customization section that allows you to change the colors of the Lines and Candles from White to Black depending on your background color (Light or Dark).
• YES the indicator is Repainting and YES you can have False Alerts since Labels appear in intra-bar!
█ ALERTS
• In fact we don't really need Alerts for the logic of this indicator except maybe to get the Price of the last OB Detected and to keep this price in your Alert History and may use it later. Some improvements will come in future with updates and we have already planned to add Alerts when a "Line Cross" gone occur.
If you notice any bugs or if you have any suggestions, don't be hateful gangs ;)
Happy trading everyone and remember, risk management is the most important!
Financial Astrology Crypto ML Daily TrendThis daily trend indicator is based on financial astrology cycles detected with advanced machine learning techniques for the crypto-currencies research portfolio: ADA, BAT, BNB, BTC, DASH, EOS, ETC, ETH, LINK, LTC, XLM, XMR, XRP, ZEC and ZRX. The daily price trend is forecasted through this planets cycles (angular aspects, speed, declination), fast ones are based on Moon, Mercury, Venus and Sun and Mid term cycles are based on Mars, Vesta and Ceres. The combination of all this cycles produce a daily price trend prediction that is encoded into a PineScript array using binary format "0 or 1" that represent sell and buy signals respectively. The indicator provides signals since 2021-01-01 to 2022-12-31, the past months signals purpose is to support backtesting of the indicator combined with other technical indicator entries like MAs, RSI or Stochastic. For future predictions besides 2022 a machine learning models re-train phase will be required.
The resolution of this indicator is 1D, you can tune a parameter where you can determine how many future bars of daily trend are plotted and adjust an hours shift to anticipate future signals into current bar in order to produce a leading indicator effect to anticipate the trend changes with some hours of anticipation. Combined with technical analysis indicators this daily trend is very powerful because can help to produce approximately 60% of profitable signals based on the backtesting results. You can look at our open source Github repositories to validate accuracy using the backtesting strategies we have implemented in Jesse Crypto Trading Framework as proof of concept of the predictive potential of this indicator. Alternatively, we have implemented a PineScript strategy that use this indicator, just consider that we are pending to do signals update to the period July 2021 to December 2022: This strategy have accumulated more than 110 likes and many traders have validated the predictive power of Financial Astrology.
DISCLAIMER: This indicator is experimental and don’t provide financial or investment advice, the main purpose is to demonstrate the predictive power of financial astrology. Any allocation of funds following the documented machine learning model prediction is a high-risk endeavour and it’s the users responsibility to practice healthy risk management according to your situation.
Financial Astrology Pluto LongitudePluto energy manifest as destruction, rebirth, death, waste, obsession, extremism, transformation, crime and underworld or unconscious. It takes in average 21 years to transit each zodiac sign so in relation to financial astrology, Pluto in Capricorn (current location) represent a generation that tends to be extremist and obsessed in materialism. This position also represent the evolution and transformation of some emergent economies that are raising the hand as the successors of the world power and the destruction of old professions with the rebirth of digital oriented jobs driven by technology (blockchain, artificial intelligence an internet). As Pluto travel towards Aquarius, this technology oriented transformation will reach the maximum momentum with a very intense technological disruption of the old tools we are accustomed to use today in favor of more powerful inventions that can take humanity toward the next level of evolution. Very likely this will be the massive adoption and popularisation of quantum computing, alternative energy sources and touristic space travels.
This indicator is not useful for short/mid term trends but as Pluto transit into different zodiac signs this will mark relevant disruptions in the humanity leadership organisation.
Note: The Pluto longitude indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the data is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart timezone.
Financial Astrology Neptune LongitudeNeptune energy influence the charity, confusion, imagination, waste, crime, intuition, occult, scandal, illusion and dreams. It rules the industries related to chemicals, gas and oil, drugs and alcoholic beverages, scams, non profit organisations, spirituality. The last decade Neptune have been traveling through Piscis sign which caused humanity to have an illusion that economical growth don't have limits, as consequence we saw US indexes growth toward new all time highs. However, Neptune is close to leave Piscis, in 7 more degrees as per July 2021 and new cycle is going to start. It will be interesting to see what happens as Neptune moves into Aries sign.
This longitude indicator show a zodiac signs horizontal line boundaries that identify the start of the sign marked in the corresponding horizontal line label in the Y axis, this simplify the analysis of a planet effect within specific zodiac sign.
Note: The Neptune longitude indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the data is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart timezone.
Financial Astrology Uranus LongitudeUranus energy influence the wish to change, to innovate, to disrupt the confort zone, is the spirit of the inventions, revolutions and technology. Rules the industries of electricity, computing, aviation, technology, fin-tech and internet (because without web servers that needs electricity the network cannot operate). Through the course of the zodiac Uranus will reveal the human sectors that will be disrupted, at this moment 2021 is moving through Taurus so is expected that human finances are disrupted which is currently happening with all the innovations and momentum of the fin-tech startups that are innovating applications of the blockchain.
Note: The Uranus longitude indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the data is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart timezone.
Financial Astrology Neptune DeclinationWe don't know much about the impact of Neptune declination in the financial markets but if we infer the effect of Neptune traveling toward the zero declination we can assume that the effects of illusion, inflation, scams and economic bubble could growth during the next decade giving raise to the super bubble of the blockchain industry. Only future data will give us a hint of interpretation of Neptune declination cycles, perhaps in a decade, PineScript and web clients have evolved enough so we can load 100 years of declination data to analyse the behaviour in major US indexes that provide enough years of data for a more deep study.
Note: The Neptune declination indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the speed is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart timezone.