Multi Yield CurveAn inversion between the 2 year and 10 year US treasury yield generally means a recession within 2 years. But the yield curve has more to it than that. This script helps analysis of the current and past yield curve (not limited to US treasury) and is very configurable.
"A yield curve is a line that plots yields (interest rates) of bonds having equal credit quality but differing maturity dates. The slope of the yield curve gives an idea of future interest rate changes and economic activity." (Investopedia)
When the slope is upward (longer maturity bonds have a higher interest rate than shorter maturity bonds), it generally means the economy is doing well and is expanding. When the slope is downward it generally means that there is more downside risk in the future.
The more inverted the curve is, and the more the inversion moves to the front, the more market participants are hedging against downside risk in the future.
The script draws up to 4 moments of a yield curve, which makes it easy to compare the current yield curve with past yield curves. It also draws lines in red when that part of the curve is inverted.
The script draws the lines with proper length between maturity (which most scripts do not) in order to make it more representative of the real maturity duration. The width cannot be scaled because TradingView does not allow drawing based on pixels.
This script is the only free script at time of writing with proper lengths, showing multiple yield curves, and being able to show yield curves other than the US treasury.
█ CONFIGURATION
(The following can be configured by clicking "Settings" when the script is added to a chart)
By default the script is configured to show the US treasury (government bond) yields of all maturities, but it can be configured for any yield curve.
A ticker represents yield data for a specific maturity of a bond.
To configure different tickers, go to the "TICKERS" section. Tickers in this section must be ordered from low maturity to high maturity.
• Enable: draw the ticker on the chart.
• Ticker: ticker symbol on TradingView to fetch data for.
• Months: amount of months of bond maturity the ticker represents.
To configure general settings, go to the "GENERAL" section.
• Period: used for calculating how far back to look for data for past yield curve lines. See "Times back" further in this description for more info.
• Min spacing: minimum amount of spacing between labels. Depending on the size of the screen, value labels can overlap. This setting sets how much empty space there must be between labels.
• Value format: how the value at that part of the line should be written on the label. For example, 0.000 means the value will have 3 digits precision.
To configure line settings per yield curve, each has its own "LINE" section with the line number after it.
• Enable: whether to enable drawing of this line.
• Times back: how many times period to go back in time. When period is D, and times value is 2, the line will be of data from 2 days ago.
• Color: color of the line when not inverted.
• Style: style of the line. Possible values: sol, dsh, dot
• Inversion color: color of the line when the curve inverses between the two maturities at that part of the curve.
• Thickness: thickness of the line in pixels.
• Labels: whether to draw value labels above the line. By default, this is only enabled for the first line.
• Label text color: text color of value label.
• Label background color: background color of value label.
To configure the durations axis at the bottom of the chart, go to the "DURATIONS" section.
• Durations: whether to show maturity term duration labels below the chart.
• Offset: amount to offset durations label to be below chart.
█ MISC
Script originally inspired by the US Treasury Yield Curve script by @longfiat but has been completely rewritten and changed.
Multitimeframe
AfterHours Spike DetectorThe script pulls Lower Timeframe (30min) data to draw High/Low of Out-of-hours/AfterHours session (post-market session & next day pre-market session) on the Daily regular session chart. It then identifies significant AfterHours price changes and what happens to these price Spikes by the Open of the next day regular session.
You can change:
wether to show AfterHours High/Lows
wether to show AfterHours price Spikes
the AfterHours price Spike threshold (default = +/- 10%)
MTF VWAP & StDev BandsMulti Timeframe Volume Weighted Average Price with Standard Deviation Bands
I used the script "Koalafied VWAP D/W/M/Q/Y" by Koalafied_3 and made some changes, such as adding more standard deviation bands.
The script can display the daily, weekly, monthly, quarterly and yearly VWAP.
Standard deviation bands values can be changed (default values are 0.618, 1, 1.618, 2, 2.618, 3).
Also the previous standard deviation bands can be displayed.
OHLC MTFThe script allows you to plot the opening, highest, lowest and closing (ohlc) values of a previous candle.
Settings :
- "Time Frame" : allows you to choose the reference time frame;
- "Offset" : sets which candle to select the data from.
Ex : If you select "1 day" as the time frame and "1" as the offset, the OHLC values of yesterday's daily candle will be displayed (regardless of your current time frame).
R19 STRATEGYHello again.
Let me introduce you R19 Strategy I wrote for mostly BTC long/short signals
This is an upgrated version of STRATEGY R18 F BTC strategy.
I checked this strategy on different timeframes and different assest and found it very usefull for BTC 1 Hour and 5 minutes chart.
Strategy is basically takes BTC/USDT as a main indicator, so you can apply this strategy to all cryptocurrencies as they mostly acts accordingly with BTC itself (Of course you can change main indicator to different assets if you think that there is a positive corelation with. i.e. for BTC signals you can sellect DXY index for main indicator to act for BTC long/short signals)
Default variables of the inticator is calibrated to BTC/USDT 5 minute chart. I gained above %77 success.
Strategy simply uses, ADX, MACD, SMA, Fibo, RSI combination and opens positions accordingly. Timeframe variable is very important that, strategy decides according the timeframe you've sellected but acts within the timeframe in the chart. For example, if you're on the 5 minutes chart, but you've selected 1 hour for the time frame variable, strategy looks for 1 hour MACD crossover for opening a position, but this happens in 5 minutes candle, It acts quickly and opens the position.
Strategy also uses a trailing stop loss feature. You can determine max stoploss, at which point trailing starts and at which distance trailing follows. The green and red lines will show your stoploss levels according to the position strategy enters (green for long, red for short stop loss levels). When price exceeds to the certaing levels of success, stop loss goes with the profitable price (this means, when strategy opens a position, you can put your stop loss to the green/red line in actual trading)
You can fine tune strategy to all assets.
Please write down your comments if you get more successfull about different time zones and different assets. And please tell me your fine tuning levels of this strategy as well.
See you all.
Multiple Moving Avg MTF TableThis script replaces the other script that was just the SMAs that where in a Multi Time Frame Table as this was a redo of that one and this one is SO MUCH MORE!!!!
Not only does this one do the Simple Moving Avg 5, 10, 20, 50, 120, 200 into a table that shows Current/Hourly/Daily/Weekly/Monthly/Quarterly ( 3M )/ Yearly. It now does Exponential Moving Avg , Weighted Moving Avg , and Volume Weight Moving Avg along with Simple Moving Avg.
I still use this script so that you can quickly capture the values so that short-term, and long-term resistance and support can be determined during market hours. Even better now you can select between SMA / EMA / WMA /or VWMA .
imgur.com
The table will change to the values based on the Choice of the type of Moving Avg and if you change the default values.
Now it will take a little bit for the table to show up, so please be patient. I have tested it with stocks, forex, and crypto.
Gate Signal by Market yogiThis indicator is made by Nischay Rana (Market Yogi)
How to use this Indicator
This is simple group of 8 moving averages, which can be configured in various ways according to your trading requirement.
1. moving average ribbon
2.moving average channel
3.moving average gate signal
4.This indicator has bonus indicator of bollinger bands inbuilt.
Logic:
As price has tendency to get closer to their moving averages. The logic behind this indicator is to use the contraction and expansion concepts of moving averages to find best entry exit points.
This nature of Price action is use to capture the big move after the convergence of all moving averages.
CAUTION : Do not blindly trade the gates as gate has tendency to break out on either side. So use this indicator in confluence with price action and other technical analysis to capture bigger moves.
Higher the gate width more gates are found. Similarly lesser the gate width less gate are found. i.e. Tight squeeze of all the moving averages.
"ENJOY HAPPY TRADING.."
Truly Yours Market Yogi
Regression Channel Alternative MTF█ OVERVIEW
This indicator displays 3 timeframes of parallel channel using linear regression calculation to assist manual drawing of chart patterns.
This indicator is not true Multi Timeframe (MTF) but considered as Alternative MTF which calculate 100 bars for Primary MTF, can be refer from provided line helper.
The timeframe scenarios are defined based on Position, Swing and Intraday Trader.
█ INSPIRATIONS
These timeframe scenarios are defined based on Harmonic Trading : Volume Three written by Scott M Carney.
By applying channel on each timeframe, MW or ABCD patterns can be easily identified manually.
This can also be applied on other chart patterns.
█ CREDITS
Scott M Carney, Harmonic Trading : Volume Three (Reaction vs. Reversal)
█ TIMEFRAME EXPLAINED
Higher / Distal : The (next) longer or larger comparative timeframe after primary pattern has been identified.
Primary / Clear : Timeframe that possess the clearest pattern structure.
Lower / Proximate : The (next) shorter timeframe after primary pattern has been identified.
Lowest : Check primary timeframe as main reference.
█ EXAMPLE OF USAGE / EXPLAINATION
Timed AlertTradingView doesn't offer a way easily set timed alerts. This script solves that problem and also allows you to set variables in the script similar to other alerts.
The variables can be found here .
[Any Timeframe]-Homerun3 line strike - Basic chart pattern identification (Script code is now open to anyone to view)
-Plots on the chart for you (the visual experience is their for the end user. They can see ‘why’ item plotted)
i.e; patterns identified
Bullish
Why = Green candle + Green candle + Green candle + Red candle
Bearish
Why = Red candle + Red candle + Red candle + Green candle
-Dynamic alerts
What’s this for
Why = Chats gets updated when end of current real-time candle and plots on the chart if pattern found. You can setup TradingView alerts to specific plots on the chart (i.e; then it can notify you via normal website alert methods)
NOTE;
thinking of adding to this chart
-table of patterns found for that day
-more user input fields
-script modularity (easy plugin new code without interfering with anything already their)
MultiMA-v5 - Multiple Moving Average indicatorsMultiple Moving Average indicators (MultiMA)
This script is drawing several Moving Average (MA) indicators for different lengths and timeframes in the main chart pane.
MultiMA can be controlled as a single entity, which makes it very comfortable and space saving tool.
Each particular MA graph can be enabled or disabled and also marked with the corresponding text label.
MultiMA includes EMA (Exponential Moving Average) and SMA (Simple Moving Average).
The list of the lengths/timeframes are:
1) both EMA and SMA:
for 1 hour, 4 hours, 1 day, 1 week timeframes and
for 20, 50, 100 and 200 lengths.
(excluding EMA/SMA 200 1 hour as they overlap with EMA/SMA 50 4 hours)
2) EMA only:
1 minute 33, 84, 163 lengths,
5 minutes 50, 84, 115, 144, 163 lengths,
30 minutes 84, 163 lengths.
SMA Multi Time Frame Table V1.5Since I couldn't find a script like this I made one so here is what it does.
The script will plot on the chart as well as post the related data into the table.
The default Simple Moving Avg are 5, 10, 20, 50, 120, 200 which can also be changed to whatever SMA you would like. The SMA values are then plotted on the charts so that quickly check to see where they are and how the candles are reacting to the SMAs.
Not only does the script plot the SMAs but it also places higher time frames into the table that is in the script, from current price, to daily, weekly, monthly, quarterly (3 months if you don't have it added) and yearly. The reason why was it price action of the stock does interact and can be rejected or find support from SMA on a higher time frames.
I still use this script so that you can quickly capture the values so that short-term, and long-term resistance and support can be determined during market hours.
Another good thing is that when you change the values in the script settings it also applies those settings to the table as well.
Now it will take a little bit for the table to show up, so please be patient. I have tested it with stocks, forex, and crypto.
I wanted to get this published and I am still working on the background to try and get EMAs. Where you can flip over to EMA to also see the EMA plots and table values for the MTF.
Trend Momentum Divergence (TMD)Shout out to Lazy Bear, Bunghole, and Trading View for script code for this make.
In this study you will have a visual representation of the strength and momentum of a trend and possibilities of where the market is heading. You can use the Blue and White momentum waves to spot divergences in a up oe down trend for potential reversals. When a green dot appears under the lower level with divergence then it is a indication that we should consider looking to buy. If the red dot appears over the upper level with divergence we should be looking to short/sell. The custom MFI indicator determines how much money is flowing into the market. If it is green that means money is flowing into the market and if it shows red it means that money is flowing out of the market. You can spot divergences in the money flow as well as the RSI. The Blue and Green lines from the RCI3line indicator are used for higher timeframe momentum based on current chart timeframe and we can see when they cross over.
MTF Phoenix TableThis is a MTF heatmap companion for the Phoenix Ascending indicator by WyckoffMode. It aims to make MTF analysis easier at a quick glance.
The row headings are color coordinated for easy visual recognition.
EPS Surprise (Working)Plots the EPS surprise between reported and estimate.
* This is a working version of the old EPS Surprise indicator here that seems to have been abandoned.
HTS-Ichimoku CloudAdd more a Longline into the basic ichimoku in order to see the support or assistant especially when the price is outside of cloud.
EMA Mountains Use this to track the daily moving avg's on the 15m chart.
by default it is set to be used on ext hours.
+ Multi-timeframe Multiple Moving Average LinesThis is a pretty simple script that plots lines for various moving averages (what I think are the most commonly used across all markets) of varying lengths of timeframes of the user's choosing. Timeframes range from 5 minutes up to one month, so regardless if you're a scalper or a swing trader there should be something here for you.
There are 8 lines (that can be turned on/off individually), which may seem like a lot, but if you use two averages and want to display four different timeframes for each, you can do that. The nice thing is that because the lines start plotting from the current bar they won't clutter up the screen. And obviously having moving averages from different timeframes on your chart makes price action more difficult to read (I mean sure, you can make them invisible, but who wants to do that all the time).
For each line there are two labels. One with the moving average type, and the other with its specific timeframe. I can't include the moving average length because it's not a string input. If anyone has a workaround for this, let me know, otherwise I would simply recommend setting different colors depending on the length, or if you only use one or two lengths and one or two moving averages this shouldn't be an issue. I had to use two labels because for the label text I couldn't include more than one string input, this is why there is an input for the 'moving average type label distance.'' You will want to adjust this depending on if you are trading crypto, futures, or forex because in some cases there may still be label overlap.
Pretty much everything else is self-explanatory.
I've added alerts. I might need to modify them if I can, because it would be nice for them to state the name and timeframe of the moving average. But I think this will do for now.
Enjoy!
Daily SMA In Lower Timeframe public versionThis script aims to provide the daily SMAs (50,100,200) in lower time frames, but ONLY if current price is less than 5% away from it (public code version)
itrade buy/sellThe indicator was written based on several types of other indicators.
I took ema, rsi ema and an augmented version of qqe rsi.
The indicator checks for oversold or overbought on all of these indicators and, based on this, issues a buy or sell signal.
In the indicator, you can adjust the length of each point for yourself, so you can set rsi to 10 or 100, as it suits you.
The indicator works better on higher timeframes 4h-1w
But it can also be used on smaller timeframes, but the lower the timeframe, the higher the risk.
_________________________________________________________________________________________________________
Индикатор был написан на основе нескольких видов других индикаторов.
Я взял ema,rsi ema идополненую версию qqe rsi.
Индикатор проверяет перепроданость или перекупленость на этих всех индикаторах и изходя из этого выдаёт сигнал на покупку или продажу.
В индикаторе можно настроить длинну каждого пункта под себя,так вы можете поставить rsi на 10 или же на 100,как вам будет удобно.
Индикатор работает лучше на больших таймфреймах 4ч-1w
Но так же его можно использовать на более мелких таймфреймах,но чем ниже таймфрейм,тем выше риск.
Heiken Ashi All TFI have always fighted to understand the market direction because it looks different on different timeframes.
I wanted an indicator where I can see all the different timeframes at once.
This indicator shows the Heiken Ashi candle colors for different time frames at once.
Use it on the 5 Minute timeframe.
4 colors:
dark green: bullis green HA candle with no low shadow.
green: green HA candle.
red: red HA candle
datk red: bearish red HA candle with non existing upper shadow.
the timeframes are by default:
5m 15m 30m 1H 4H 1D
can be adjusted if needed.
signals:
in the top line the Buy / Shell Signals are shown when the selected timeframes are all changed.
for example after a buy signal a sell signal will be printend when all the selected timeframes are turned into red or dark red.
Do not use it as a tranding signal, us it for confirmation.
It doesn't predict. it shows the market's current state.
Don't forget that the latest candles are based on the current value. The higher timeframe candle color depends on the current price.
If the higher timeframe close price so different that the HA candle color changes it reprins for all the affected 5m dots.
[MAD] CMF 5x MTF BTCthis is a revised classic CMF indicator, with some additional features
Features:
4 different Exchanges:Tickers (clouds).
your current exchanges:ticker (white)
an averaged cmf over all 5 tickers (black)
a selectable time frame for all tickers
3 buy and 3 sell lines (visual H-lines only)
autocentering over ghosts
color scheme is for a dark theme, change in settings if needed.
how to use:
act the crossins
when one or two cmfs move steeply into an h-line, when moving back to the middle they have their signal and do their own risk management.
sometimes really crazy things happen in small time frames (whalegames) that you can use as a tradestop and sit it out.
generally try to go with a bigger trend that give less but better results
Chart gain/lossis not my code actually its a example in
Pine Script™ and charts become better acquainted
becaus is can useful and it unpublished i just publish that without any channges
As a trader scrolls or zooms on their chart – causing the range of visible bars on the chart to change – scripts using either of these new built-ins will automatically re-execute so that calculations and visuals can adapt to the new context. This opens the door to a whole new variety of scripts that dynamically adjust to changes in the range of visible bars.
This indicator draws an arrow from the open of the first visible bar to the close of the last, and shows the gain/loss for that range