Sessions RangesAn indicator that displays each trading session. Each box represents a single session (Asian, London and NY) and their respective overlaps.
Cykle
[blackcat] L1 Richard Poster Trend PersistenceLevel 1
Background
In Traders’ Tips of February 2021, the focus is Richard Poster’s article in the February 2021 issue, “Trend Strength: Measuring The Duration Of A Trend”.
Function
In his article in this issue, Richard Poster outlines several common ways to evaluate the strength and duration of trends. Then he evaluates their sensitivity to volatility. Next, he steps up our game a bit by proposing an indicator that seeks to measure a trend’s persistence rate, or TPR for short. TPR turns out to be relatively insensitive to the influence of volatility.
Financial markets are not stationary; price curves can swing all the time between trending, mean-reverting, or entire randomness. Without a filter for detecting trend regime, any trend-following strategy will bite the dust sooner or later. In his article in this issue, Richard Poster offers a trend persistence indicator (TPR) for helping to avoid unprofitable market periods.The TPR indicator measures the steepness of a SMA (simple moving average) slope and counts the bars where the slope exceeds a threshold. The more steep bars, the more trending the market. Threshold, TPR period, and SMA period are the parameters of the TPR indicator.
Remarks
This is a Level 1 free and open source indicator.
Feedbacks are appreciated.
S2BU2 Stochastic Momentum Convergence DivergenceFair Use:
Please do not take my work and sell it under your own name. This was created to benefit everyone - not one person. Feel free however to use it as part of whatever work you wish to sell (of course i would applaud also giving ideas away for free - your choice though ;)
What it is:
This is a twist on the stochastic momentum indicator . It combines the classic stochastic momentum with a slow moving trendline to improve the warning signal for the end of a trend
How it works:
The classic Stochastic Momentum indicates an uptrend when the smi crosses above the signalline and conversely a downtrend when it crosses below.
The improved indicator also shows trend sustainability by displaying a vertical line when the trendline and signal line cross each other. Trendline above signalline indicates a sustained uptrend, trendline below signalline indicates a sustained downtrend.
How to use:
Note this is only a recommendation and not advice. Feel free to experiment and adjust the indicator to fit your tradingstyle. This is only my personal setup. Feel free to share your findings.
Set Alerts for crossovers between smi and signal on 1h and 4h. Also set alerts for crossovers between trend and signal on 4h.
(again, no advice - think for yourself!)
If smi and signal crossdown -> short
If smi and signal crossup -> long
If trend and signal crossdown between top and middle line-> major short
If trend and signal crossup between bottom and middle line -> major long
If trend and signal cross anywhere else -> get out and wait for a new signal
You could also stay in a trend for as long as the trendline does not crossover on the 4h. This works well for major trends and indicates very well the end it.
The end of a major trend is not necessarily the start of a major uptrend - there can and probably will be a consolidation phase.
This does not work well in a choppy market, do not keep a trade going until trend crossover if the market is choppy - you will mostly close with losses!
//chart
BRT Trading Hours CryptoBackground to let you know when it's weekend days and when it's between 8am and 12pm in BRT timezone for studies.
Fed and ECB Calendar by KziHello traders,
Here is a script that i've done for testing the timestamp and the input.time fonction.
You can see verticals lines blue and yellow.
The blue are the ECB meeting date (7 dates)
The yellow are the FED meeting date. (10 Dates)
// In the parameter you can enter the next rolling month date for ECB and FED
// I don't figure out how to add label / Txt on the lines
// And be carreful i don't put the real hours of the meeting.
Phantom - My Session RangeThis is a modification of a script by RobMinty, "FXN - Asian Session Range" The script provides functionality to track specific trading sessions based on user preference rather than just the market sessions open and close. The idea is to help you hold yourself accountable to your specific trading times as well as backtest various marketing timings suitable to your schedule.
This script utilizes RobMinty's pine code to visualize your market session. We have adjusted the script to project the end of the session before the candles print - as well as adding/subtracting the horizontal and/or vertical lines around the current session box. This should help you understand how much time you have left in your session with a quick visual representation. While we have made some additions and adjustments to RobMinty's script- The inputs and functions of the combined script have not changed significantly from the originals. Like the originals, the code has been made open-source. If this script is reused or modified, please provide credit to RobMinty. If you plan to use this specific code with the ability to remove lines from the box and project session end forward, please credit both of us.
Saturday Strategy BTC By KziI take the hypothèse that saturday is the most stable day of the week because, no SP500, no fed announcement and no weekly closure.
My Strategy is very simple:
Take the friday color (Red = Short // Green = Long)
Then open at the friday close price
Take a small pourcentage (1 or 2 %) then close.
What ever close on midnight.
Work Well on the 1h chart.
The Yellow is the saturday.
Maybe we can add the monthly close information to avoid opening trade on saturday if we are at this event.
Enjoy and give me your comment.
Kzi
Cosmic Pi Troll CycleBased on the Cosmic Pi cycle for BTC, but this indicator also includes the cycles for ETH and LINK.
All credits to cosmic_indicators for the initial idea.
Risk Indicator OverlayInvestigates relationship between various moving averages for different crypto assets. Displays risk based on historical data. Can be used together with "Risk Indicator"
Risk IndicatorInvestigates relationship between various moving averages for different crypto assets. Displays risk based on historical data. Can be used together with "Risk Indicator Overlay"
Benjamin Cowen's Simplified Risk MetricJust a simple risk indicator for Bitcoin. Originally created by the great Benjamin Cowen. I just put his idea to code.
Inflation Rate of ChangeInflation and the Fed interest rate impacts all corners of the economy. Today I am releasing to the community an indicator that measures the rate of change of inflation with historical data back to ~1950. I built this to study the historical market impacts of inflation and changes to the Fed rate (see separate indicator I published for Fed Funds Rate here ).
What this indicator does:
This indicator pulls in Consumer Price Index data and applies a rate of change formula to it. The output is measured as a percentage. I.e. 7 would mean a 7% rate of change over the look-back period.
Options in the indicator:
You can change the amount of bars back it uses to calculate rate of change. By default it is set to 253, which would be looking 1 year back on a normal stock market day chart. If you are on a month chart, you would input 12 there to look 1 year back, etc.
There are also different versions of the CPI that you can select with a drop-down input to pull in different inflation measures:
FRED:CPIAUCSL = Urban Consumers, All Items (this is the default data it pulls, and is a common way to measure inflation)
FRED:CPIUFDNS = Food
FRED:CPIHOSNS = Housing
FRED:CPIENGSL = Energy
Disclaimer: Open-source scripts I publish in the community are largely meant to spark ideas that can be used as building blocks for part of a more robust trade management strategy. If you would like to implement a version of any script, I would recommend making significant additions/modifications to the strategy & risk management functions. If you don’t know how to program in Pine, then hire a Pine-coder. We can help!
10-2 Year Treasury Yield Spread by zdmreLong-term bond yield reflects inflation. Short-term bond yields are tools used to predict Fed's interest rate policy. Spread between the two represents four cycles of an economy.
1. Growth
Short-term yield rises as interest rates rise. Spread narrows.
2. Slow growth
Central bank raises interest rates faster and short-term yield exceeds long-term yield. Spread turns negative.
3. Recession
High interest rates lead to more defaults. Inflation caps consumption. Central bank lowers interest rate to stimulate the economy and short-term yield falls. Spread widens.
4. Recovery
Central bank continues easing. Spread remains wide and yield curve remains steep.
0 = Recession Risk
2.6 = Recovery Plan
DYOR
Fed Funds Rate IndicatorWith the current level of inflation and the Fed outlook on interest rates, it inspired some studying on the relationship between Fed rate increases and stock market performance over periods of inflation. Today I am releasing to the community an indicator that will show you the Fed Funds Rate historically. You can add it to any chart or index to study the impact of Fed Funds Rate changes.
There are 2 options for the indicator data source you can select in the indicator settings. FRED:EFFR data updates daily but only goes back ~20 years. FRED:FEDFUNDS data only updates monthly but goes back to 1947.
Disclaimer: Open-source scripts I publish in the community are largely meant to spark ideas that can be used as building blocks for part of a more robust trade management strategy. If you would like to implement a version of any script, I would recommend making significant additions/modifications to the strategy & risk management functions. If you don’t know how to program in Pine, then hire a Pine-coder. We can help!
GOOG v GOOGL ArbitrageTiny little indicator.
Class A shares of Google ($GOOG) have voting power. Class C shares ($GOOGL) don't. So Class A sells for more since they're strictly better than class C, but how much more?
With this indicator, we can see that it's usually about +0.5%. So if it's ever different than that, there might be a small arb opportunity as it rebalances itself. i.e. If it's negative, then class C is temporarily more expensive, and you could short class C and simultaneously buy class A. Alternatively, if it's 2% above, you could do the opposite.
ETH Gravity OscillatorThis indicator is a deviation of a Center of Gravity Oscillator corrected for the diminishing returns of Ethereum.
I've set up this indicator for it to be used on the weekly timeframe . The indicator oscillates between 0 and 10, where 0 indicates oversold conditions and 10 indicates overbought conditions. What is interesting is that it is not particularly ideal for identifying market cycle tops, but generally picks out the most euphoric region in the initial parabolic rally. Good to potentially keep in mind if there is a second bounce to the peak!
The indicator plots in any ETH charts. It paints in all time frames, but Weekly time frame is the correct one to interpret the 'official' read of it.
Made at the request of a kind commenter. If you would like to request different derivations of this script be sure to let me know!
Tesla Coil MLThis is a re-implementation of @veryfid's wonderful Tesla Coil indicator to leverage basic Machine Learning Algorithms to help classify coil crossovers. The original Tesla Coil indicator requires extensive training and practice for the user to develop adequate intuition to interpret coil crossovers. The goal for this version is to help the user understand the underlying logic of the Tesla Coil indicator and provide a more intuitive way to interpret the indicator. The signals should be interpreted as suggestions rather than as a hard-coded set of rules.
NOTE: Please do NOT trade off the signals blindly. Always try to use your own intuition for understanding the coils and check for confluence with other indicators before initiating a trade.
Lev Umanov Sin EquationThis indicator is taken from the calculations made by Lev Umanov. It predicts the peaks of Bitcoin. The indicator works with most BTCUSD pairings.
TASC 2022.04 S&P500 Hybrid Seasonal System█ OVERVIEW
TASC's April 2022 edition of Traders' Tips includes the "Sell In May? Stock Market Seasonality" article authored by Markos Katsanos. This is the code implementing the "Hybrid Seasonal System" from the article.
█ CONCEPTS
In his article, Markos Katsanos takes an updated look at the "Sell in May" adage by reviewing recent historical data for seasonal equity market tendencies. The author explores the development of a trading strategy (a set of buy and sell rules) based on this research.
He starts from the enhanced buy & hold system featured in his July 2021 TASC article, and adds additional technical conditions. These include volatility conditions ( VIX and ATR ) plus the "Volume Flow Indicator" (VFI), which is a custom money flow indicator that Katsanos introduced in his June 2004 TASC article. He provides an example of a trading system that others can test for themselves and modify as they see fit. The author notes that the system could likely be improved further by adding money management conditions (such as a stop-loss), or by adding more technical conditions not considered in the scope of this article.
█ CALCULATIONS
The entry and exit rules that constitute the trading system are defined below. The critical values of VIX, ATR and VFI (specified below) used in the calculations were determined by optimization for a daily chart of the SPY ETF . By default, the strategy only allows long entries. However, the script offers the possibility to initiate short entries upon exiting long trades through the "Long Only" toggle in the script's inputs.
Long Entry Rules
• Seasonal: The seasonal trade is initiated on the first business day October at the open.
• Volatility: In case of high volatility, that is if the VIX is above 60% or the 15-day ATR was above 90% over the past 25 days, the seasonal trade is deferred until later in the month or year, when the volatility subsides.
Exit/Short Entry Rules
• Seasonal: The exit/short signal is triggered on the first business day of August at the open.
• Volatility: The exit/short signal is triggered if VIX is above 120 % (i.e. 2 times the corresponding threshold parameter).
• Money flow (VFI): The exit/short signal is triggered if the VFI crosses under a critical value (-20) while its 10-day moving average is pointing down.
Join TradingView!
Mean Shift Pivot ClusteringCore Concepts
According to Jeff Greenblatt in his book "Breakthrough Strategies for Predicting Any Market", Fibonacci and Lucas sequences are observed repeated in the bar counts from local pivot highs/lows. They occur from high to high, low to high, high to low, or low to high. Essentially, this phenomenon is observed repeatedly from any pivot points on any time frame. Greenblatt combines this observation with Elliott Waves to predict the price and time reversals. However, I am no Elliottician so it was not easy for me to use this in a practical manner. I decided to only use the bar count projections and ignore the price. I projected a subset of Fibonacci and Lucas sequences along with the Fibonacci ratios from each pivot point. As expected, a projection from each pivot point resulted in a large set of plotted data and looks like a huge gong show of lines. Surprisingly, I did notice clusters and have observed those clusters to be fairly accurate.
Fibonacci Sequence: 1, 2, 3, 5, 8, 13, 21, 34...
Lucas Sequence: 2, 1, 3, 4, 7, 11, 18, 29, 47...
Fibonacci Ratios (converted to whole numbers): 23, 38, 50, 61, 78, 127, 161...
Light Bulb Moment
My eyes may suck at grouping the lines together but what about clustering algorithms? I chose to use a gimped version of Mean Shift because it doesn't require me to know in advance how many lines to expect like K-Means. Mean shift is computationally expensive and with Pinescript's 500ms timeout, I had to make due without the KDE. In other words, I skipped the weighting part but I may try to incorporate it in the future. The code is from Harrison Kinsley . He's a fantastic teacher!
Usage
Search Radius: how far apart should the bars be before they are excluded from the cluster? Try to stick with a figure between 1-5. Too large a figure will give meaningless results.
Pivot Offset: looks left and right X number of bars for a pivot. Same setting as the default TradingView pivot high/low script.
Show Lines Back: show historical predicted lines. (These can change)
Use this script in conjunction with Fibonacci price retracement/extension levels and/or other support/resistance levels. If it's no where near a support/resistance and there's a projected time pivot coming up, it's probably a fake out.
Notes
Re-painting is intended. When a new pivot is found, it will project out the Fib/Lucas sequences so the algorithm will run again with additional information.
The script is for informational and educational purposes only.
Do not use this indicator by itself to trade!