Bitcoin Halving Rainbow + S2F Model PriceOverview
The rainbow price line:
This script creates a colorful view of Bitcoin's price action, where different colors indicate the time until the next halving date. The color scale in the top right highlights what each main color group represents in terms of days until the next halving. Using historical data, the simple indication of days until the next halving has somewhat accurately predicted potential bottoms and tops of market cycles. Comparing current colors to previous cycles provides a rough view of where BTC is in its current cycle and what to expect going forward until the next halving date.
In addition to the colored price action, I have incorporated the stock-to-flow model price for Bitcoin.
The stock-to-flow (S2F) model price:
The stock-to-flow ratio is a calculation that aims to estimate how many years are required to produce the current stock of an asset, based on the current production rate. When applied to Bitcoin, we simply divide the total amount of bitcoins in circulation by the amount of bitcoins mined in a certain timeframe. Once we have this value, we can calculate a model price based on the stock-to-flow ratio. This S2F model price uses a 463-day moving average. Preston Pysh came up with this number as he believed Bitcoin cycles happen in three phases: bull run, correction, and a reversion to the mean. He estimated there are about 200,000 blocks per cycle, three phases per cycle, and ~144 blocks per day. Dividing all three gets us 463. I have removed 1,000,000 coins from this calculation to account for Satoshi's coins.
The process I took to plot this model price (credit to PlanB for originally creating this calculation):
-Declare constant variables for the halving period, starting block reward, and the number of coins Satoshi owns.
-Fetch the block index by using the request.security() function.
-Determine the number of halvings that have occurred by dividing the block index by the halving period.
-Calculate the current block reward by multiplying the initial block reward by 0.5 raised to the power of the number of halvings.
-Calculate the number of blocks mined per period (day or week) and derive the stock (total bitcoins in circulation minus Satoshi's coins) and flow (annual block rewards) from it.
-Calculate the S2F ratio by dividing the stock by the flow.
-Calculate the S2F model price by applying a mathematical formula (ModelPrice = exp(-1.84) * S2F to the power of 3.36) along with a 463-day moving average.
** Please note, due to the use of the 463-day MA, the first ~400 days of the S2F model price is not entirely accurate.
In addition to the above, I have added vertical lines on each halving date, along with labels that have a tooltip if you hover over them, which will show more information about that particular halving.
Important tips:
-This script has been designed to work on the 1-Day timeframe but can also work on the 1-Week timeframe. Any other timeframe will not accurately plot all the information due to the way I have developed the script.
-This script is best used on the ticker I have posted this on, "INDEX:BTCUSD". It can also work on "BLX" or "BITSTAMP:BTCUSD".
-Hide candles when using the script to just show the halving rainbow (hover over the symbol name in the top left and press the eye icon).
-Right-click the price scale and select "Scale price chart only" to get a better view of the plots.
-Right-click the price scale and select "Logarithmic."
-I will update the script as time goes on to show future halvings along with adjusting the next halving date as we get closer (if it changes).
Settings Menu:
Tooltips are included explaining what the settings do, but here's a quick summary:
-'Show Vertical Halving Lines?': Default is true. This allows the user to remove the vertical lines shown on each halving date.
-'Show Halving Labels?': Default is true. This allows the user to remove the info labels shown on each halving date.
-'Halving Line and Label Color': Default is white. This allows the user to change the color of the halving lines and labels to better fit their chart layout.
-'Show Stock to Flow Model Price?': Default is true. This allows the user to remove the S2F model price.
-'Stock to Flow Model Price Color': Default is white. This allows the user to change the color of the S2F model price to better fit their chart layout.
-'Draw Color Table?': Default is true. This allows the user to remove the color table in the top right of the chart.
-'Distance rainbow is away from actual price action': Default is 0 (Plots over candles). This allows the user to adjust where the halving rainbow is plotted if they would like to also see candles on the chart. (Use any value under 0.9)
Feel free to message me or comment on the post with any questions or issues!
Much more to come!
Thanks for reading, enjoy!
BTC-M
Dynamic Volume Oscillator [CryptoScripts]The Dynamic Volume Oscillator uses a combination of volume and momentum to nail whenever a reversal is likely to happen. I've also included divergences (both regular and hidden) that you can toggle on/off and adjust the settings to fit your trading style.
Colors - The green wave indicates an uptrend while the purple wave indicates a downtrend.
Overbought/Oversold - Green backgrounds indicate the DVO is oversold and a reversal to the upside is likely to happen within the next few candles. Red backgrounds indicate the DVO is overbought and a reversal to the downside is likely to happen within the next few candles. You can adjust the levels to trigger when the signal flashes. Experiment with different timeframes/altcoins to see which settings work best. Some coins are more volatile than others and lower timeframes tend to reach higher levels vs higher timeframes.
Divergences - The settings of 1 and 3 for the lookbacks are so the divergence signal appears only 1 candle before the actual divergence happens (on the replay tool) vs 4-5 candles from other indicators. This means your entry on a divergence signal is 2 candles after it prints (for backtesting purposes).
Alerts - I also added alerts for Overbought, Oversold, Regular and Hidden Bearish/Bullish Divergences.
Let me know if you have any questions! Enjoy :)
Commercial FV PriceTrend V1Hello Traders ,
This is a trend trading Indicator where support and resistance and demand zone has been mentioned , It plots according to the trend change . Important point of the indicator is at time when we enter , just on the bases of buy and sell we enter and most of the time market takes out our SL or market reverses or trend changes , There comes the zones part and its functionality is mentioned in the images below and entry is only confirmed only when the candle penetrates inside the any of the zone be that be Resistance zone or Demand Zone and then breaks the low of the Zone (if trend is bearish) then only one can take short position and high of the zone should be the Stoploss ... Similarly if the trend is bullish and price is between Resistance and Demand Zone , if the price breaks the resistance and continue no long position can be taken , atleast for once it should penetrates back inside the Resistance Zone and then breaks the high of the zone that time long entry will become valid and low of the zone will be the Stoploss and 1:3 Risk Reward . By the way this can work with any type of market. However I concluded Intraday levels too which can be turned off according to user comfortability along with mean channel .
Aqua defines BULLISH TREND
RED defines BEARISH TREND
Rules for exit
lONG Exit= Candle closes below Zone Low
Short Exit =Candle closes above Zone high
-----------------
Disclaimer
Copyright by FaizanNawazz.
The information contained in my scripts/indicators/strategies/ideas does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, or individual’s trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My scripts/indicators are only for educational purposes!
Happy Trading!
Altcoin Dominance (without ETH) Excluding Stablecoins UnsymetricAltcoin Dominance (without ETH) Excluding Stablecoins Unsymetric
The purpose of the script is to show Altcoin's strength without Ethereum once we exclude stablecoins.
So we look into all altcoins besides eth and besides stablecoins divided by a value of eth+btc
BTC Pair Change %This script makes it easier to quickly check how the BTC pair of the current symbol is performing on any pair.
It adds a " change percentage widge t" (of the BTC pair ) to the top right of the chart.
(Refer to the image for an example.)
The change percentage calculation is performed as described here:
www.tradingview.com
To match the "Chg%" that appears on TradingView watchlists, a 24H (1440min) timeframe is used, as described here:
money.stackexchange.com
In short, this script:
Searches for the BTC pair of the current symbol
Calculates the change % using the above described logic (links)
Adds a " change percentage widget " (of the BTC pair) to the top right of the chart
Allows for using 24H timeframe or the current timeframe (enable " Use current timeframe " under the script options)
BitCoin RSI TrendWhat is it?
This indicator will plot the RSI of BTC with a red or green background based on the top and bottom values which you can set.
How to use it?
For example, you want to trade only if the RSI of BTC is between 50 and 70, so the top value is 70 and bottom is 50. If the RSI value between those values the background will be green, else it will be red.
Why to use it?
The buy and sell strength of the BTC controls the other coins, and it is noticeable when the BTC is over sold and the RSI exceeding the 70, the price will reverse its movement to down, thus it is advisable to not open long position if the RSI of BTC is above the 70-75. Also, if the RSI is under 50 there is a big possibility to move down further to the over bought areas. The best is to buy a altcoins when the BTC RSI is between 50 and 70.
For example, I could avoid a bad long trade on MATICUSDT when the RSI of BTC is going under 50
Or, get a good long trade on MATICUSDT when the RSI of BTC is between 50 and 70
True Bitcoin Value USD - Mario MThe average mining costs of one bitcoin equals to the true intrinsic value
Globally, the Bitcoin network uses around 0.5% of the world’s electrical power supply.
The sheer amount of electrical power and complex hardware required to operate a mining farm has intrinsic value.
This gives bitcoin a fundamental cost to create, and thus intrinsic value.
BTC Indicator By Megalodon TradingThis indicator is designed help you see the potential reversal zones and it helps you accumulate for the long run.
This combines price data on any chart. The chart isolates between 0 and -100. Below -80 is a buy, above -20 is a sell location.
In these locations, try to Slowly Buy and Slowly Sell (accumulate...)
Story Of This Indicator
~I was always obsessed with Fibonacci and used Fibonacci all the time. Thus, i wanted to make a tool to see buying locations and selling locations.
Instead of drawing fibonacci's and manually interpreting buy/sell locations, i wanted algorithms to do the job for me. So, i created this algorithm and many more like it.
If you think i did a good job and want to do further work with me, feel free to contact.
I have a ton of other tools that can change everything for your trading/investing.
Best wishes
~Megalodon
Wave Fusion By CryptoScriptsThe Wave Fusion indicator is finally here! This indicator is a combination of the Wave Strength Oscillator and RSVP Extractor. It used a combination of momentum waves, volume, price, RSI, and statistical analysis to help nail down whenever the current price is overextended and due for a reversal. I'm currently using the 1D timeframe for BTC but feel free to experiment on different timeframes to see what works best for you. In the description below, I'll go over each signal, how it's derived, and how to use them!
Oversold (Green shaded area) - The oversold indication appears whenever all oscillators are oversold and is usually a good indicator that a reversal to the upside is around the corner (at least for a short period). Be advised these are the weakest of the three signals so I recommend using this signal with other indicators (such as my MFI Pro).
Overbought (Red shaded area) - The overbought indication appears whenever all oscillators are overbought and is usually a good indicator that a reversal to the downside is around the corner (at least for a short period). Be advised these are the weakest of the three signals so I recommend using this signal with other indicators (such as my MFI Pro).
Green Diamond - The green diamonds indicate whenever one or more oscillators are oversold AND one or more oscillators are outside of the bollinger bands, which is great for catching reversals to the upside. These may come two or three at a time so it may be best to wait until they have all printed before entering.
Red Diamond - The red diamonds indicate whenever one or more oscillators are overbought AND one or more oscillators are outside of the bollinger bands which is great for catching reversals to the downside (as seen in the chart). These may come two or three at a time so it may be best to wait until they have all printed before entering.
Rocket - The rocket symbol occurs whenever ALL oscillators are oversold and one or more oscillators are outside of the bollinger bands . This is great for catching reversals to the upside but may come two or three at a time so it may be best to wait until they have all printed before entering.
Red Alarm - The red alarm symbol occurs whenever ALL oscillators are overbought and one or more oscillators are outside of the bollinger bands . This is great for catching reversals to the downside but may come two or three at a time so it may be best to wait until they have all printed before entering.
Moon - The Moon symbol occurs whenever ALL oscillators are oversold and ALL oscillators are outside of the bollinger bands . This is great for catching reversals to the upside but may come two or three at a time so it may be best to wait until they have all printed before entering.
Blood Moon - The red alarm symbol occurs whenever ALL oscillators are overbought and ALL oscillators are outside of the bollinger bands . This is great for catching reversals to the downside but may come two or three at a time so it may be best to wait until they have all printed before entering.
Strongest to Weakest Buy Signals - Moon --> Rocket --> Green Diamond --> Green Shaded Area
Strongest to Weakest Sell Signals - Blood Moon --> Red Alarm --> Red Diamond --> Red Shaded Area
Input Options
Show Histogram - I also included a Histogram in the indicator to help gauge the level of buys/sell strength but kept it hidden for the default levels (i.e a green diamond with a red histogram bar is usually a good sign a reversal is about to happen to the upside whereas a green diamond with a green histogram bar may indicate a false reversal and there's still more room to the downside until a red bar appears. Always backtest this!)
Show Overbought/Oversold Levels - This is if you want to ignore all of the green/red shaded areas and only focus on the diamonds and rocket/alarm signals
Wave Overbought/Oversold Levels - Free free to change to value of the overbought/oversold levels to change where the green/red shades areas print
Momentum Overbought/Oversold Levels - Free free to change to value of the overbought/oversold levels to change where the green/red shades areas print
Histogram Length - This will not change anything with the signals but I included it so you can change the visuals if it helps you
Momentum Length - This will change where the signals plot
Momentum Signal - This only changes the yellow signal line and nothing else. It's not incorporated into any equation
Average Length - This will change where the signals plot
Alerts
I've set alerts on this indicator for each icon (Oversold, Overbought, Green Diamond, Red Diamond, Rocket, Red Alarm, Moon , Blood Moon). I HIGHLY recommend setting the alerts for Candle Close so that you can be sure the signal is confirmed.
You may notice that the indicator can give multiple signals back-to-back or be overbought/oversold for multiple candles. When this happens, it's best to look at other indicators such as the MFI Pro, MACD, etc to nail the best entry and have confluence with your decision. With that said, having multiple signals back-to-back can also be an indication that the move is close to happening. This indicator works with crypto and stocks as well.
If you have any questions or would like to purchase this indicator, please comment below or PM me. I also made a video tutorial for the indicator on my Youtube channel (link is next to my profile pic)
Be advised past performance is not indicative of future returns. Backtest EVERY timeframe and NEVER blindly take signals! Also, never invest more than you can afford to lose.
Enjoy :)
Helicopter!Review
This indicator automatically calculates the best trade entry based on volume and real-time volatility. After the algorithm analyzes the current characteristics of the market, an entry signal is placed on the chart. As a result, the trader can be sure that the signal is based on data analysis. One of the key elements is reverse transactions. A long or short position can be stopped either at a profit or at a small loss without compromising the potential profit.
!Risks
The market is unstable, and it is impossible to know what the future holds for it. The only way to manage risk. You can limit the loss by setting a stop loss of 1% from the entry point. Take profit is recommended to set with a ratio of 1:1, 1:2,1:3, with partial fixation of 40%, 30%, 30%!
!Trading recommendations
Trades are opened when a green arrow appears, selling when a yellow arrow appears. Be sure to wait for the candle to close and the signal to appear (the signal may flash when the candle is formed). Recommended timeframes: 1min, 3min, 15min. The indicator is designed for scalp trades and intradays!
!Technical part
The indicator is based on the EMA 20 and EMA 200 moving averages. It is also based on the open and close of past days, weeks, months.
RSI are used.
RSI is a classic oscillator built on the basis of calculating the relative rate of change in asset prices over a given period.
Additional tools: volume and volatility.
NO REPAINT!
-------------------------------------------------------
Denial of responsibility
The information contained in my Scripts/Indicators/Ideas/Algorithms/Systems does not constitute financial advice or an offer to buy or sell any securities of any kind. I do not accept liability for any loss or damage, including but not limited to any loss of profits that may arise directly or indirectly from the use of or reliance on such information.
QQE Student's T-Distribution Bollinger Bands ScreenerThis script scans 20 custom symbols and displays the QQE Students T-Distribution Bollinger Bandwidth as a percentage, the quarter segment percentage, a score that tells you what segment of the band the price is in, and what direction the market is going in. This is useful because it can tell you how volatile a market is and how much reward is in the market. It also tells you what direction the market is going in so you can pick a symbol that has the best looking reward. I really hope that this script complements the group of indicators I have made so far. Here is a list of the other two indicators related to this script.
Please enjoy!
FieryTrading: Buy The Dip - Sell The RipDear Tradingview community,
Today I want to share a very powerful, yet easy to use indicator with you. The indicator will find local tops or bottoms and will help you determine when it's a good time to trade a potential reversal.
How does it work?
The indicator makes use of the RSI to detect extremities and waits until the RSI reverses. Furthermore, a long-term moving average is used to determine whether we're in bullish or bearish market conditions. In bullish conditions the indicator will only go long, in bearish conditions the indicator will only go short.
How do I use it?
Favorite the indicator and apply it to your chart! You can add an alert to the indicator to receive a message once it has detected a good point for a reversal trade.
The indicator can be used on all assets and on all timeframes. Personally, I've found the 1 - 4 hourly timeframes to yield the best results.
Good luck!
BTC's #4 Whale Sells [TheSecretGuy]Hello there !
I have been tracking BTC richests wallets for some time - and one of them seems to be aligning its sells pretty well with what the market is about to do.
BTC's Whale #3 (now Whale #4) has been selling his BTC in very crutial moments - therefore I felt that converting this into an indicator will give us a pretty visual feedback of what that Whale expects to happen at a given point.
In order to do that, I have listed manually all of his sells (dates) until today and placed a vertical line on the chart on each of these dates.
This sadly can't be automated as Pinescript language doesn't allow to reach outter data - I'd need to update this manually.
Hope this helps you a bit, Cheers!
BTC Agg VolumeBTC Volumes for stablecoin trading pairs from multiple exchanges. Volume is grouped by exchanged and appears as stacked bars. Volume data can be filtered by exchange and stablecoin pair. Appearance can be resized over with an option to apply standard deviations.
Hussarya compare DJI SPX BTCScript shows relations between DJI downJones SPX and BTC:USD.
DJI chart must be set from candlestick to line
Red line is price (close). x 8
Green line ist te price BTCUSD from Binance price (close) x 1.5
Crypto Map Dashboard v1.0🔰Overview
Charts are an essential part of working with data, as they are a way to condense large amounts of data into an easy to understand format. Visualizations of data can bring out insights to someone looking at the data for the first time, as well as convey findings to others who won’t see the raw data. There are countless chart types out there, each with different use cases. Often, the most difficult part of creating a data visualization is figuring out which chart type is best for the task at hand.
What are the types of metrics, features, or other variables that you plan on plotting? Although it depended on some multiple factors!
But my choices of the chart type for this Crypto datas was Pie chart or Donut char for crypto dominances ,and Colum (Bar) chart for Total MarketCaps .
The audiences that I plan on presenting this for them could be all tradingviewrs , especially crypto lovers ,or those who just aim to have an initial exploration for themselves ,like me!
so this indicator mostly could be an educational indicator script for pine coders !
We can use the " Crypto Map Dashboard " indicator to Get an quick overview of the crypto market and monitor where the smart money Flow changing by comparing the dominances and totals Caps .
In general, it consists of 4 parts:
✅1 =>> Table1 : If you like to see and compare and monitor the changes of dominances of (Bitcoin, Ethereum, Usdt , Usdc , etc.) and their market cap in different times you can see the table on The upper-right corner.
✅2 =>> Table2: Also, in the table lower-right corner, you can see the changes of the totals(Total, Total2 , Total3 and TotalDefi) in the same time periods.
✅3 =>> pie chart or donut chart: By viewing this , you understand better about Table1 Datas, that it depicts exactly how Dominance is distributed and specialized.
✅4 =>> column chart (bar chart) : And in the last you can clearly compare the total marketcaps and see how far they are from their ATHs.
You also can even notice the entry and exit of liquidity from the crypto market!
I must also mention that I am definitely still a beginner compared to more experienced pine coders, and there may be some bugs in my codes and calculations, but I am an open person and I welcome your comments ,Also Let me know if you have any questions.
Lots of Love to all tradingviewers and pineCoder ,Cheers!💚❤️💙
Trendmaster - Crypto Social Sentiment OscillatorWhat it is:
The Crypto Social Sentiment Oscillator looks at several social metrics for both Bitcoin and Ethereum more deeply than a simple Fear and Greed Indicator,
to produce a general market sentiment for cryptocurrency.
What it does:
Social Sentiment tries to gain insight into the current retail opinion and mindset on the Crypto sector.
Analyzing multiple social networks and the positive/negative posts and engagement throughout,
we can establish a broad overview of the underlying emotion in reaction and anticipation of price movement.
How to use it:
A value of 100 can indicate extreme market greed, with 0 indicating extreme fear.
Generally, the more Greedy a market is, the more it is punished to the downside.
The more Fearful a market is, the more it is surprised by the upside.
Scalping The Bull - BTC Chart for Trend AnalysisName: BTC Chart for Trend Analysis
Category: Scalping, Trend Analysis .
Timeframe: 1M, 5M, 30M, 1D depending on the specific technique.
Technical Analysis: The indicator supports the operations of the trader named "Scalping The Bull" who uses BTC as an Index for Crypto trading.
Suggested usage: When trading on altcoins, to check whether or not they are trending with Bitcoin and whether those anticipate its movements.
It is therefore possible to see Bitcoin specifically if it makes red or green candles and how it is positioned with respect to the EMA 5, 10, 60, 223, however configurable from the panel.
Used in conjunction with Scalping The Bull Indicator or PRO Indicator, on the main panel.
Configuration:
EMA Length:
- EMA 1: by default 5, configurable
- EMA 2: by default 10, configurable
- EMA 3: by default 60, configurable
- EMA 4: by default 223, configurable
Colors can be modified from "Settings" > "Style"
Designed to be used with the following the indicator:
BTC Europe-America-Asia market backgrounds - 1h max frameMarket indicator - Europe - America - Asia.
Based on my trading experience. Therefore, time zones are of different sizes.
BTC spot volumeIndicator with aggregated volume for all the most actively traded bitcoin spot markets.
Can be denominated in either US dollars or the number of coins traded.
Can be displayed as stacked volume or an index that shows the percentage market share each market has.
In the settings you can exclude any market so that it only shows the individual and total volume of the markets you're interested in.
The currency it's traded against is always specified (e.g. USDT, BUSD, ...).
It's public and free for anyone to use.
BTC perpetual swaps volumeIndicator with aggregated volume for all the most actively traded bitcoin perpetual swaps.
Can be denominated in either US dollars or the number of coins traded.
Can be displayed as stacked volume or an index that shows the percentage market share each contract has.
In the settings you can exclude any contract so that it only shows the individual and total volume of the markets you're interested in.
"Linear" or "inverse" refers to the type of perpetual swap contract it is.
Inverse contracts use coin margin, so in this case BTC.
Linear contracts use some type of dollar equivalent margin like USDT for example.
The margin is always specified for the linear contracts.
It's public and free for anyone to use.
Trendmaster - Crypto Collated Open Interest OscillatorThe Crypto Collated Open Interest Oscillator collates Open Interest for Crypto Futures
Across the Crypto Exchanges and updated on the Daily Timeframe.
This is then smoothed to be actionable when massive Green structure on the oscillator
shows potentially a top before dumping and massive Red structure on the oscillator
Auto Fibonacci Levels + Auto Trend Line generatorAnother indicator for you guys!!!
This indicator consists of the 5 key Fibonacci retracement levels, plotted automatically to user input settings. I also have included an auto support/resistance trend line generator.
What is a Fibonacci retracement?
'Fibonacci retracement is a method of technical analysis for determining support and resistance levels. It is named after the Fibonacci sequence of numbers, whose ratios provide price levels to which markets tend to retrace a portion of a move before a trend continues in the original direction.' - Wikipedia
How to use the Fibonacci retracement?
- The Fibonacci levels are default. These percentiles from price to the average of the high in a sample and low in a sample give you a guideline of where a bottom may be, where a top may be, and where a range is being created.
- Look for the price to reject from 61.8% and 76.4%, and also look for price to bounce from 38.2% and 23.6%. If a lower low/higher high is made, the fib levels will follow and the percentiles within will be recalculated after a 5 candle offset period.
- If you see price trending towards the lower percentiles (38&23) and using the 50% as resistance, look for a break downwards and vice versa.
-This Fibonacci set as all others is subject to fake-out, always use this with another series indicator, or don't use it as a signal for entry at all (unless you have a backdated strategy)
How to use the trend line generator?
-The trend line generator will only plot when a lower low/higher high has taken place within the input amount of candles. It is also offset by a user amount.
-The check box will give the option to have the trend line's plot or not.
- If you see a green/red dot it means that that will be your first coordinate for the trend line, and until the computations are complete it will give you an idea of which direction it will be in (resistance or support)
-When opening this indicator zoom out all the way to connect any trend lines that do not load automatically.
Let me know if you have any questions, suggestions or issues! Thank you everyone!
-Cheatcode1 :)
SP:SPX TVC:DXY BMFBOVESPA:EUR1! CME:BTC1! BINANCE:BTCUSDT