MTF Ichimoku Analysis[tanayroy]Ichimoku can state market conditions better than any indicator or group of indicators(My own perspective). Ichimoku works seamlessly in different timeframes. Analysis of Ichimoku in different timeframes can give you the bigger picture of the market.
This indicator analyzes six different timeframes with Ichimoku in depth. Default timeframes are 5M, 30M, 60M, D, W, and M. You can change the default timeframes from the setting.
As we are dealing with many relations, we can define the relationship with a simple score to get the trend strength.
Ichimoku Analysis:
Relationship of Price(P) with Ichimoku indicators: Here we are analyzing the current price and Ichimoku indicators. The position of price with respect to Ichimoku indicators states the market condition clearly.
Price(P) and Kumo(C): P > C = Bullish (↑). P < C = Bearish (↓). P <> C = consolidation or no trend(↔). Score: ±2
Price(P) and Tenkan Sen(T): P >= T = Bullish (↑). P < T = Bearish (↓). Score: ±0.5
Price(P) and Kijun Sen(K): P >= K = Bullish (↑). P < T = Bearish (↓). Score: ±0.5
Price(26 bars ago) and Chiku(L): L >= P(26) = Bullish (↑). L < P(26) = Bearish (↓). Score: ±0.5
Tenkan Sen and Kijun Sen Relation. Tenkan Sen depicts short-term trends and Kijun depicts mid-term trends. So this relationship is important for analyzing the current trend of the market.
Tenkan Sen(T) and Kijun Sen(K): T >= K = Bullish (↑). T < K = Bearish (↓). Score: ±2
Direction of Ichimoku indicators.
The direction of Ichimoku indicators helps us to understand the trend strength.
Tenkan Sen's(T) direction: Upward slope = Bullish (↑). Downward slope = Bearish (↓). Flat=consolidation or no trend(↔). Score: ±0.5
Kijun Sen's(K) direction: Upward slope = Bullish (↑). Downward slope = Bearish (↓). Flat=consolidation or no trend(↔). Score: ±0.5
Senkou A(A) direction: Upward slope = Bullish (↑). Downward slope = Bearish (↓). Flat=consolidation or no trend(↔). Score: ±0.5
Senkou B(A) direction: Upward slope = Bullish (↑). Downward slope = Bearish (↓). Flat=consolidation or no trend(↔). Score: ±0.5
Cloud and other Ichimoku indicators:
Kumo or Cloud is very important in the Ichimoku system. Analyzing its relation with other indicators is important to detect the overall market condition.
Kumo(C) and Tenkan Sen(T): T >= C = Bullish (↑). T < C = Bearish (↓). T <> C = consolidation or no trend(↔). Score: ±0.5
Kumo(C) and Kijun Sen(K): K >= C = Bullish (↑). K < C = Bearish (↓). K <> C = consolidation or no trend(↔). Score: ±0.5
Kumo(C) and Chiku(L): L >= C = Bullish (↑). L < C = Bearish (↓). L <> C = consolidation or no trend(↔). Score: ±0.5
Kumo(C) Shadow: By analyzing the last 252 bars(you can change this option) we are analyzing the Kumo shadow behind the current price. If Kumo shadow is present behind the price, trend strength will be weakened. Score: ±0.5
Kumo(C) Future (Senkou A(A) and Senkou B(B)): A >= B = Bullish (↑). A < B = Bearish (↓). Score: ±0.5
Chiku(L) Analysis:
Vertical and Horizontal Chiku analysis will tell us about the possible consolidation of the price.
Chiku Vertical: if the price consolidates for the next 5 bars(You can change this option) will it run into the price. Please remember we are placing the current price 26 bars ago and we are interested to see the current price in open space for a clear trend. Score: ±0.5
Chikou Horizontal: If Chiku is in open space (Not running into the price), we want to review Chiku vertically i.e how much percentage of fall or rise of the current price can cause Chiku to run into the price.
So, the maximum trend score is ±10.5.
Ichimoku signals:
We know, that the crossover of Ichimoku indicators provides important signals. In this section, you can see all the crossover i.e when they happened (Bars ago)
Distance between price and Tenkan Sen and Kijun Sen: We know, the price come back to Tenkan/Kijun if it goes far away from Tenkan/Kijun. So it is important to note the distance between Tenkan and Price.
Please note that this indicator is not a strategy or buy/sell signal. It just shows you the picture of Ichimoku in multiple timeframes. I am working on some strategies of Ichimoku and will publish the same when my research is complete.
If you want to analyze Ichimoku in a single timeframe, please review the following indicator.
To maintain the table size you can use the shorthand notation from the setting.
Table with detailed analysis:
Table with shorthand notation:
Please comment if you want any clarification or found any bugs to report.
Timeframe
SuperJump QQE MOD MTFThis is a QQE MOD MTF version.
Mihkel00 modified Glaz's script, I modified Mihkel00 's script again.
This is a QQE Mod original version by Mihkel00 :
I simply changed the above script to update pine script 5.0 and extracted two functions.
Thank you to the two authors for sharing such a great script.
Multi Timeframe Moving AveragesI made this script to keep an eye on most important timeframes (1h, 4h, D, W, M)) moving averages while watching another timeframe. You can select what Ma's you want to be shown for each timeframe and some options to help your analysis (show history, show prices on mouse over label, etc...)
It includes 3 MA's:
- Fast (EMA)
- Middle (SMA)
- Slow (SMA)
You can configure length, source and color for each one.
Also includes a daily VWAP and an option to show the previous day close.
This script includes code from user Frien_dd-DisDev. I am very grateful to him
Thank you for interest.
Pablo.
Multi-Timeframe (MTF) Dashboard by RiTzMulti-Timeframe Dashboard
Shows values of different Indiactors on Multiple-Timeframes for the selected script/symbol
VWAP : if LTP is trading above VWAP then Bullish else if LTP is trading below VWAP then Bearish.
ST(21,1) : if LTP is trading above Supertrend (21,1) then Bullish , else if LTP is trading below Supertrend (21,1) then Bearish.
ST(14,2) : if LTP is trading above Supertrend (14,2) then Bullish , else if LTP is trading below Supertrend (14,2) then Bearish.
ST(10,3) : if LTP is trading above Supertrend (10,3) then Bullish , else if LTP is trading below Supertrend (10,3) then Bearish.
RSI(14) : Shows value of RSI (14) for the current timeframe.
ADX : if ADX is > 75 and DI+ > DI- then "Bullish ++".
if ADX is < 75 but >50 and DI+ > DI- then "Bullish +".
if ADX is < 50 but > 25 and DI+ > DI- then "Bullish".
if ADX is above 75 and DI- > DI+ then "Bearish ++".
if ADX is < 75 but > 50 and DI- > DI+ then "Bearish+".
if ADX is < 50 but > 25 and DI- > DI+ then "Bearish".
if ADX is < 25 then "Neutral".
MACD : if MACD line is above Signal Line then "Bullish", else if MACD line is below Signal Line then "Bearish".
PH-PL : "< PH > PL" means LTP is trading between Previous Timeframes High(PH) & Previous Timeframes Low(PL) which indicates Rangebound-ness.
"> PH" means LTP is trading above Previous Timeframes High(PH) which indicates Bullish-ness.
"< PL" means LTP is trading below Previous Timeframes Low(PL) which indicates Bearish-ness.
Alligator : If Lips > Teeth > Jaw then Bullish.
If Lips < Teeth < Jaw then Bearish.
If Lips > Teeth and Teeth < Jaw then Neutral/Sleeping.
If Lips < Teeth and Teeth > Jaw then Neutral/Sleeping.
Settings :
Style settings :-
Dashboard Location: Location of the dashboard on the chart
Dashboard Size: Size of the dashboard on the chart
Bullish Cell Color: Select the color of cell whose value is showing Bullish-ness.
Bearish Cell Color: Select the color of cell whose value is showing Bearish-ness.
Neutral Cell Color: Select the color of cell whose value is showing Rangebound-ness.
Cell Transparency: Select Transparency of cell.
Column Settings :-
You can select which Indicators values should be displayed/hidden.
Timeframe Settings :-
You can select which timeframes values should be displayed/hidden.
Note :- I'm not a pro Developer/Coder , so if there are any mistakes or any suggestions for improvements in the code then do let me know!
Note :- Use in Live market , might show wrong values for timeframes other than current timeframe in closed market!!
MTF Custom Moving AveragesThis user-friendly indicator allows up to 8 moving averages ( EMA or SMA ) from any timeframe, on any time frame. There are plenty of other MTF MA indicators, each with their own pros and cons. I wanted to make one without the cons:
- Independently set each MA to Exponential or Simple
- No preset lengths
- No preset timeframes
- Optional labels to help keep track of the period/length/type of each plot
- Clean, intuitive input layout
- More than enough MAs available to use one indicator for several use cases... just check/uncheck the ones that are relevant to each chart
Watch for death crosses on the 4hr while monitoring the "Bull Market Support band" (Weekly 21 EMA and 20 SMA ) and checking the Monthly 10 EMA for major support or resistance. Toggle between half of the available MAs for long term BTC trends and use the others for your alts. Use this one indicator to support multiple strategies.
Please leave a comment if you find it useful or have suggestions!
Inspired by the first MTF indicator I found: Weekly Moving Average by TommyTompsen.
Multi-Timeframe 10XIMPORTANT NOTE:
-> The timeframe for this indicator must be set at 1 minute;
-> If the chart timeframe is higher than 1 minute, the results shown in the table for timeframes lower than the chart will not be correct;
-> Tradingview's own documentation explains this as follows: " It is not recommended to request data of a timeframe lower that the current chart timeframe, for example 1 minute data from a 5 minutes chart. The main problem with such a case is that some part of a 1 minute data will be inevitably lost, as it’s impossible to display it on a 5 minutes chart and not to break the time axis. In such cases the behavior of security can be rather unexpected "; and
-> It is therefore recommended that this indicator is placed in a standalone 1min chart window, and the window resized to only show the table to avoid any issues.
Credits:
-> J. Welles Wilder creating the Directional Movement System (DMS) (1978); and
-> John Carter applying the DMS to create the popular Simpler Trading 10X Bars indicator.
Introduction:
Quickly see the quality and strength of a trend based on Directional Movement Index (DMI).
The Average Directional Index (ADX), Minus Directional Indicator (-DI) and Plus Directional Indicator (+DI) represent a group of directional movement indicators that form a trading system developed by Welles Wilder. Although Wilder designed his Directional Movement System with commodities and daily prices in mind, these indicators can also be applied to stocks. Wilder determined directional movement by comparing the difference between two consecutive lows with the difference between their respective highs.
+DI and -DI are derived from smoothed averages of these differences and measure trend direction over time. These two indicators are often collectively referred to as the DMI. ADX is in turn derived from the smoothed averages of the difference between +DI and -DI; it measures the strength of the trend (regardless of direction) over time.
Trade Signals:
-> Green indicates an uptrend i.e. when +DI is above -DI and ADX is greater than 20 - there is more upward pressure than downward pressure in the price;
-> Red indicates a downtrend i.e. when -DI is above +DI and ADX is greater than 20 - there is more downward pressure on the price; and
-> Yellow indicates no strong directional trend and potential for a reversal.
Standalone Indicator:
The 10X Bars version of the indicator can be found here:
Multi-Timeframe TTM Squeeze Pro
IMPORTANT NOTE:
-> The timeframe for this indicator must be set at 1 minute;
-> If the chart timeframe is higher than 1 minute, the results shown in the table for timeframes lower than the chart will not be correct;
-> Tradingview's own documentation explains this as follows: " It is not recommended to request data of a timeframe lower that the current chart timeframe, for example 1 minute data from a 5 minutes chart. The main problem with such a case is that some part of a 1 minute data will be inevitably lost, as it’s impossible to display it on a 5 minutes chart and not to break the time axis. In such cases the behavior of security can be rather unexpected "; and
-> It is therefore recommended that this indicator is placed in a standalone 1min chart window, and the window resized to only show the table to avoid any issues.
Credits:
-> John Carter creating the TTM Squeeze and TTM Squeeze Pro
-> Lazybear's original interpretation of the TTM Squeeze: Squeeze Momentum Indicator
-> Makit0's evolution of Lazybear's script to factor in the TTM Squeeze Pro upgrades - Squeeze PRO Arrows
This is my version of their collective works, with amendments primarily to the Squeeze Conditions to more accurately reflect the color coding used by the official TMM Squeeze Pro indicator.
TTM Squeeze Guide
For those unfamiliar with the TTM Squeeze, it is simply a visual way of seeing how Bollinger Bands (standard deviations from a simple moving average ) relate to Keltner Channels ( average true range bands) compared with the momentum of the price action. The concept is that as Bollinger Bands compress within Keltner Channels , price volatility decreases, giving way for a potential explosive price movement up or down.
Differences between the original TTM Squeeze and TTM Squeeze Pro:
-> Both use a 2 standard deviation Bollinger Band ;
-> The original squeeze only used a 1.5 ATR Keltner Channel; and
-> The pro version uses 1.0, 1.5 and 2.0 ATR Keltner Channels .
The pro version therefore helps differentiate between levels of squeeze (compression) as the Bollinger Bands moves through the Keltner Channels i.e. the greater the compression, the more potential for explosive moves - less compression means more squeezing.
The Histogram shows price momentum whereas the colored dots (along the zeroline) show where the Bollinger Bands are in relation to the Keltner Channels:
-> Cyan Bars = positive, increasing momentum;
-> Blue Bars = positive, decreasing momentum (indication of a reversal in price direction);
-> Red Bars = negative, increasing momentum;
-> Yellow Bars = negative, decreasing momentum (indication of a reversal in price direction);
-> Orange Dots = High Compression / large squeeze (One or both of the Bollinger Bands is inside the 1st (1.0 ATR) Keltner Channel);
-> Red Dots = Medium Squeeze (One or both of the Bollinger Bands is inside the 2nd (1.5 ATR) Keltner Channel);
-> Black Dots = Low compression / wide squeeze (One or both of the Bollinger Bands is inside the 3rd (2.0 ATR) Keltner Channels );
-> Green Dots = No Squeeze / Squeeze Fired (One or both of the Bollinger Bands is outside of the 3rd (2.0 ATR) Keltner Channel).
Ideal Scenario:
As the ticker enters the squeeze, black dots would warn of the beginning of a low compression squeeze. As the Bollinger bands continue to constrict within the Keltner Channels , red dots would highlight a medium compression. As the price action and momentum continues to compress an orange dot shows warning of high compression. As price action leaves the squeeze, the coloring would reverse e.g. orange to red to black to green. Any compression squeeze is considered fired at the first green dot that appears.
Note: This is an ideal progression of the different types of squeezes, however any type of squeeze (and color sequence) may appear at anytime, therefore the focus is primarily on the green dots after any type of compression.
Entry and Exit Guide:
-> John Carter recommends entering a position after at least 5 black dots or wait for 1st green dot ; and
-> Exit on second blue or yellow bar or, alternatively, remain in the position after confirming a continuing trend through a separate indicator.
Standalone Indicator:
The indicator (which can be used on any timeframe) can be found here:
HTF Candles & PivotsThis indicator displays HTF candles and pivot points.
The candles are displayed in a box and you can select Open-Close, High-Low or both.
You can show all of the past, or just "today only" or "previous day only".
You can also shift one previous candle to the current one.
The pivot point is the normal one.
There is an option to display CPR (Central pivot range).
Example: Shift previous to current
Percentage Levels by TimeframePlots the positive and negative percentage levels from a selection of timeframes and sources for any ticker. You can use this within a pullback trading system. For example, if you historically look at the average pullback of large cap stocks and ETF's, you can use this indicator to plot the levels it could pullback to for an entry to go long. It can be used as potential targets when trading a ticker short. Another use for this is to backtest the set percentage targets using TradingView's bar replay feature to see how ETF's and large cap stocks have reacted at these levels. Note: This is intended to be used at timeframes equal to higher than the chart's as it may cause re-painting issues.
Currently percentage levels are statically set to 1, 3, 5, 10, 15, 20, 25, and 30% levels above and below the chosen source (open, high, low, close). You can also display the data based on timeframes from Daily (1D) all the way up to Yearly (12M)
*Not financial advice but in my opinion the current percentage levels set (see above) are best used for ETF's and Large Cap Stocks.
Jan 2
Release Notes: Added the ability to select the historical bars to look back when plotting levels
Jan 2
Release Notes: To get a better display or proper resolution on your charts, change the view settings to "Scale Price Chart Only"
Jan 2
Release Notes: To add % labels for this indicator on the price axis, change your chart settings to include "Indicator Name Label" & "Indicator Last Value". You can find this under the Label section after hitting the gear icon in the bottom right of your chart.
Jan 2
Release Notes: Added: Custom Line Plot Extension Settings. Ideally both values should be equal to display optimal extended lines. To return to a base setting: '1' = Historical Lookback & '0' = Offset Lines. Also note this is dependent on the timeframe you are viewing on the chart.
Jan 2
Release Notes: Removed indicator from example chart that was not needed.
Jan 2
Release Notes: Updated some comments in the Pine Script
Jan 2
Release Notes: Update: Added commentary and instructions in the indicator settings to address recommended line plot settings for Stocks/ETF's vs Futures
Jan 2
Release Notes: Changed title from "Calculation Method" to "Calculation Source"
Jan 4 2021
Normal use of security() dictates that it only be used at timeframes equal to or higher than the chart's as it may cause re-painting
Chimpanzee V2.5 part A by joylay83Hi everyone, I am an amateur pinecoder. I would like to share my script which is coded with the intention of generating signals to send to 3commas webhook. It is still in development and revision.
This collection of indicators use:
Chart: 15m.
Inverse Fisher Transformation of the RSI to detect dips in the 15m timeframe.
Bollinger band (4H) to filter out false signals.
Triple EMA 21: to mimic price action for easier coding alerts. Currently not involved in generating signals. will be incorporated in the future.
StochRSI: As a visual filter. Currently not involved in generating signals. will be incorporated in the future.
Background will be green if stochRSI is low and red if stockRSI is high.
Candlesticks will be marked with a flag is TEMA breached BB.
One would need to play around with timeframes, BB settings and IFTRSI threshold for different signals.
There are 2 Signal Modes (with regards to IFTRSI):
Threshold: When price action falls below BB and IFTRSI hits buy threshold, a buy/sell signal is generated. Eg if IFTRSI buy threshold is set to -0.9, the buy signal will remain continuously positive as long as IFTRSI is < 0.9.
Cross: When price action falls below BB and IFTRSI hits threshold, nothing happens. It will wait until the IFTRSI cross back over the threshold before firing a signal.
There is another identical set of indicators running on a higher time frame (IFTRSI: 4H, BB: D or 3D, TEMA 21 4H) but on the same chart. This tend to generate less signals but are more reliable. A usage example would be to send a larger buy order if the signal comes from this higher time frame, or execute a sell order after multiple buys from the lower time frame.
It comes in 2 parts:
Part A: Contains overlay display. This displays BB, Triple EMA, buy/sell and StochRSI in labels. the labels are self explanatory.
Part B (please search for it): which is actually the same code but contain non-overlay display. You may also put part B overlay=true but scale to LEFT. The advantage of using overlay=true is that you can move the signal right over the candlesticks (mainly for troubleshooting/debugging). This part contains Inverse Fisher RSI, %B, Signal Line. %B is supposedly idential to Bollinger Bands in Part A.
By default, when there is a buy/sell signal:
lower time frame 15m: Signal Line in Part B will turn blue with a value 1 or -1 which corresponds to a buy or sell label in Part A
higher time frame 4H: Signal Line in Part B will turn red with a value 2 or -2 which corresponds to a HTF buy or sell label in Part A
Part A or B may be used to send signal to the webhook. You have to make sure that the settings of Part A and B are identical.
You may choose to un-display some items to reduce clutter.
Current problems:
1. Still too many buy signals
Although many times it will generate excellent buy signal at many swing lows, but there are many buy signals prior to a major swing low. This can be observed in the picture above. It also generate a couple of buy signals prior to the swing lows. I am currently experimenting with 20m and hourly timeframe to address this issue. More filters are needed eg an oscillator or detecting candlestick patterns.
2. Premature sell signals.
The sell signal is often generated at the beginning of a major bull run. My idea to solve this problem is to move to a higher timeframe and sell only when TEMA crossunder the upper bollinger band.
3. Lack of a backtester that can test multiple concurrent deals.
Buy -> Buy (average down) -> Buy (average down) -> Buy (average down) -> Sell
4. Lack of the ability to calculate average purchase price
Probably have to code it as a strategy
5. Display lag
As the browser is running 2 copies of the idential script, it tends to lag when you drag your chart around. So far there are no timeouts or delay in firing alerts to 3commas.
I do welcome any suggestion for improvement and constructive criticism. tqvm.
Credits : Thank you for doing an awesome job. I learnt a lot from your codes and tutorials.
Credits not listed in any order. If your code is used here and did not receive due credit, kindly drop me a note. tq.
Blessing 3 by JTA Today
@ZenAndTheArtOfTrading (extremely-easy-to-understand tutorials eg fixing repainting)
@LazyBear (various codes)
@Galactus-B Argo I
@TheTradingParrot (Inverse Fisher RSI and Gavin's backtester)
@zendog123 (backtester and various codes)
@ydeniz2000 (Bollinger Bands)
TradingView built-in scripts
Volume-based Support & Resistance ZonesThe new and improved Support & Resistance Zones indicator is here. This indicator is based on high volume at fractal lows or fractal highs with the zones based on the size of the wick for that timeframe’s candle.
This helps traders visualize which price levels are of the most significance for either reversals or continuation of the trend when zones are broken and then re-tested.
Original script is thanks to synapticex and additional modifications is thanks to Lij_MC. Credit to both of them for most of the logic behind this script.
Since then I have made many changes to this script as noted below:
Changed default S/R lines from plots to lines, and gave option to user to change between solid line, dashed line, or dotted line for both S/R lines.
Added additional time frame and gave more TF options for TF1 other than current TF. Now you will have 4 time frames to plot S/R zones from.
Gave user option to easily change line thickness for all S/R lines.
Made it easier to change colors of S/R lines and zones by consolidating the options under settings (rather than under style).
Added extensions to active SR Zones to extend all the way right.
Added option to extend or not extend the previous S/R zones up to next S/R zone.
Added optional time frame labels to active S/R zones, with left and right options as well as option to adjust how far to the right label is set.
Fixed issue where the higher time frame S/R zone was not properly starting from the high/low of fractal. Now any higher time frame S/R will begin exactly at the High/Low points. Note that this may not work perfectly on stocks and if a fractal high/low is too many bars in the past, it will revert to a default max bars back to avoid script errors.
Added to script a function that will prevent S/R zones from lower time frames displaying while on a higher time frame. This helps clean up the chart quite a bit.
Created arrays for each time frame's boxes and lines so that the number of S/R zones can be controlled for each time frame and limit memory consumption.
New alert options added and customized alert messages.
- The way this indicator works is it looks for fractal highs or fractal lows with volume that pierces above the volume's Moving Average. This moving average value can be modified in the settings for each time frame.
- The fractal highs will be confirmed with 3 successive higher highs followed by 2 successive lower highs and vice versa for the fractal lows.
- The zone is created from the fractal high/low and the close of the candle for whatever time frame you selected. The bigger the zone, the more significant that zone is.
- You can disable any zone, change the zones to show lines only, and modify all the colors, transparencies, and thickness of lines for all the zones.
- To create alerts, you first want to enable the types of alerts you want for each time frame in the indicator's settings. Then after you apply changes, right click on one of the zones on the chart, and click "Add Alert on Vol S/R Zones". You do not need to add a title as the correct alert messages are already built-in.
- More changes will be coming in the future!
I hope you find this indicator useful, if so please give it a thumbs up!
If you have any suggestions or features you would like to see, just let me know in the comment section. Thanks and enjoy!
MTF RSI + Average (Multi-Timeframe) [TH]Multi-Timeframe Relative Strength Index --- MTF RSI
Eliminates having to change time intervals to view a different Time Interval's RSI value (up to 5 time intervals possible through the settings).
The RSI values from Multiple Time Frames can be averaged together to show one single RSI.
A table overlay (info box) makes it easy to quickly identify RSI values on the multiple different time frames.
Multi-timeframe Stochastic RSIThe multi-timeframe stochastic RSI utilizes stochastic RSI signals from 11 different time-frames to indicate whether overbought/oversold signals are in agreement or not across time-frames. Ideally traders should enter and exit when conditions are in agreement as indicated by the intensity of the long (green) or short (red) bands at the top and bottom of the indicator. The intensity of the bands indicates how many of the time-frames are currently overbought/oversold.
EMA Levels, Multi-TimeframeThe exponential moving average (EMA) tracks price over time, giving more importance to recent price data than simple moving average (SMA). EMAs for larger timeframes are generally considered to be stronger supports/resistances for price to move through than smaller timeframes. This indicator allows you to specify two different EMA lengths that you want to track. Additionally, this indicator allows you to display not just the EMA levels of your currently viewed timeframe on the chart, but also shows the EMA levels of up to 4 different timeframes on the same chart. This allows you to quickly see if multiple EMA levels are aligning across different timeframes, which is an even stronger indication that price is going to meet support or resistance when it meets those levels on the chart. There are a lot of nice configuration options, like:
Ability to customize the EMA lengths you want to track
Style customization (color, thickness, size)
Hide any timeframes/levels you aren't interested in
Labels on the chart so you can tell which plots are the EMA levels
Optionally display the plot as a horizontal line if all you care about is the EMA level right now
RSI Levels, Multi-TimeframeThe relative strength index (RSI) is a momentum indicator that measures the magnitude of recent price changes to evaluate overbought or oversold conditions. RSI is normally displayed as an oscillator separately from price and can have a reading from 0 to 100. This indicator takes the RSI and plots the 30 & 70 levels onto the price chart so you can see when price is going to meet the 30 or 70 levels. The reason the 30 & 70 levels are important is because many traders (and bots) use those as signals to buy (at 30 RSI) or sell (at 70 RSI). Additionally, this indicator allows you to display not just the RSI levels of your currently viewed timeframe on the chart, but also shows the RSI levels of up to 6 different timeframes on the same chart. This allows you to quickly see if multiple RSI levels are aligning across different timelines, which is an even stronger indication that price is going to change direction when it meets those levels on the chart. There are a lot of nice configuration options, like:
Style customization (color, thickness, size)
Labels on the chart so you can tell which plots are the RSI levels
Optionally display the plot as a horizontal line if all you care about is the RSI level right now
Toggle overbought (RSI 70) or oversold (RSI 30) on/off completely
ConverterTFLibrary "ConverterTF"
I have found a bug Regarding the timeframe display, on the chart I have found that the display is numeric, for example 4Hr timeframe instead of '4H', but it turns out to be '240', which I want it to be displayed in abbreviated form. And in all other timeframes it's the same. So this library was created to solve those problems. It converts a timeframe from a numeric string type to an integer type by selecting a timeframe manually and displaying it on the chart.
CTF()
str = "240"
X.GetTF( str )
Example
str = input.timeframe(title='Time frame', defval='240')
TimeF = CTF(str)
L=label.new(bar_index, high, 'Before>> Timeframe '+str+' After>> Timeframe '+TimeF,style=label.style_label_down,size=size.large)
label.delete(L )
Custom timeframes can handle this issue as well.
An example from the use. You will find it on the bottom right hand side.
Hopefully it will be helpful to the Tradingview community. :)
Last Available Bar InfoLibrary "Last_Available_Bar_Info"
getLastBarTimeStamp()
getAvailableBars()
This simple library is built with an aim of getting the last available bar information for the chart. This returns a constant value that doesn't change on bar change.
For backtesting with accurate results on non standard charts, it will be helpful. (Especially if you are using non standard charts like Renko Chart).
Methods
getLastBarTimeStamp()
: Returns Timestamp of the last available bar (Constant)
getAvailableBars()
:Returns Number of Available Bars on the chart (Constant)
Example
import paragjyoti2012/Last_Available_Bar_Info/v1 as LastBarInfo
last_bar_timestamp=LastBarInfo.getLastBarTimeStamp()
no_of_bars=LastBarInfo.getAvailableBars()
If you are using Renko Charts, for backtesting, it's necesary to filter out the historical bars that are not of this timeframe.
In Renko charts, once the available bars of the current timeframe (based on your Tradingview active plan) are exhausted,
previous bars are filled in with historical bars of higher timeframe. Which is detrimental for backtesting, and it leads to unrealistic results.
To get the actual number of bars available of that timeframe, you should use this security function to get the timestamp for the last (real) bar available.
tf=timeframe.period
real_available_bars = request.security(syminfo.ticker, tf , LastBarInfo.getAvailableBars() , lookahead = barmerge.lookahead_off)
last_available_bar_timestamp = request.security(syminfo.ticker, tf , LastBarInfo.getLastBarTimeStamp() , lookahead = barmerge.lookahead_off)
Shade a particular timeframe x3This is to help you shade 3 different time frames, its showing 3 different timeframes. This will help you determine if you are trading in the right time frame that you want to. It is set to default to Eastern time frame. the default setting are set for 1700-0100, 0100-0600 and 0600-1000. You can change the time frames to which ever you would like to trade. This helps the visual learners to recognize which time frame they are trading in.
RM Timeframe ContinuityThis indicator plots a table off to the right of the chart to help with determining timeframe continuity. Per the Strat, a great edge is only taking trades where full timeframe continuity is in place (i.e. if you are going long, make sure other timeframes are also green).
In this script:
Green candles have green colored boxes, red candles have red colored boxes.
Inside bars are represented by a circle - ⬤
Outside bars are represented by a tall rectangle - ▮
2-up bars are indicated by an up arrow - ▲
2-down bars are indicated by a down arrow - ▼
User defined options:
Pick any timeframe for the 4 boxes
Choose whether to plot the highs/lows of the larger timeframe candles as horizontal rays on your chart (along with the associated colors)
RSI Multi TF strategy
The RSI is a very popular indicator that follows price activity.
It calculates an average of the positive net changes, and an average
of the negative net changes in the most recent bars, and it determines
the ratio between these averages. The result is expressed as a number
between 0 and 100. Commonly it is said that if the RSI has a low value,
for example, 30 or under, the symbol is oversold. And if the RSI has a
high value, 70 for example, the symbol is overbought.
Plots 3 RSI (Weekly, Daily, 4h) at the same time, regardless of the Chart Timeframe.
Highlights in green (or red) if all RSI is oversold (or overbought).
Can trigger custom oversold and overbought alerts when all 3 lines grey(4h), yellow(weekly), and red(daily) go in the oversold or overbought zone. The strongest the curves break the barrier the strongest the alert (vertical red and green bars) shows.
watermarkA little indicator to show what pair your chart is presenting so people can easily see what they are dealing with
you can also put your signature beside it so you can be easily recognizable.
MTF DPO-RSI IndicatorThis indicator uses the principle of taking the RSI of DPO readings across multiple time frames in order to provide trade signals and an overarching view of market conditions to the trader. My hope with creating this indicator was to present more divergence based signals than your typical indicator, while still keeping those signals at a high quality.
In the settings menu, you may specify:
Indicator Timeframe - the chart resolution that is used to calculate values.
Source DPO Length - the number of bars used to calculate the Detrended Price Oscillator value. The DPO value is the source for the RSI calculations.
DPO Hull Smoothing - how much smoothing is applied to the DPO . Smoothing is accomplished by taking a Hull Moving Average of the closing price, and using this to calculate the DPO value.
RSI Length - the number of bars used to calculate the RSI of the DPO value.
Time Multipliers 1 through 6 - use this to define what resolution each plot will represent. A value of 1 will represent the current Indicator Timeframe. A value of 3 will represent 3 times the current Indicator Timeframe, etc.
Show Plot 1 through 6 - toggles the display of plots.
How I trade with this indicator:
A value of under 30 represents an over sold state for that particular plot. A value of over 70 represents an overbought state for that plot.
Identify divergences on a lower timeframe plot which are apparent in overbought or oversold conditions, and confirm the signal with an overbought or oversold condition, or a divergence on a higher timeframe plot. Divergences which begin in oversold or overbought territory and end inside the 30-70 range tend to be more reliable signals, in my experience. Like all indicators, this is best when used in conjunction with other indicators. Trend indicators, such as double EMA's and Supertrend are my favorite pairing, and a stochastic RSI is a good tool to have as well.
This is my first published indicator! If you find unique ways to use it, drop me a message. I'd love to know what you find. :)
Indicator: SMA/EMA (Multi timeframes)This moving average indicator will plot the SMA or EMA sourced from a different timeframe on the current chart.
Applications:
Say you are viewing an hourly chart but you also want to know the ema20 sourced from a higher timeframe (i.e daily) of the same security. The problem with using most built-in indicators is that the MA values are usually calculated from the current chart, so to do that, you will have to toggle between 1h/1D. This script will eliminate this hassle by plotting out the desired alternative timeframe on the same chart.
Dynamic settings
By default the alternative timeframe is 1D, but this can be customized further:
- 1 week chart -> plots out 1 month MA
- 1 day chart -> plots out 1 week MA
- 1 hour chart -> plots out 1 day MA