MTF SwingSwiss - Premium@panthair9, a SwingSwiss user, asked me to develop this script based on the two SwingSwiss crosses.
The indicator shows in real-time how the other timeframes are trading the asset.
It's pretty useful to know that the higher timeframes are also trading your way as it limits your risk (because you are trading the right trend)
You can choose up to five timeframes and style the lines and colored blocks 😃
There is one line per timeframe and whenever the green cross appears on the timeframe, it will get updated into the line as well !! I love the thing, thanks again @panthair9 ❤️
PS:
Dear SwingSwiss community, I am really trying to build the best indicator out there!
If you feel like I could improve the indicator in any way, just ask!
I'll do my best to make your dream indicator come true 🙌
Have A Great Day
Dan
Cari dalam skrip untuk "mtf"
MTF Oscillator Framework [PineCoders]This framework allows Pine coders to quickly build a complete multi-timeframe oscillator from any calculation producing values around a centerline, whether the values are bounded or not. Insert your calculation in the script and you have a ready-to-publish MTF Oscillator offering a plethora of presentation options and features.
█ HOW TO USE THE FRAMEWORK
1 — Insert your calculation in the `f_signal()` function at the top of the "Helper Functions" section of the script.
2 — Change the script's name in the `study()` declaration statement and the `alertcondition()` text in the last part of the "Plots" section.
3 — Adapt the default value used to initialize the CENTERLINE constant in the script's "Constants" section.
4 — If you want to publish the script, copy/paste the following description in your new publication's description and replace the "OVERVIEW" section with a description of your calculations.
5 — Voilà!
═════════════════════════════════════════════════════════════════════════
█ OVERVIEW
This oscillator calculates a directional value of True Range. When a bar is up, the positive value of True Range is used. A negative value is used when the bar is down. When there is no movement during the bar, a zero value is generated, even if True Range is different than zero. Because the unit of measure of True Range is price, the oscillator is unbounded (it does not have fixed upper/lower bounds).
True Range can be used as a metric for volatility, but by using a signed value, this oscillator will show the directional bias of progressively increasing/decreasing volatility, which can make it more useful than an always positive value of True Range.
The True Range calculation appeared for the first time in J. Welles Wilder's New Concepts in Technical Trading Systems book published in 1978. Wilder's objective was to provide a reliable measure of the effective movement—or range—between two bars, to measure volatility. True Range is also the building block used to calculate ATR (Average True Range), which calculates the average of True Range values over a given period using the `rma` averaging method—the same used in the calculation of another of Wilder's remarkable creations: RSI.
█ CONCEPTS
This oscillator's design stems from a few key concepts.
Relative Levels
Other than the centerline, relative rather than absolute levels are used to identify levels of interest. Accordingly, no fixed levels correspond to overbought/oversold conditions. Relative levels of interest are identified using:
• A Donchian channel (historical highs/lows).
• The oscillator's position relative to higher timeframe values.
• Oscillator levels following points in time where a divergence is identified.
Higher timeframes
Two progressively higher timeframes are used to calculate larger-context values for the oscillator. The rationale underlying the use of timeframes higher than the chart's is that, while they change less frequently than the values calculated at the chart's resolution, they are more meaningful because more work (trader activity) is required to calculate them. Combining the immediacy of values calculated at the chart's resolution to higher timeframe values achieves a compromise between responsiveness and reliability.
Divergences as points of interest rather than directional clues
A very simple interpretation of what constitutes a divergence is used. A divergence is defined as a discrepancy between any bar's direction and the direction of the signal line on that same bar. No attempt is made to attribute a directional bias to divergences when they occur. Instead, the oscillator's level is saved and subsequent movement of the oscillator relative to the saved level is what determines the bullish/bearish state of the oscillator.
Conservative coloring scheme
Several additive coloring conditions allow the bull/bear coloring of the oscillator's main line to be restricted to specific areas meeting all the selected conditions. The concept is built on the premise that most of the time, an oscillator's value should be viewed as mere noise, and that somewhat like price, it only occasionally conveys actionable information.
█ FEATURES
Plots
• Three lines can be plotted. They are named Main line , Line 2 and Line 3 . You decide which calculation to use for each line:
• The oscillator's value at the chart's resolution.
• The oscillator's value at a medium timeframe higher than the chart's resolution.
• The oscillator's value at the highest timeframe.
• An aggregate line calculated using a weighed average of the three previous lines (see the Aggregate Weights section of Inputs to configure the weights).
• The coloring conditions, divergence levels and the Hi/Lo channel always apply to the Main line, whichever calculation you decide to use for it.
• The color of lines 2 and 3 are fixed but can be set in the "Colors" section of Inputs.
• You can change the thickness of each line.
• When the aggregate line is displayed, higher timeframe values are only used in its calculation when they become available in the chart's history,
otherwise the aggregate line would appear much later on the chart. To indicate when each higher timeframe value becomes available,
a small label appears near the centerline.
• Divergences can be shown as small dots on the centerline.
• Divergence levels can be shown. The level and fill are determined by the oscillator's position relative to the last saved divergence level.
• Bull/bear markers can be displayed. They occur whenever a new bull/bear state is determined by the "Main Line Coloring Conditions".
• The Hi/Lo (Donchian) channel can be displayed, and its period defined.
• The background can display the state of any one of 11 different conditions.
• The resolutions used for the higher timeframes can be displayed to the right of the last bar's value.
• Four key values are always displayed in the Data Window (fourth icon down to the right of your chart):
oscillator values for the chart, medium and highest timeframes, and the oscillator's instant value before it is averaged.
Main Line Coloring Conditions
• Nine different conditions can be selected to determine the bull/bear coloring of the main line. All conditions set to "ON" must be met to determine the bull/bear state.
• A volatility state can also be used to filter the conditions.
• When the coloring conditions and the filter do not allow for a bull/bear state to be determined, the neutral color is used.
Signal
• Seven different averages can be used to calculate the average of the oscillator's value.
• The average's period can be set. A period of one will show the instant value of the oscillator,
provided you don't use linear regression or the Hull MA as they do not work with a period of one.
• An external signal can be used as the oscillator's instant value. If an already averaged external value is used, set the period to one in this indicator.
• For the cases where an external signal is used, a centerline value can be set.
Higher Timeframes
• The two higher timeframes are named Medium timeframe and Highest timeframe . They can be determined using one of three methods:
• Auto-steps: the higher timeframes are determined using the chart's resolution. If the chart uses a seconds resolution, for example,
the medium and highest resolutions will be 15 and 60 minutes.
• Multiples: the timeframes are calculated using a multiple of the chart's resolution, which you can set.
• Fixed: the set timeframes do not change with the chart's resolution.
Repainting
• Repainting can be controlled separately for the chart's value and the higher timeframe values.
• The default is a repainting chart value and non-repainting higher timeframe values. The Aggregate line will thus repaint by default,
as it uses the chart's value along with the higher timeframes values.
Aggregate Weights
• The weight of each component of the Aggregate line can be set.
• The default is equal weights for the three components, meaning that the chart's value accounts for one third of the weight in the Aggregate.
High Volatility
• This provides control over the volatility filter used in the Main line's coloring conditions and the background display.
• Volatility is determined to be high when the short-term ATR is greater than the long-term ATR.
Colors
• You can define your own colors for all of the oscillator's plots.
• The default colors will perform well on both white and black chart backgrounds.
Alerts
• An alert can be defined for the script. The alert will trigger whenever a bull/bear marker appears in the indicator's display.
The particular combination of coloring conditions and the display of bull/bear markers when you create the alert will thus determine when the alert triggers.
Once the alerts are created, subsequent changes to the conditions controlling the display of markers will not affect the existing alert(s).
• You can create multiple alerts from this script, each triggering on different conditions.
Backtesting & Trading Engine Signal Line
• An invisible plot named "BTE Signal" is provided. It can be used as an entry signal when connected to the PineCoders Backtesting & Trading Engine as an external input.
It will generate an entry whenever a marker is displayed.
Look first. Then leap.
MTF VWAP + Fibo Incremental deviationsI made a Fibo variant of my first script "VWAPs + devs" :
This new indicator give you the possibility to plot multi timeframes VWAP (D, W, M, 3M and 12M ) and Fibo deviations for each one.
VWAP is a powerfull indicator which is used by big players to get informations if the price is "overbought" or "oversold". Deviations give the opportunity to have supports and resistances in those "over"-zones.
I searched for better results and found those defaults values :
Fib 1 level : 0.618
Fib 2 level : 0.786
Fib 3 level : 1.000
Fib 4 level : 1.618
Fib 5 level : 2.618
In the thumbnail, we can see that the 1.618 deviation level made a great support on the last uptrend for BTCUSDT .
You can change each values but low ones as 0.382 and 0.5 don't give really interesting supports/resistances.
I made this script as clear and simple as possible with only one menu in the parameters.
Some examples of what you can do :
BTCUSDT (Binance) H4 / D, W, M, 3M ,12M VWAP without devs
BTCUSDT (Binance) M5 / Daily VWAP + Fibo devs
Hope this will be useful for you !
MTF RSI VWAP Directional-Bias Barcolor [Intromoto]Hey traders.
This indicator displays one of five barcolors, whether the multi-timeframe VWAP RSI set , variable by user, are above or below the 50% midline of the standard normalized oscillator.
The standard resolutions I've set as default:
1 minute
3 minute
5 minute
15 minute
These can be changed, but this is designed for low time-frame and if increased you'll likely not get signals as useful.
RSI VWAP functions similarly to the standard RSI but takes volume-weighted price into the calculation. VwapRSI = rsi(vwap(close), length).
The barcoloring indicates as follows:
Red: Start downtrend - Long exit
vwapRSI1< 50, vwapRSI2 > 50, vwapRSI3 >50, vwapRSI4 >50
Dull Green: Start-mid uptrend - buy/long continuation
All vwapRSI above 50
Pink: Mid-end downtrend - sell/short continuation
All vwapRSI below 50
Bright Green: New Uptrend attempt - Long entry
vwapRSI1> 50, vwapRSI2 > 50, vwapRSI3 >50, vwapRSI4 >50
Black: Chop / weak trend
Null / Differing combination of above and below - no clear trade. Black often shows when momentum is low.
This should be used with other factors like market structure and in confluence with other indicators. Be aware and avoid barcolor divergence to the trend, especially considering use on lower time frames. i.e Green bars that start at a peak and travel downwards.
Focus should be given to candle border/wick color and the barcolor. i.e Down red candle with red or pink barcolor.
Feel free to experiment with the MTF function, as it likely differs across assets and time frames.
PM me for access.
MTF Stoch RSI ScreenerDisplays when multiple timeframes of Stochastic RSI are overbought/oversold. Multiple consecutive timeframes being overbought/oversold can signify a short term top or bottom.
Thanks to Micse in Pinescripters telegram who helped remove a few errors from this.
(MTF) Bollinger Bands + RE RSIs + Hidden Supports & ResistancesI merged some of my previous written indicators, because a combination of multi-timeframe Bollinger Bands, RE RSI and Resistance/Support levels could help a lot.
Don't forget to add my other useful indicator (Classical SnR) to the chart to maximize your profit!
MTF-RSI+Candles [VK]This is the strategy where we buy when RSI is above 51 line and sell below 49 line
Ability to change RSI TF
Ability to change default value of RSI/upline/lowline/oversold/overbought lines
Ability to switch show/hide backgrount color
Ability to switch on/off candle colors when RSI crosses up/upline down/lowline
Ability to plot B/S signals when RSI crosses up/upline down/lowline
alerts added
can also be used as standard RSI
mtf nori spThis is an indicator of nori_nosuke's technique.
If you check the check box of EMA ?, it becomes EMA .
If it is not checked, it is SMA .
Added multi-time flame.
If you put a chuck in the chuck box of 'mtf?', It will be changed to the time displayed below.
MTF Trend Scanner v2The MTF Trend Scanner searches multiple timeframes to identify the outlook for that particular timeframe. The overall trend becomes stronger with confluence between the timeframes.
However, the individual timeframe can be used on their own. When the colour switches red/green for the first, that mean it's the start of a new trend for that particular timeframe. It'll stay in trend until it switches off (this doesn't mean price can't reverse the opposite way so just keep that in mind!)
Use the link below to obtain access to this indicator
MTF TrendLines [Private]As the name suggests, the Multi-Timeframe (MTF) Trendlines indicator allows you to extrapolate trendlines from a higher timeframe into your chart timeframe. A maximum of one upper trendline and one lower trendline will be plotted per indicator instance. You can load multiple copies of the indicator into your chart and manually set each copy to operate in a different higher timeframe.
The trendlines are based on the two most recent upper and lower qualifying pivots found in the higher timeframe, and you can adjust the pivot size via the settings menu. In order to qualify, an upper trendline must have a flat to downward slope and a lower trendline must have a flat to upward slope. In both cases there should not be any breach of the trendline between the two pivots. A tolerance factor is provided so you can introduce some leeway in terms of what constitutes a breach.
As mentioned above, the trendlines are actually extrapolated into the chart timeframe. By that we mean that the cluster of bars that comprise each individual pivot in the higher timeframe are located in the chart timeframe, and the bar with the highest-high/lowest-low is used as the actual pivot point. This is necessary because, for example, the high of a daily pivot bar may not always exactly match the highest-high found in the pivot cluster in the chart timeframe.
In terms of selecting the higher timeframe, there are two modes of operation which can be selected via the settings dialog. In Auto Mode the indicator will automatically select the higher timeframe to use based on your chart timeframe. In Manual Mode you select the higher timeframe to use. In either case the selected higher timeframe must always be greater than or equal to the chart timeframe.
Along with each trendline you can also elect to plot pivot markers as well as price labels. Each can be customized and/or toggled on or off via the settings dialog.
The pivot markers will display as up or down triangle shapes plotted below (for lower trendline) or above (for upper trendline) the two price bars that represent the two pivots used in generating the trendline. You have the option to display just the marker, or display the marker plus the timeframe.
The price labels will display on the most current price bar (an offset is provided) and can be configured to display the trendline value as of that bar, the trendline timeframe, or both. You can also adjust the orientation of the price labels.
For the trendlines themselves, you can adjust the color, thickness, and line type. You can also toggle upper and lower trendlines on or off independently.
Please visit the link in our Signature for pricing.
Megatrend MTF AlertsMTF version of Megatrend, my most reliable indicator for trend analysis.
It called the end of the bear market perfectly and provides early signals. Press play:
MTF Candles (Nyzo Style)This script is straight forward.
Just practicing using the security function cause I'm terrified of it.
Thanks, Daveatt for the infopanel function with the color switcher
MTF Bollinger Bands %BMulti Time Frame (MTF) Bollinger Bands %B option:
1. On/ Off Bollinger Bands %B - M15 (15-Minute)
2. On/Off Bollinger Bands %B - H1 (1-Hour)
3. On/Off Bollinger Bands %B - H4 (4 Hour)
4. On/Off Bollinger Bands %B - D1 (Daily)
5. On/Off Bollinger Bands %B - W1 (Weekly)
6. On/Off Bollinger Bands %B - M1 (Monthly)
7. On/Off Panel Info: Color note & %B value
MTF Selection Framework - PineCoders FAQOur MTF Selection Framework allows Pine coders to add multi-timeframe capabilities to their script with the following features:
► Timeframe selection
The higher timeframe can be selected using 3 different ways:
• By steps (60 min., 1D, 3D, 1W, 1M, 1Y).
• As a multiple of the current chart's resolution, which can be fractional, so 3.5 will work.
• Fixed.
► Non-repainting or Repainting mode can be selected.
► Smoothing of the HTF line
Can be turned on/off and a smoothing factor allows the user to select the degree of smoothing he requires.
The framework is used here to create a higher timeframe version of a simple RSI line, but it can be used to access HTF information for almost any signal.
Functions used
f_resInMinutes()
Converts the current timeframe.multiplier plus the TF into minutes of type float.
• In Pine, the timeframe.multiplier is an integer representing the resolution, but a value of 1 can mean one day or one minute. This function converts that information in a standard fractional float minutes format that can then be used by the other functions in the framework.
• If the chart's current resolution is 15 seconds, the function will return 0.25 . If the chart's resolution is one day, it will return 1440 .
f_tfResInMinutes(_resolution)
Returns resolution of _resolution period in minutes.
• This function does the same as f_resInMinutes() , but on the target resolution supplied as a parameter in the timeframe.period string format.
f_resNextStep(_res)
Given a current resolution in fractional float minutes, returns its corresponding stepped HTF in the timeframe.period string format.
• This allows the implementation of the step HTF selection mode.
f_multipleOfRes(_res, _mult)
Given a current resolution in fractional float minutes and a fractional multiplier, returns a multiple of the resolution as a string in "timeframe.period" format usable with "security()".
• A multiple like 3.5 is allowed.
• Note that with seconds resolutions, the result returned is constrained by the discrete seconds resolutions available on TV.
f_htfLabel(_txt, _y, _color)
Used to display a label showing either:
• A warning when the chart's resolution is not lower than the HTF.
• The HTF resolution currently used.
The y position used to position the label will require adaptation to the signal you are using. For use in "overlay = true" mode, a technique that works well is commented out in the code.
Look first. Then leap.
MTF Smoothed Moving Averages x4A set of smoothed moving averages that stay at a fixed timeframe, regardless of the timeframe of the chart but don't have nasty jaggedy lines. Instead, they are smooooooooooooth...
MTF Average Directional Index Range DetectorHigher Timeframe ADX to detect range/trending market while trading lower time frames.
Change the resolution in the parameters. You must use a time frame equal or higher to the current time frame.
Red = Range
Green = Trending
Use the alerts to get notified when the color changes.
Adjust the Threshold parameter to change the value from which the color changes.
Click Add to favorites to get the indicator on your chart (it will appear in the Indicators->Favorites tab).
Leave a like if you find it useful!
MTF ADXI tried to convert ADX to MTF. The trend strength can be judged with ADX.
It can be judged that a trend below 20 is a weak trend, a trend above 40 is a strong trend, and a trend above 50 is a very strong trend.
As for the color of ADX, the green part is rising and the red part is falling.
It is assumed that you will make a position at the moment when it turns green or when it exceeds 20.
Entry points correspond to alerts.
The direction of the trend is judged by DI +, DI-, the part painted in blue is the uptrend and the part painted in orange is the downtrend.
ADXをMTF化してみました。ADXでトレンドの強さが判定できます。
20以下は弱いトレンド、40以上は強いトレンド、50以上は非常に強いトレンドと判定できます。
ADXの色は緑の部分が上昇中、赤色の部分が下降中です。
緑に変わった瞬間、または20を超えた瞬間ポジションメイクするのを想定しています。
エントリーポイントはアラートに対応しています。
トレンドの向きはDI+,DI-で判定し、青色に塗っている部分は上昇トレンド、オレンジ色に塗っている部分は下落トレンドです。
MTF RSI [mushoku]Multi Time Frame RSI
異なる時間軸のRSIを同時に表示できるインジケーターです。
無料で使用できます。
こちらでも簡単ですが紹介しています。
note.mu
MTF EMA RibbonThis Script analyses trends using an EMA Ribbon (Can be adjusted to any timeframe).
tips are always welcome at: 38uGQJDDZDL6wX48x4gYTccPeQ3ZHVYmY4 (btc)
I hope you enjoy the script :)
MTF Ichimoku CloudI published it because I could not find a good MTF glance.
なかなか良いMTF一目が見つからないので公開しました。