MTF Polarity Grid [DW]This is an experimental study designed to track directional polarities across multiple timeframes and express them as a simple two color grid.
The polarity in this calculation is determined by divergence between a fast and slow McGinley Dynamic.
Your current resolution's polarity is the top row, the rows below are are for higher timeframes of your choice.
Cari dalam skrip untuk "mtf"
MTF EMAExponential Moving Average indicator that can be configured to display different timeframe EMA's.
Timeframe is set in minutes. Max timeframe currently is the daily (1440 minutes). Any value higher than 1440 will result in no plot.
Examples:
Daily 50 EMA plotted on 4H chart
4H 50 EMA and Daily 50 EMA plotted on 1H chart
Can also work in reverse if needed.
Example, Daily 50 EMA plotted on Weekly Chart
MTF EMAExponential Moving Average indicator that can be configured to display different timeframe EMA's.
Timeframe is set in minutes. Max timeframe currently is the daily (1440 minutes). Any value higher than 1440 will result in no plot.
Examples:
Daily 50 EMA plotted on 4H chart
4H 50 EMA and Daily 50 EMA plotted on 1H chart
Can also work in reverse if needed.
Example, Daily 50 EMA plotted on Weekly Chart
MTF EMAExponential Moving Average indicator which can be configured to plot different timeframe EMA's on the one chart.
For example, Daily 50 EMA plotted on 4H chart
4H 50 EMA plotted on 1H chart
Max timeframe available is the daily (1440 minutes). Any value higher than this will not work.
MTF CCI_8_34_5m_30minThis indicator is used in NimblrTA for plotting the following:
CCI-8 on 5 minutes
CCI-34 on 5 minutes
CCI-34 on 30 minutes interval on 5 minutes
MTF Previous Open/Close/RangeThis indicator will simply plot on your chart the Daily/Weekly/Monthly previous candle levels.
The "Auto" mode will allow automatic adjustment of timeframe displayed according to your chart.
Otherwise you can select manually.
Indicator plots the open/close and colors the high-low range area in the background.
Hope this simple indicator will help you !
You can check my indicators via my TradingView's Profile : @PRO_Indicators
Atlas BBTlevelsAtlas BBTlevels is a custom Bollinger Bands-based indicator that measures the momentum and strength of price trends using the difference between short- and long-period Bollinger Bands. Inspired by John Bollinger’s official tools like BBTrend, %b, and Bandwidth, this script adds adjustable horizontal threshold levels so traders can mark important reaction zones on their charts.
It visualizes when markets may be entering overheated or exhausted conditions — either for trend continuation or potential reversals — and works across crypto, stocks, forex, spot, or perpetual charts.
How I personally use it:
I apply Atlas BBTlevels across three timeframes:
Low timeframe (LTF): 5m–15m
Mid timeframe (MTF): 1h–6h
High timeframe (HTF): 1d–2d
I review where the indicator historically spiked during major moves. For example, if the 4-hour chart shows repeated spikes to +10 or −10, I’ll set my positive and negative thresholds near those levels. This lets me anticipate zones where the market may reverse, cool off, or break out. I then compare LTF, MTF, and HTF levels to look for confluence. When multiple timeframes align near key levels, it gives me higher confidence to prepare for a trade — but I always combine this with price action and other confirmation tools.
How others can use it:
Identify overbought/oversold zones by adjusting the thresholds to match historical extremes on your chosen asset.
Use it as a trend strength gauge: when the histogram is near or above the top threshold, the trend is likely strong; when it fades back toward zero, momentum is weakening.
Watch for volatility expansions or contractions as the indicator accelerates away from or returns toward zero.
Combine it with price action (support/resistance, trendlines, chart patterns) or other momentum tools to reduce false signals.
Apply it across multiple timeframes to look for confluence — this increases reliability compared to using it on just one chart.
Important tips:
Positive spikes (above zero) usually indicate strength or overextension upward; negative spikes (below zero) show weakness or downward exhaustion.
You can reverse the color logic if you want (for example, highlight negative spikes as green for buy interest and positive spikes as red for sell interest) — this is just a visual preference.
This is not a standalone buy/sell system. Always combine it with other tools, market context, and risk management.
Black RSI (Pro Suite)Black RSI (Pro Suite) is combination of RSI (Relative Strength Index), Volume RSI, Heikin Ashi RSI & other multi Oscillators with multi features into one indicator, features like (Quad Divergences, Multi Time Frame RSI, MTF RSI Panel, Oscillator Support/Resistance/Wedges/Trendlines, Oscillator Moving Average/BBs, Smooth RSI, RSI Price Estimator, Oscillator Over bought/sold Bars, Osc OB/OS Zones, Osc OB/OS Highlights, additionally Black RSI indicator is flexible & completely customizable).
Indicator goal: I have tried my best to organized RSI & other suitable oscillators and oscillator useful tools into one simple and free indicator for Tradingview users (specifically for Tradingview 'basic' subscription users). suggestions are always welcome. please give feedback & appreciate if you like my work.
Black RSI Indicator Features Summary:
Black RSI indicator includes many features mainly relevant to RSI and other Oscillators, these are briefly highlighted below:
Black RSI Dashboard
Multi Oscillators: Choose between multiple oscillators. All oscillators settings are customizable.
Multi Symbol: Multi Symbol Support, applicable on all oscillators
RSI (Relative Strength Index)
VRSI (Volume Relative Strength Index)
HA RSI (Heikin Ashi Relative Strength Index)
OBV (On Balance Volume)
CVD (Comulative Volume Delta)
MFI (Money Flow Index)
UO (Ultimate Oscillator)
MOM (Momentum Oscillator)
ATR (Average True Range)
Stoch (Stochastic Oscillator)
Stoch RSI (Stochastic RSI)
Oscillator Primary Tools ◢
Oscillator Moving Average/Bollinger Bands
Smooth RSI
Multi Timeframe RSI
Multi Timeframe RSI Panel
RSI Price Estimator
Oscillator Support/Resistance/Wedges/Trendlines
Oscillator Moving Average/BBs: Shows Moving Average for selected oscillator.
Smooth Smooth: Smooths out RSI
Multi Timeframe RSI: Displays Multiple Time Frame/Multiple Symbol RSI and converts it and shows it as it is in current time frame without effecting Primary RSI
Multi Timeframe RSI Panel: Displays Multiple Time Frame/Multiple Symbol RSI values of user input specific timeframes in compact panel (max 8 Time frames)
RSI Price Estimator: Calculates RSI estimate price values of 3 different user specific RSI input levels, RSI x MA cross price and RSI future value of user specific price input level.
Oscillator Support/Resistance/Wedges/Trendlines: Draws Trendlines, Wedges and Support & Resistance lines on selected oscillator
Oscillator Quad Divergence ◢
1st Oscillator Divergence: Traditional divergence indicator with enhancements & customization
2nd Oscillator Divergence: Traditional divergence indicator with enhancements & customization
3rd Oscillator Divergence: Advanced Divergence indicator with source selection, RSI/Price threshold, potential divergences & customization
4th Oscillator Divergence: Pivots divergence indicator with flexible pivots selection & customization
Regular bullish divergences are indicated when price is forming lower lows while an oscillator shows higher lows.
Regular bearish divergences are indicated when price is forming higher highs while an oscillator shows lower highs.
While regular divergences indicate trend reversals, hidden divergences indicate a trend continuation.
When the price is making higher lows and the oscillator is showing lower lows, we speak of a bullish hidden divergence.
When the price is making lower highs and the oscillator shows higher highs, it's a bearish hidden divergence.
Oscillator Secondary Tools ◢
Oscillator HH/LL pivots
Osc OB/OS Color Bars
Osc OB/OS Zones
Osc OB/OS Highlights
Background
Oscillator HH/LL pivots: Shows HH/LL pivot points on selected oscillator
Osc OB/OS Color Bars: Plots color chart bars based on RSI, MFI, Stochastic, Stochastic RSI or combine overbought/oversold conditions
Osc OB/OS Zones: Plots Osc OB/OS Zones with user input levels
Osc OB/OS Highlights: Highlight oscillator OB/OS background area
Background: background color customization
+ Primary RSI Settings ▾
- Primary RSI Length: User input RSI Length value
- Primary RSI Source: User RSI Source selection
- RSI Overbought Threshold: Allows the user to set the RSI overbought threshold value. This Overbought Threshold value will also be applied on "RSI Divergence overbought condition", "RSI OB Color Bars" and "Primary RSI Color Schemes
- RSI Oversold Threshold: Allows the user to set the RSI oversold threshold value. The lower band (oversold line) of RSI. This Oversold Threshold value will also be applied on "RSI Divergence oversold condition", "RSI OS Color Bars" and "Primary RSI Color Schemes
- RSI Middle Band: Allows the user to set the RSI middle band value. This value will also applied to "Center Line" color scheme from "Primary RSI Color Schemes" drop menu
- Primary RSI Colors:
Range color specifies a gradient of colors from the overbought to the oversold threshold user inputs from "Primary RSI" section. Color interpolation also a gradient but smoother than Range color. Center Line is similar but is not a gradient, linked to Middle Band ("Primary RSI" section) and changes color with RSI Middle Band. Traditional is simple with Overbought and Oversold colors change.
- RSI Bullish Band: Allows the user to plot extra/optional RSI band on RSI Oscillator (Note: it will not be plotted if "OB/OS Zone only" enabled from "OB/OS Zone Settings" section)
- RSI Bearish Band: Allows the user to plot extra/optional RSI band on RSI Oscillator (Note: it will not be plotted if "OB/OS Zone only" enabled from "OB/OS Zone Settings" section)
+ Primary RSI Smooth Settings ▾
- Smooth Moving Average Type: User selected Smooth MA type. With RSI Smooth enabled, will also effect all RSI Divergences detection (all divergences will be plot according to "Smoothed RSI line")
- Smooth Moving Average Length: User input Smooth MA length value
+ Oscillator Moving Average Settings ▾
- Osc Moving Average Colors: Allows user to select Bullish/Bearish colors of Oscillator Moving Average
- Osc Moving Average Type: Allows user to select Oscillator MA Type
- Osc Moving Average Length: User input Oscillator MA length value
- Osc Moving Average Thickness: User input Oscillator MA thickness
- BB StdDev: user input Bollinger Bands standard deviation value
+ Stochastic Oscillator Settings ▾
- Same as Traditional/Default indicator
+ Stochastic RSI Oscillator Settings ▾
- Same as Traditional/Default indicator
+ Money Index Flow Settings ▾
- Same as Traditional/Default indicator
+ Ultimate Oscillator Settings ▾
- Same as Traditional/Default indicator
+ Momentum Oscillator Settings ▾
- Same as Traditional/Default indicator
+ Average True Range Settings ▾
- Same as Traditional/Default indicator
+ Multi Timeframe RSI Settings ▾
- MTF RSI Time Frame: Allows user to select MTF RSI Time Frame
- MTF RSI Symbol: Allows user to select MTF RSI Time Symbol
- MTF RSI Length: User input MTF RSI length value
- MTF RSI Source: User selected MTF RSI source
- MTF RSI Line Width: User input MTF RSI line thickness value
- Number of Bars for MTF RSI plot
- MTF RSI Color > OB color > OS color : Allows user to select MTF RSI color with additionally Overbought/Oversold colors
+ MTF RSI Panel Settings ▾
- Select MTF RSI Type: If "Primary RSI" or "Volume RSI" selected MTF RSI Panel will show output values based on "Primary RSI" or "Volume RSI" parameters e.g. source, length, but without smooth.
- MTF RSI Panel Symbol: Allows user to select MTF RSI Panel symbol, leave symbol blank or uncheck "checkbox" for current chart symbol
- Show Symbol in Panel: Shows symbol ticker(current or user selected) in MTF RSI Panel
- Panel Background: Allows user to select MTF RSI Panel Background (enable/disable) and Background color selection
- TF1: MTF RSI Timeframe 1 user selection
- TF2: MTF RSI Timeframe 2 user selection
- TF3: MTF RSI Timeframe 3 user selection
- TF4: MTF RSI Timeframe 4 user selection
- TF5: MTF RSI Timeframe 5 user selection
- TF6: MTF RSI Timeframe 6 user selection
- TF7: MTF RSI Timeframe 7 user selection
- TF8: MTF RSI Timeframe 8 user selection
- Panel Top Offset: MTF RSI Panel offset input value
- Position: MTF RSI Panel position selection
- Text Size: MTF RSI Panel text size selection
- Bullish Colors: MTF RSI Panel bullish color selection. (Bullish colors range RSI >75, <75 to >65, <65 to >55)
- Bearish Colors: MTF RSI Panel bearish color selection. (Bearish colors range RSI <45 to >35, <35 to >25, <25)
+ RSI Price Estimator Settings ▾
- Price 1: User input value for RSI future price
- Price 2: User input value for RSI future price
- Price 3: User input value for RSI future price
- Panel Position Offset: User input value for panel position offset
- Price Decimals: User input value for output price decimals in panel
- Show RSI/OscMA cross Price: Enable/Disable RSIxOscillator MA cross future price
- Show RSI Level for Input Price: User input price for future RSI level
- Invisible Background: Enable/Disable Background
Auto Text Color > Auto color change of Panel text according to Dark/Light chart theme
+ Oscillator Support/Resistance Settings ▾
- Show Support line: Allows user to Enable/Disable Oscillator support line
Color > Auto Color: Auto color change of support line according to Dark/Light chart theme
- Show Resistance line: Allows user to Enable/Disable Oscillator resistance line
Color > Auto Color: Auto color display of resistance line according to Dark/Light chart theme
- Lookback lows/highs: User input of Lookback lows/highs value
- Distance threshold: Distance from the line to the low
- Line touch points: Number of points that have to be around the line
- Low/High left bars: User input of Low/High left bars value
- Low/High right bars: User input of Low/High right bars value
- Line style: User selection of line style
- Line thickness: User input of line thickness value
+ Oscillator 1st Divergence Settings ▾
- Divergence Source: User selection of divergence source. "High/Low" (high/low of oscillator/price divergence detection), "Close" (close of oscillator/price divergence detection) and "Both" (Both Close + High/Low of oscillator/price divergence detection). (Note: Traditional Divergence indicator default source is "High/Low")
- Pivot Lookback Right: How many candle to compare on the right side of a candle when deciding whether it is a pivot. The lower the number is, the earlier pivots (and therefore divergences) will be signaled, but the quality of those detections could be lower.
- Pivot Lookback Left: How many candle to compare on the left side of a candle when deciding whether it is a pivot. The lower the number is, the earlier pivots (and therefore divergences) will be signaled, but the quality of those detections could be lower.
- Divergence Max Length (Bars): The maximum length of a divergence (number of bars). If a detected divergence is longer than this, it will be discarded
- Divergence Min Length (Bars): The minimum length of a divergence (number of bars). If a detected divergence is shorter than this, it will be discarded
- Show Divergence as:
- Line Thickness: User input divergence line thickness value
- Label Transparency: it could reduce labels mess on oscillator line, input "100" for label text only without label background
- Labels Text Color: User label text color selection
Auto Text Color > Auto color change of label text according to Dark/Light chart theme
- Bull Divergences: Enable/Disable of Bull divergences
> Color: User selection of Bull divergence color
> Oversold only: It will show Regular Bullish RSI divergences in oversold zone only, RSI oversold threshold can be configure in "Primary RSI Settings" section.
- Bear Divergences: Enable/Disable of Bear divergences
> Color: User selection of Bear divergence color
> Overbought only: It will show Regular Bearish RSI divergences in overbought zone only, RSI overbought threshold can be configure in "Primary RSI Settings" section.
- Hidden Bull Div: Enable/Disable of Hidden Bull divergences
> Color: User selection of Hidden Bull divergence color
- Hidden Bear Div: Enable/Disable of Hidden Bear divergences
> Color: User selection of Hidden Bear divergence color
+ Oscillator 2nd Divergence Settings ▾
- Same as Oscillator 1st Divergence Settings
+ Oscillator 3rd Divergence Settings ▾
- Divergence source: User selection of divergence source . "oscillator" (divergence detection with high/low or close of selected oscillator), "price" (divergence detection with high/low or close of price)
- Bull price source: User selection of Bull price source. Bull price source: "Low" (low of price divergence detection), "Close" (close of price divergence detection) (linked to "price" in "Divergence source")
- Bear price source: User selection of Bear price source. Bear price source: "High" (high of price divergence detection), "Close" (close of price divergence detection) (linked to "price" in "Divergence source")
- Low/High left bars: How many candle to compare on the left side of a candle when deciding whether it is a pivot. The lower the number is, the earlier pivots (and therefore divergences) will be signaled, but the quality of those detections could be lower.
- Low/High right bars: How many candle to compare on the right side of a candle when deciding whether it is a pivot. The lower the number is, the earlier pivots (and therefore divergences) will be signaled, but the quality of those detections could be lower.
- Maximum lookback bars: The maximum length of a divergence (number of bars). If a detected divergence is longer than this, it will be discarded.
- Price threshold: User selection of Price threshold, higher values more lines
- RSI threshold: User selection of RSI threshold, higher values more lines
- Show Lows: Displays lows of RSI
- Show Highs: Displays highs of RSI
- Show Divergence as:
- Line Style:
- Line thickness: User input divergence line thickness value
- Label Transparency: it could reduce labels mess on oscillator line, input "100" for label text only without label background
- Labels Text Color: User label text color selection
Auto Text Color > Auto color change of label text according to Dark/Light chart theme
- Bull Divergences: Enable/Disable of Bull divergences
> Color: User selection of Bull divergence color
> Potential Bull: It will plot potential regular bull divergence with dotted line.
- Bear Divergences: Enable/Disable of Bear divergences
> Color: User selection of Bear divergence color
> Potential Bear: It will plot potential regular bear divergence with dotted line.
- Hidden Bull Div: Enable/Disable of Hidden Bull divergences
> Color: User selection of Hidden Bull divergence color
> Potential H.Bull: It will plot potential hidden bull divergence with dotted line.
- Hidden Bear Div: Enable/Disable of Hidden Bear divergences
> Color: User selection of Hidden Bear divergence color
> Hidden Bear divergence: It will plot potential hidden bear divergence with dotted line.
> Regular Bull oversold only: It will show Regular Bullish RSI divergences in oversold zone only, RSI oversold threshold can be configure in "Primary RSI Settings" section.
> Regular Bear overbought only: It will show Regular Bearish RSI divergences in overbought zone only, RSI overbought threshold can be configure in "Primary RSI Settings" section.
+ Oscillator 4th Divergences Settings ▾
- Upper Length: User pivot input value of draw upper divergence line From
- To Pivot:
- Lower Length: User pivot input value of draw lower divergence line From
- To Pivot:
- Show Divergence as:
- Line Style:
- Line thickness: User input divergence line thickness value
- Label Transparency: it could reduce labels mess on oscillator line, input "100" for label text only without label background
- Labels Text Color: User label text color selection
Auto Text Color > Auto color change of label text according to Dark/Light chart theme
- Bull Divergences: Enable/Disable of Bull divergences
> Color: User selection of Bull divergence color
- Bear Divergences: Enable/Disable of Bear divergences
> Color: User selection of Bear divergence color
- Regular Bull oversold only: It will show Regular Bullish RSI divergences in oversold zone only, RSI oversold threshold can be configure in "Primary RSI Settings" section.
- Regular Bear overbought only: It will show Regular Bearish RSI divergences in overbought zone only, RSI overbought threshold can be configure in "Primary RSI Settings" section.
+ Oscillator HHLL Pivots Settings ▾
- Pivot Length: User input value of HH/LL pivot length
> L.Text Color: User label text color selection
- HH color: User HH Label color selection
- HL color: User HL Label color selection
- LH color: User LH Label color selection
- LL color: User LL Label color selection
+ Oscillator OB/OS Colored Bars Settings▾
- Overbought/Oversold Bars Oscillator: Plots Overbought/Oversold color bars based on RSI, MFI, Stoch, Stoch RSI overbought/oversold threshold conditions separately or combined(when every oscillator reach its OB or OS threshold condition at same time).
- Overbought Bar Color: User RSI OB Bars color selection
- Oversold Bar Color: User RSI OS Bars color selection
+ Primary RSI Range Color ▾
- OB: Overbought Color
- OS: Oversold Color
- Bullish: Bullish Color
- Bearish: Bearish Color
+ Primary RSI Color interpolation ▾
- RSI Color: RSI Color
- OB: Overbought Color
- OS: Oversold Color
+ Primary RSI Center Line Color ▾
- OB: Overbought Color
- Bullish: Bullish Color
- Bearish: Bearish Color
- OS: Oversold Color
+ Primary RSI Traditional Color ▾
- RSI Color: RSI Color
- OB: Overbought Color
- OS: Oversold Color
Osc Overbought/Oversold Zones Settings ▾
- OB/OS Zone Band Lines: Enable/Disable OB/OS Zone Band Lines
- OB/OS Zones only: Only shows OB/OS Zones and disable all RSI band lines except Middle Band. Background will not be effected by this setting.
- Overbought Zone: User input value of Overbought Zone from
> To:
- Oversold Zone: User input value of Oversold Zone from
> To:
Osc Overbought/Oversold Highlights ▾
- Overbought Highlights : Enable/Disable Overbought Highlights
- Oversold Highlights : Enable/Disable Oversold Highlights
- Transparency: Gradient transparency of highlighted area
+ 'Oscillators Color Settings ▾
- Show Osc Symbol label : Enable/Disable of oscillator symbol label. Displays current oscillator symbol, but with "Override Oscillator Symbol" enabled from "Black RSI Dashboard" it will Auto/forcefully displays Override Oscillator Symbol on Oscillator
- Fade out Oscillator line: Fade out the oscillator line color, focusing only the most recent periods prominent for a clearer chart
- Fill Stoch/StochRSI lines: Fills Stoch/Stoch RSI lines
- Oscillator line thickness: user input value of oscillator line thickness
- Oscillator line offset: Shifts the oscillator to the left or to the right on the given number of bars, Default is 0
- OBV Color
- MFI Color
- ATR Color
- UO Color
- MOM Color
- CVD Bullish Color
- CVD Bearish Color
+ Background Setting ▾
- Custom Background Color: User selection of Background color
Authors & Credits: I'd like to THANK to Nabeel Black(myself), LonesomeTheBlue, iFuSiiOnzZ, jmosullivan, zdmre, creengrack, and TradingView for the locally sourced ingredients.
Disclaimer: DYOR. Not financial advice. Not a trading system. I am not affiliated with TradingView or any authors mentioned here; You alone have the sole responsibility of evaluating the script output and risks associated with the use of the script. Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely. Always trade with confluence and Risk Management.
Feedback & Bug report
if you found any bug in this indicator or any suggestion, please let me know. Please give feedback & appreciate if you like to see more future updates and indicators. Thank you
Multi-Fibonacci Trend Average[FibonacciFlux]Multi-Fibonacci Trend Average (MFTA): An Institutional-Grade Trend Confluence Indicator for Discerning Market Participants
My original indicator/Strategy:
Engineered for the sophisticated demands of institutional and advanced traders, the Multi-Fibonacci Trend Average (MFTA) indicator represents a paradigm shift in technical analysis. This meticulously crafted tool is designed to furnish high-definition trend signals within the complexities of modern financial markets. Anchored in the rigorous principles of Fibonacci ratios and augmented by advanced averaging methodologies, MFTA delivers a granular perspective on trend dynamics. Its integration of Multi-Timeframe (MTF) filters provides unparalleled signal robustness, empowering strategic decision-making with a heightened degree of confidence.
MFTA indicator on BTCUSDT 15min chart with 1min RSI and MACD filters enabled. Note the refined signal generation with reduced noise.
MFTA indicator on BTCUSDT 15min chart without MTF filters. While capturing more potential trading opportunities, it also generates a higher frequency of signals, including potential false positives.
Core Innovation: Proprietary Fibonacci-Enhanced Supertrend Averaging Engine
The MFTA indicator’s core innovation lies in its proprietary implementation of Supertrend analysis, strategically fortified by Fibonacci ratios to construct a truly dynamic volatility envelope. Departing from conventional Supertrend methodologies, MFTA autonomously computes not one, but three distinct Supertrend lines. Each of these lines is uniquely parameterized by a specific Fibonacci factor: 0.618 (Weak), 1.618 (Medium/Golden Ratio), and 2.618 (Strong/Extended Fibonacci).
// Fibonacci-based factors for multiple Supertrend calculations
factor1 = input.float(0.618, 'Factor 1 (Weak/Fibonacci)', minval=0.01, step=0.01, tooltip='Factor 1 (Weak/Fibonacci)', group="Fibonacci Supertrend")
factor2 = input.float(1.618, 'Factor 2 (Medium/Golden Ratio)', minval=0.01, step=0.01, tooltip='Factor 2 (Medium/Golden Ratio)', group="Fibonacci Supertrend")
factor3 = input.float(2.618, 'Factor 3 (Strong/Extended Fib)', minval=0.01, step=0.01, tooltip='Factor 3 (Strong/Extended Fib)', group="Fibonacci Supertrend")
This multi-faceted architecture adeptly captures a spectrum of market volatility sensitivities, ensuring a comprehensive assessment of prevailing conditions. Subsequently, the indicator algorithmically synthesizes these disparate Supertrend lines through arithmetic averaging. To achieve optimal signal fidelity and mitigate inherent market noise, this composite average is further refined utilizing an Exponential Moving Average (EMA).
// Calculate average of the three supertends and a smoothed version
superlength = input.int(21, 'Smoothing Length', tooltip='Smoothing Length for Average Supertrend', group="Fibonacci Supertrend")
average_trend = (supertrend1 + supertrend2 + supertrend3) / 3
smoothed_trend = ta.ema(average_trend, superlength)
The resultant ‘Smoothed Trend’ line emerges as a remarkably responsive yet stable trend demarcation, offering demonstrably superior clarity and precision compared to singular Supertrend implementations, particularly within the turbulent dynamics of high-volatility markets.
Elevated Signal Confluence: Integrated Multi-Timeframe (MTF) Validation Suite
MFTA transcends the limitations of conventional trend indicators by incorporating an advanced suite of three independent MTF filters: RSI, MACD, and Volume. These filters function as sophisticated validation protocols, rigorously ensuring that only signals exhibiting a confluence of high-probability factors are brought to the forefront.
1. Granular Lower Timeframe RSI Momentum Filter
The Relative Strength Index (RSI) filter, computed from a user-defined lower timeframe, furnishes critical momentum-based signal validation. By meticulously monitoring RSI dynamics on an accelerated timeframe, traders gain the capacity to evaluate underlying momentum strength with precision, prior to committing to signal execution on the primary chart timeframe.
// --- Lower Timeframe RSI Filter ---
ltf_rsi_filter_enable = input.bool(false, title="Enable RSI Filter", group="MTF Filters", tooltip="Use RSI from lower timeframe as a filter")
ltf_rsi_timeframe = input.timeframe("1", title="RSI Timeframe", group="MTF Filters", tooltip="Timeframe for RSI calculation")
ltf_rsi_length = input.int(14, title="RSI Length", minval=1, group="MTF Filters", tooltip="Length for RSI calculation")
ltf_rsi_threshold = input.int(30, title="RSI Threshold", minval=0, maxval=100, group="MTF Filters", tooltip="RSI value threshold for filtering signals")
2. Convergent Lower Timeframe MACD Trend-Momentum Filter
The Moving Average Convergence Divergence (MACD) filter, also calculated on a lower timeframe basis, introduces a critical layer of trend-momentum convergence confirmation. The bullish signal configuration rigorously mandates that the MACD line be definitively positioned above the Signal line on the designated lower timeframe. This stringent condition ensures a robust indication of converging momentum that aligns synergistically with the prevailing trend identified on the primary timeframe.
// --- Lower Timeframe MACD Filter ---
ltf_macd_filter_enable = input.bool(false, title="Enable MACD Filter", group="MTF Filters", tooltip="Use MACD from lower timeframe as a filter")
ltf_macd_timeframe = input.timeframe("1", title="MACD Timeframe", group="MTF Filters", tooltip="Timeframe for MACD calculation")
ltf_macd_fast_length = input.int(12, title="MACD Fast Length", minval=1, group="MTF Filters", tooltip="Fast EMA length for MACD")
ltf_macd_slow_length = input.int(26, title="MACD Slow Length", minval=1, group="MTF Filters", tooltip="Slow EMA length for MACD")
ltf_macd_signal_length = input.int(9, title="MACD Signal Length", minval=1, group="MTF Filters", tooltip="Signal SMA length for MACD")
3. Definitive Volume Confirmation Filter
The Volume Filter functions as an indispensable arbiter of trade conviction. By establishing a dynamic volume threshold, defined as a percentage relative to the average volume over a user-specified lookback period, traders can effectively ensure that all generated signals are rigorously validated by demonstrably increased trading activity. This pivotal validation step signifies robust market participation, substantially diminishing the potential for spurious or false breakout signals.
// --- Volume Filter ---
volume_filter_enable = input.bool(false, title="Enable Volume Filter", group="MTF Filters", tooltip="Use volume level as a filter")
volume_threshold_percent = input.int(title="Volume Threshold (%)", defval=150, minval=100, group="MTF Filters", tooltip="Minimum volume percentage compared to average volume to allow signal (100% = average)")
These meticulously engineered filters operate in synergistic confluence, requiring all enabled filters to definitively satisfy their pre-defined conditions before a Buy or Sell signal is generated. This stringent multi-layered validation process drastically minimizes the incidence of false positive signals, thereby significantly enhancing entry precision and overall signal reliability.
Intuitive Visual Architecture & Actionable Intelligence
MFTA provides a demonstrably intuitive and visually rich charting environment, meticulously delineating trend direction and momentum through precisely color-coded plots:
Average Supertrend: Thin line, green/red for uptrend/downtrend, immediate directional bias.
Smoothed Supertrend: Bold line, teal/purple for uptrend/downtrend, cleaner, institutionally robust trend.
Dynamic Trend Fill: Green/red fill between Supertrends quantifies trend strength and momentum.
Adaptive Background Coloring: Light green/red background mirrors Smoothed Supertrend direction, holistic trend perspective.
Precision Buy/Sell Signals: ‘BUY’/‘SELL’ labels appear on chart when trend touch and MTF filter confluence are satisfied, facilitating high-conviction trade action.
MFTA indicator applied to BTCUSDT 4-hour chart, showcasing its effectiveness on higher timeframes. The Smoothed Length parameter is increased to 200 for enhanced smoothness on this timeframe, coupled with 1min RSI and Volume filters for signal refinement. This illustrates the indicator's adaptability across different timeframes and market conditions.
Strategic Applications for Institutional Mandates
MFTA’s sophisticated design provides distinct advantages for advanced trading operations and institutional investment mandates. Key strategic applications include:
High-Probability Trend Identification: Fibonacci-averaged Supertrend with MTF filters robustly identifies high-probability trend continuations and reversals, enhancing alpha generation.
Precision Entry/Exit Signals: Volume and momentum-filtered signals enable institutional-grade precision for optimized risk-adjusted returns.
Algorithmic Trading Integration: Clear signal logic facilitates seamless integration into automated trading systems for scalable strategy deployment.
Multi-Asset/Timeframe Versatility: Adaptable parameters ensure applicability across diverse asset classes and timeframes, catering to varied trading mandates.
Enhanced Risk Management: Superior signal fidelity from MTF filters inherently reduces false signals, supporting robust risk management protocols.
Granular Customization and Parameterized Control
MFTA offers unparalleled customization, empowering users to fine-tune parameters for precise alignment with specific trading styles and market conditions. Key adjustable parameters include:
Fibonacci Factors: Adjust Supertrend sensitivity to volatility regimes.
ATR Length: Control volatility responsiveness in Supertrend calculations.
Smoothing Length: Refine Smoothed Trend line responsiveness and noise reduction.
MTF Filter Parameters: Independently configure timeframes, lookback periods, and thresholds for RSI, MACD, and Volume filters for optimal signal filtering.
Disclaimer
MFTA is meticulously engineered for high-quality trend signals; however, no indicator guarantees profit. Market conditions are unpredictable, and trading involves substantial risk. Rigorous backtesting and forward testing across diverse datasets, alongside a comprehensive understanding of the indicator's logic, are essential before live deployment. Past performance is not indicative of future results. MFTA is for informational and analytical purposes only and is not financial or investment advice.
Dow Theory Trend Direction VisualizerJapanese below / 日本語説明は下記
Overview
What is difficult for beginner traders is to identify trend occurrence, continuation and reversal.
This indicator visualizes market direction by changing background colors based on Dow Theory so that traders can visually grasp trends.
Sample chart
Functions
1.MTF Higher High/Lower High/Higher Low/Lower Low(HH/LH/HL/LL)
Indicator shows HH/LH/HL/LL of an upper timeframe(MTF) and those of chart’s timeframe at the same time.
As usual, HH/LH/HL/LL of chart’s timeframe can be used to identify trend continuation based on Dow Theory while MTF HH/LH/HL/LL can be used as support/resistance.
Auto and manual mode for MTF
When you select “Auto” mode, then an upper timeframe will be automatically determined as MTF based on chart’s timeframe. If “Manual “ mode selected, then you need to specify MTF timeframe.
MTF HH/LH/HL/LL are displayed only below the selected MTF timeframe so it will not disturb when you open higher timeframe.
For instance, if you select daily timeframe as MTF, then HH/LH/HL/LL of daily timeframe will be shown on 4 hour or below timeframes.
Auto and manual mode for MTF
When you select “Auto” mode, then an upper timeframe will be automatically determined as MTF based on chart’s timeframe. If “Manual “ mode selected, then you need to specify MTF timeframe.
MTF HH/LH/HL/LL are displayed only below the selected MTF timeframe so it will not disturb when you open higher timeframe.
For instance, if you select daily timeframe as MTF, then HH/LH/HL/LL of daily timeframe will be shown on 4 hour or below timeframes.
Sample chart (AUDJPY 4H + Daily timeframe HH/LH/HL/LL )
In this chart, you can see two different timeframe’s trend.
In 4hour timeframe, a new high recorded as HH and in daily timeframe, lows going up from LL to HL and high going up from LH to HH hence daily chart is uptrend.
Also, you can predict that Daily HH would be respected as resistance line.
2.Visualize trends direction with colors based on HH/LH/HL/LL.
Background color will change based on break up/down of HH/LH/HL/LL.
———————
トレードを習得する上で多くの人が苦手意識を持つ「目線付け」。
この目線付けをダウ理論を元に訓練するためのインジケーターを開発しました。
高値·安値の更新状況に応じて相場の方向性を色で可視化するため、視覚的に目線付けをすることが可能です。
サンプルチャート
ダウ理論による目線付けの二つの方法
これは僕の持論ですが、ダウ理論による目線付けの方法には、「トレンドは明確なシグナルが出るまで継続する」という原則を共通の拠り所とする二つの方法があると考えています。
一つは日本人投資家/トレーダーにも良く知られている押し安値·戻り高値を基準とする方法。そしてもう一つは高値·安値の切り上げ·切り下げのみを基準とする方法です。
このインジケーターは後者の方法で目線を可視化します。
(もちろん押し安値·戻り高値と併用した目線判断にも活用可能です。)
機能
1.上位足とチャートの時間軸両方のHigher High/Lower High/Higher Low/Lower Low(HH/LH/HL/LL)の表示(MTF機能)
上位足タイムフレームのHH/LH/HL/LLとチャートタイムフレームのHH/LH/HL/LLを同時に表示することができます。
チャートタイムフレームのHH/LH/HL/LLはダウ理論に基づくトレンドの継続・反転の判断用に、上位足のHH/LH/HL/LLは上位足での高値・安値の切り上げ/切り下げ判断及びレジスタンス・サポートとして使うことができます。
上位足の選択には自動モードとマニュアルモードが選択可能です。自動モードを選択した場合、チャートのタイムフレームに応じて上位足が自動的に決定されます。マニュアルモードの場合は選択した時間軸が上位足タイムフレームとして適用されます。
上位足のHH/LH/HL/LLは選択したタイムフレーム未満でのみ表示されます。例えば上位足のタイムフレームとして日足を選択した場合、日足のHH/LH/HL/LLは日足未満でのみ表示されます。
サンプルチャート (AUDJPY 4H に日足のHH/LH/HL/LL を表示)
このチャートでは二つの異なるタイムフレームの高値・安値更新状況を一度に把握することができます。
4Hでは高値の切り上げが発生しているため、安値を更新しなければ上昇トレンド確定です。一方日足では安値がLLからHLへ(赤の矢印)、高値がLHからHHへと切り上がり(緑の矢印)、上昇トレンドであることがわかります。
また、この場面では上位足のHHがレジスタンスとして機能する可能性も予測できます。
2.目線の方向を色で可視化
HH/LH/HL/LLの更新状況から目線を判断し、背景色とともに可視化します。
Higher High/Lower High/Higher Low/Lower Lowとは何か?
日本人投資家/トレーダーの中にはあまり馴染みのない方もいるかと思いますので、定義を記載します。
Higher High(HH)
切り上がった高値を意味します。当インジケーターでは一つ前の高値(HH/LH)から切り上がった場合にHHとしています。
Lower High(LH)
切り下がった高値を意味します。Lower Highなのでより低い方の高値という意味です。当インジケーターでは一つ前の高値(HH/LH)から切り下がった場合にLHとしています。
Higher Low(HL)
切り上がった安値を意味します。Higher Lowなのでより高い方の安値という意味です。当インジケーターでは一つ前の安値(HL/LL)から切り上がった場合にHLとしています。
Lower Low(LL)
切り下がった安値を意味します。当インジケーターでは一つ前の安値(HL/LL)から切り下がった場合にLLとしています。
使い方
高値·安値の切り上げ·切り下げの判断及びトレンド継続·転換の判断に活用
`security()` revisited [PineCoders]NOTE
The non-repainting technique in this publication that relies on bar states is now deprecated, as we have identified inconsistencies that undermine its credibility as a universal solution. The outputs that use the technique are still available for reference in this publication. However, we do not endorse its usage. See this publication for more information about the current best practices for requesting HTF data and why they work.
█ OVERVIEW
This script presents a new function to help coders use security() in both repainting and non-repainting modes. We revisit this often misunderstood and misused function, and explain its behavior in different contexts, in the hope of dispelling some of the coder lure surrounding it. The function is incredibly powerful, yet misused, it can become a dangerous WMD and an instrument of deception, for both coders and traders.
We will discuss:
• How to use our new `f_security()` function.
• The behavior of Pine code and security() on the three very different types of bars that make up any chart.
• Why what you see on a chart is a simulation, and should be taken with a grain of salt.
• Why we are presenting a new version of a function handling security() calls.
• Other topics of interest to coders using higher timeframe (HTF) data.
█ WARNING
We have tried to deliver a function that is simple to use and will, in non-repainting mode, produce reliable results for both experienced and novice coders. If you are a novice coder, stick to our recommendations to avoid getting into trouble, and DO NOT change our `f_security()` function when using it. Use `false` as the function's last argument and refrain from using your script at smaller timeframes than the chart's. To call our function to fetch a non-repainting value of close from the 1D timeframe, use:
f_security(_sym, _res, _src, _rep) => security(_sym, _res, _src )
previousDayClose = f_security(syminfo.tickerid, "D", close, false)
If that's all you're interested in, you are done.
If you choose to ignore our recommendation and use the function in repainting mode by changing the `false` in there for `true`, we sincerely hope you read the rest of our ramblings before you do so, to understand the consequences of your choice.
Let's now have a look at what security() is showing you. There is a lot to cover, so buckle up! But before we dig in, one last thing.
What is a chart?
A chart is a graphic representation of events that occur in markets. As any representation, it is not reality, but rather a model of reality. As Scott Page eloquently states in The Model Thinker : "All models are wrong; many are useful". Having in mind that both chart bars and plots on our charts are imperfect and incomplete renderings of what actually occurred in realtime markets puts us coders in a place from where we can better understand the nature of, and the causes underlying the inevitable compromises necessary to build the data series our code uses, and print chart bars.
Traders or coders complaining that charts do not reflect reality act like someone who would complain that the word "dog" is not a real dog. Let's recognize that we are dealing with models here, and try to understand them the best we can. Sure, models can be improved; TradingView is constantly improving the quality of the information displayed on charts, but charts nevertheless remain mere translations. Plots of data fetched through security() being modelized renderings of what occurs at higher timeframes, coders will build more useful and reliable tools for both themselves and traders if they endeavor to perfect their understanding of the abstractions they are working with. We hope this publication helps you in this pursuit.
█ FEATURES
This script's "Inputs" tab has four settings:
• Repaint : Determines whether the functions will use their repainting or non-repainting mode.
Note that the setting will not affect the behavior of the yellow plot, as it always repaints.
• Source : The source fetched by the security() calls.
• Timeframe : The timeframe used for the security() calls. If it is lower than the chart's timeframe, a warning appears.
• Show timeframe reminder : Displays a reminder of the timeframe after the last bar.
█ THE CHART
The chart shows two different pieces of information and we want to discuss other topics in this section, so we will be covering:
A — The type of chart bars we are looking at, indicated by the colored band at the top.
B — The plots resulting of calling security() with the close price in different ways.
C — Points of interest on the chart.
A — Chart bars
The colored band at the top shows the three types of bars that any chart on a live market will print. It is critical for coders to understand the important distinctions between each type of bar:
1 — Gray : Historical bars, which are bars that were already closed when the script was run on them.
2 — Red : Elapsed realtime bars, i.e., realtime bars that have run their course and closed.
The state of script calculations showing on those bars is that of the last time they were made, when the realtime bar closed.
3 — Green : The realtime bar. Only the rightmost bar on the chart can be the realtime bar at any given time, and only when the chart's market is active.
Refer to the Pine User Manual's Execution model page for a more detailed explanation of these types of bars.
B — Plots
The chart shows the result of letting our 5sec chart run for a few minutes with the following settings: "Repaint" = "On" (the default is "Off"), "Source" = `close` and "Timeframe" = 1min. The five lines plotted are the following. They have progressively thinner widths:
1 — Yellow : A normal, repainting security() call.
2 — Silver : Our recommended security() function.
3 — Fuchsia : Our recommended way of achieving the same result as our security() function, for cases when the source used is a function returning a tuple.
4 — White : The method we previously recommended in our MTF Selection Framework , which uses two distinct security() calls.
5 — Black : A lame attempt at fooling traders that MUST be avoided.
All lines except the first one in yellow will vary depending on the "Repaint" setting in the script's inputs. The first plot does not change because, contrary to all other plots, it contains no conditional code to adapt to repainting/no-repainting modes; it is a simple security() call showing its default behavior.
C — Points of interest on the chart
Historical bars do not show actual repainting behavior
To appreciate what a repainting security() call will plot in realtime, one must look at the realtime bar and at elapsed realtime bars, the bars where the top line is green or red on the chart at the top of this page. There you can see how the plots go up and down, following the close value of each successive chart bar making up a single bar of the higher timeframe. You would see the same behavior in "Replay" mode. In the realtime bar, the movement of repainting plots will vary with the source you are fetching: open will not move after a new timeframe opens, low and high will change when a new low or high are found, close will follow the last feed update. If you are fetching a value calculated by a function, it may also change on each update.
Now notice how different the plots are on historical bars. There, the plot shows the close of the previously completed timeframe for the whole duration of the current timeframe, until on its last bar the price updates to the current timeframe's close when it is confirmed (if the timeframe's last bar is missing, the plot will only update on the next timeframe's first bar). That last bar is the only one showing where the plot would end if that timeframe's bars had elapsed in realtime. If one doesn't understand this, one cannot properly visualize how his script will calculate in realtime when using repainting. Additionally, as published scripts typically show charts where the script has only run on historical bars, they are, in fact, misleading traders who will naturally assume the script will behave the same way on realtime bars.
Non-repainting plots are more accurate on historical bars
Now consider this chart, where we are using the same settings as on the chart used to publish this script, except that we have turned "Repainting" off this time:
The yellow line here is our reference, repainting line, so although repainting is turned off, it is still repainting, as expected. Because repainting is now off, however, plots on historical bars show the previous timeframe's close until the first bar of a new timeframe, at which point the plot updates. This correctly reflects the behavior of the script in the realtime bar, where because we are offsetting the series by one, we are always showing the previously calculated—and thus confirmed—higher timeframe value. This means that in realtime, we will only get the previous timeframe's values one bar after the timeframe's last bar has elapsed, at the open of the first bar of a new timeframe. Historical and elapsed realtime bars will not actually show this nuance because they reflect the state of calculations made on their close , but we can see the plot update on that bar nonetheless.
► This more accurate representation on historical bars of what will happen in the realtime bar is one of the two key reasons why using non-repainting data is preferable.
The other is that in realtime, your script will be using more reliable data and behave more consistently.
Misleading plots
Valiant attempts by coders to show non-repainting, higher timeframe data updating earlier than on our chart are futile. If updates occur one bar earlier because coders use the repainting version of the function, then so be it, but they must then also accept that their historical bars are not displaying information that is as accurate. Not informing script users of this is to mislead them. Coders should also be aware that if they choose to use repainting data in realtime, they are sacrificing reliability to speed and may be running a strategy that behaves very differently from the one they backtested, thus invalidating their tests.
When, however, coders make what are supposed to be non-repainting plots plot artificially early on historical bars, as in examples "c4" and "c5" of our script, they would want us to believe they have achieved the miracle of time travel. Our understanding of the current state of science dictates that for now, this is impossible. Using such techniques in scripts is plainly misleading, and public scripts using them will be moderated. We are coding trading tools here—not video games. Elementary ethics prescribe that we should not mislead traders, even if it means not being able to show sexy plots. As the great Feynman said: You should not fool the layman when you're talking as a scientist.
You can readily appreciate the fantasy plot of "c4", the thinnest line in black, by comparing its supposedly non-repainting behavior between historical bars and realtime bars. After updating—by miracle—as early as the wide yellow line that is repainting, it suddenly moves in a more realistic place when the script is running in realtime, in synch with our non-repainting lines. The "c5" version does not plot on the chart, but it displays in the Data Window. It is even worse than "c4" in that it also updates magically early on historical bars, but goes on to evaluate like the repainting yellow line in realtime, except one bar late.
Data Window
The Data Window shows the values of the chart's plots, then the values of both the inside and outside offsets used in our calculations, so you can see them change bar by bar. Notice their differences between historical and elapsed realtime bars, and the realtime bar itself. If you do not know about the Data Window, have a look at this essential tool for Pine coders in the Pine User Manual's page on Debugging . The conditional expressions used to calculate the offsets may seem tortuous but their objective is quite simple. When repainting is on, we use this form, so with no offset on all bars:
security(ticker, i_timeframe, i_source )
// which is equivalent to:
security(ticker, i_timeframe, i_source)
When repainting is off, we use two different and inverted offsets on historical bars and the realtime bar:
// Historical bars:
security(ticker, i_timeframe, i_source )
// Realtime bar (and thus, elapsed realtime bars):
security(ticker, i_timeframe, i_source )
The offsets in the first line show how we prevent repainting on historical bars without the need for the `lookahead` parameter. We use the value of the function call on the chart's previous bar. Since values between the repainting and non-repainting versions only differ on the timeframe's last bar, we can use the previous value so that the update only occurs on the timeframe's first bar, as it will in realtime when not repainting.
In the realtime bar, we use the second call, where the offsets are inverted. This is because if we used the first call in realtime, we would be fetching the value of the repainting function on the previous bar, so the close of the last bar. What we want, instead, is the data from the previous, higher timeframe bar , which has elapsed and is confirmed, and thus will not change throughout realtime bars, except on the first constituent chart bar belonging to a new higher timeframe.
After the offsets, the Data Window shows values for the `barstate.*` variables we use in our calculations.
█ NOTES
Why are we revisiting security() ?
For four reasons:
1 — We were seeing coders misuse our `f_secureSecurity()` function presented in How to avoid repainting when using security() .
Some novice coders were modifying the offset used with the history-referencing operator in the function, making it zero instead of one,
which to our horror, caused look-ahead bias when used with `lookahead = barmerge.lookahead_on`.
We wanted to present a safer function which avoids introducing the dreaded "lookahead" in the scripts of unsuspecting coders.
2 — The popularity of security() in screener-type scripts where coders need to use the full 40 calls allowed per script made us want to propose
a solid method of allowing coders to offer a repainting/no-repainting choice to their script users with only one security() call.
3 — We wanted to explain why some alternatives we see circulating are inadequate and produce misleading behavior.
4 — Our previous publication on security() focused on how to avoid repainting, yet many other considerations worthy of attention are not related to repainting.
Handling tuples
When sending function calls that return tuples with security() , our `f_security()` function will not work because Pine does not allow us to use the history-referencing operator with tuple return values. The solution is to integrate the inside offset to your function's arguments, use it to offset the results the function is returning, and then add the outside offset in a reassignment of the tuple variables, after security() returns its values to the script, as we do in our "c2" example.
Does it repaint?
We're pretty sure Wilder was not asked very often if RSI repainted. Why? Because it wasn't in fashion—and largely unnecessary—to ask that sort of question in the 80's. Many traders back then used daily charts only, and indicator values were calculated at the day's close, so everybody knew what they were getting. Additionally, indicator values were calculated by generally reputable outfits or traders themselves, so data was pretty reliable. Today, almost anybody can write a simple indicator, and the programming languages used to write them are complex enough for some coders lacking the caution, know-how or ethics of the best professional coders, to get in over their heads and produce code that does not work the way they think it does.
As we hope to have clearly demonstrated, traders do have legitimate cause to ask if MTF scripts repaint or not when authors do not specify it in their script's description.
► We recommend that authors always use our `f_security()` with `false` as the last argument to avoid repainting when fetching data dependent on OHLCV information. This is the only way to obtain reliable HTF data. If you want to offer users a choice, make non-repainting mode the default, so that if users choose repainting, it will be their responsibility. Non-repainting security() calls are also the only way for scripts to show historical behavior that matches the script's realtime behavior, so you are not misleading traders. Additionally, non-repainting HTF data is the only way that non-repainting alerts can be configured on MTF scripts, as users of MTF scripts cannot prevent their alerts from repainting by simply configuring them to trigger on the bar's close.
Data feeds
A chart at one timeframe is made up of multiple feeds that mesh seamlessly to form one chart. Historical bars can use one feed, and the realtime bar another, which brokers/exchanges can sometimes update retroactively so that elapsed realtime bars will reappear with very slight modifications when the browser's tab is refreshed. Intraday and daily chart prices also very often originate from different feeds supplied by brokers/exchanges. That is why security() calls at higher timeframes may be using a completely different feed than the chart, and explains why the daily high value, for example, can vary between timeframes. Volume information can also vary considerably between intraday and daily feeds in markets like stocks, because more volume information becomes available at the end of day. It is thus expected behavior—and not a bug—to see data variations between timeframes.
Another point to keep in mind concerning feeds it that when you are using a repainting security() plot in realtime, you will sometimes see discrepancies between its plot and the realtime bars. An artefact revealing these inconsistencies can be seen when security() plots sometimes skip a realtime chart bar during periods of high market activity. This occurs because of races between the chart and the security() feeds, which are being monitored by independent, concurrent processes. A blue arrow on the chart indicates such an occurrence. This is another cause of repainting, where realtime bar-building logic can produce different outcomes on one closing price. It is also another argument supporting our recommendation to use non-repainting data.
Alternatives
There is an alternative to using security() in some conditions. If all you need are OHLC prices of a higher timeframe, you can use a technique like the one Duyck demonstrates in his security free MTF example - JD script. It has the great advantage of displaying actual repainting values on historical bars, which mimic the code's behavior in the realtime bar—or at least on elapsed realtime bars, contrary to a repainting security() plot. It has the disadvantage of using the current chart's TF data feed prices, whereas higher timeframe data feeds may contain different and more reliable prices when they are compiled at the end of the day. In its current state, it also does not allow for a repainting/no-repainting choice.
When `lookahead` is useful
When retrieving non-price data, or in special cases, for experiments, it can be useful to use `lookahead`. One example is our Backtesting on Non-Standard Charts: Caution! script where we are fetching prices of standard chart bars from non-standard charts.
Warning users
Normal use of security() dictates that it only be used at timeframes equal to or higher than the chart's. To prevent users from inadvertently using your script in contexts where it will not produce expected behavior, it is good practice to warn them when their chart is on a higher timeframe than the one in the script's "Timeframe" field. Our `f_tfReminderAndErrorCheck()` function in this script does that. It can also print a reminder of the higher timeframe. It uses one security() call.
Intrabar timeframes
security() is not supported by TradingView when used with timeframes lower than the chart's. While it is still possible to use security() at intrabar timeframes, it then behaves differently. If no care is taken to send a function specifically written to handle the successive intrabars, security() will return the value of the last intrabar in the chart's timeframe, so the last 1H bar in the current 1D bar, if called at "60" from a "D" chart timeframe. If you are an advanced coder, see our FAQ entry on the techniques involved in processing intrabar timeframes. Using intrabar timeframes comes with important limitations, which you must understand and explain to traders if you choose to make scripts using the technique available to others. Special care should also be taken to thoroughly test this type of script. Novice coders should refrain from getting involved in this.
█ TERMINOLOGY
Timeframe
Timeframe , interval and resolution are all being used to name the concept of timeframe. We have, in the past, used "timeframe" and "resolution" more or less interchangeably. Recently, members from the Pine and PineCoders team have decided to settle on "timeframe", so from hereon we will be sticking to that term.
Multi-timeframe (MTF)
Some coders use "multi-timeframe" or "MTF" to name what are in fact "multi-period" calculations, as when they use MAs of progressively longer periods. We consider that a misleading use of "multi-timeframe", which should be reserved for code using calculations actually made from another timeframe's context and using security() , safe for scripts like Duyck's one mentioned earlier, or TradingView's Relative Volume at Time , which use a user-selected timeframe as an anchor to reset calculations. Calculations made at the chart's timeframe by varying the period of MAs or other rolling window calculations should be called "multi-period", and "MTF-anchored" could be used for scripts that reset calculations on timeframe boundaries.
Colophon
Our script was written using the PineCoders Coding Conventions for Pine .
The description was formatted using the techniques explained in the How We Write and Format Script Descriptions PineCoders publication.
Snippets were lifted from our MTF Selection Framework , then massaged to create the `f_tfReminderAndErrorCheck()` function.
█ THANKS
Thanks to apozdnyakov for his help with the innards of security() .
Thanks to bmistiaen for proofreading our description.
Look first. Then leap.
Multi Timeframe Relative Strength Index {DCAquant}Overview
The Multi Timeframe Relative Strength Index (MTF RSI) is a powerful technical analysis tool designed to provide insights into market momentum and potential trend reversals across multiple timeframes. Leveraging the Relative Strength Index (RSI) formula, this indicator offers traders a comprehensive view of market sentiment and identifies overbought and oversold conditions.
Key Features
RSI Calculation:
Utilizes the standard RSI calculation formula to measure the magnitude of recent price changes and assess the strength of market trends.
Employs a user-defined length parameter to customize the sensitivity of the RSI calculation based on trading preferences.
Multiple Timeframe Analysis:
Allows traders to analyze RSI values across up to six different timeframes, ranging from minutes to days, providing a holistic perspective on market dynamics.
Calculates RSI values independently for each selected timeframe, enabling comparison and trend identification.
Threshold Levels:
Defines overbought and oversold levels to highlight potential reversal points in market trends.
Offers flexibility in adjusting threshold levels based on individual risk tolerance and trading strategies.
Neutral Zone:
Establishes upper and lower neutral thresholds to identify periods of consolidation or sideways movement in price.
Helps traders distinguish between trending and ranging market conditions for more accurate analysis.
Moving Average Smoothing:
Provides the option to apply moving average smoothing to aggregated RSI values for enhanced clarity and reduced noise.
Enables smoother visualization of RSI trends, facilitating easier interpretation for traders.
Visual Representation:
Plots the aggregated MTF RSI values on the price chart, allowing traders to visually assess market momentum and potential reversal points.
Utilizes color-coded backgrounds to indicate Long, Short, or Neutral conditions for quick identification.
Dynamic Table Display:
Displays trading signals alongside graphical indicators (rocket for Long, snowflake for Short, and star for Neutral) in a customizable table format.
Offers flexibility in table placement and size to accommodate user preferences.
How to Use:
Parameter Configuration:
Adjust the length parameter to fine-tune the sensitivity of the RSI calculation based on the desired timeframe and trading strategy.
Define overbought and oversold levels to identify potential reversal points in market trends.
Customize upper and lower neutral thresholds to differentiate between trending and ranging market conditions.
Interpretation:
Monitor the aggregated MTF RSI values plotted on the price chart for signals of overbought or oversold conditions.
Pay attention to color-coded backgrounds and graphical indicators in the table for actionable trading insights.
Trading Strategy:
Consider entering Long positions when the aggregated MTF RSI is above the upper neutral threshold, indicating potential bullish momentum.
Evaluate Short opportunities when the aggregated MTF RSI falls below the lower neutral threshold, signaling possible bearish momentum.
Exercise caution during Neutral conditions, as there may be uncertainty in market direction.
Risk Management:
Combine MTF RSI analysis with robust risk management strategies, including stop-loss and take-profit levels, to manage trading risks effectively.
Practice prudent risk management and trade within your risk tolerance to minimize potential losses.
Disclaimer
Trading in financial markets involves risk, and past performance is not indicative of future results. The use of the MTF RSI indicator does not guarantee profits or prevent losses. Traders should conduct their own analysis, exercise caution, and seek advice from qualified financial professionals before making trading decisions.
Fair Value Gap█ OVERVIEW
This indicator displays the Fair Value Gap of the current timeframe and an additional higher timeframe. For each FVG the gaps act as targets creating bullish and bearish gaps that are often filled.
█ FEATURES
MTF Options
MidPoint FIll
Delete Old On Fill
Label FVG Timeframe
MTF Options
Enabling the MTF Options will allow the user to use the "MTF Timeframe" setting to choose what HTF Fair Value Gap to display
MidPoint FIll
A line plot at the Half way point will be included in the Fair Value Gap, this will be used to delete the gap when reached instead of a full fill.
Delete Old On Fill
Deletes historical Fair Value Gaps when filled.
Label FVG Timeframe
Labels Every Fair Value gap with there relevant timeframe to make it easier to determine which gap is being filled.
█ HOW TO USE IT
The indicator is quite straight forward in its application, providing users with targets that are often filled as they are seen as market imbalance.
Just applying it to your chart will provide the existing Fair Value Gaps. MTF Confluence is helpful in seeing what is happening on the macro perspective.
█ SUGGESTION
My suggestion for clarity is to use a different color to some degree between the MTF and Current TF as Opposed to text, keeps the chart clear.
█ LIMITATIONS OF PINE (Please read)
I see many users going on different indicators with MTF in mind and trying to use it for LTF data e.g. 1hour chart, and selecting 5min in chart settings.
This is not recommended by the team themselves and should be noted for use always use HTF: www.tradingview.com
To understand how to use fair value gaps I recommend learning about the subject some more, searching online will provide you resources. The internet is your friend when learning. All the best.
Multi SMA EMA WMA HMA BB (5+5 MAs + Bollinger Bands) by RRB
Multi SMA EMA WMA HMA BB (5+5 Moving Averages of Any Type with Bollinger Bands) by RagingRocketBull 2018
Version 1.0
This indicator shows multiple MAs of any type (SMA EMA WMA HMA etc) with BB on a chart at the same time with/without MTF support depending on the version.
There are several versions (published later): Simple, MTF, Pro MTF and Ultimate MTF. This is the Simple version. The Differences are listed below. All versions have BB
- Simple: you have 2 groups of MAs that can be assigned any type (5+5)
- MTF: +assign 1 custom Timeframe to any group combo (5+5 Custom TF)
- Pro MTF: +multiple Timeframes for multiple MA groups (4*3 MTF), horizontal levels and show max bars back options
- Ultimate MTF: +individual settings for each MA, multiple Timeframes
You can use different types of MAs as dynamic S/R levels to trade of off and MA crosses as signals for possible trend change (golden/death bull/bear crosses).
Most common MA types are: SMA, EMA, WMA, HMA.
Most common MA lengths are: 12, 20, 26, 30, 50, 100, 200, 400 etc.
Features:
- 2 groups of custom 5+5 MAs of any type including Hull Moving Average (HMA)
- BB
1. based on 3EmaBB, uses plot, fill, stdev and custom hma functions
2. swma has a fixed length = 4, alma and linreg have additional offset and smoothing params
Feel free to use. Good Luck!
Institutional Order Finder (IOF) - Hidden Order Block LiteInstitutional Order Finder (IOF) - Hidden Order Blocks
Institutional Order Finder (IOF) Indicator: Detecting Breaker Blocks and Hidden Order Blocks (HOBs)
The Institutional Order Finder (IOF) Lite is designed to assist traders in identifying breaker blocks, also known as hidden order blocks (HOBs). The indicator helps identify untouched bodies within order blocks and offers comprehensive analysis of fair value gaps (FVGs) and order blocks based on engulfing candles. The method for detecting engulfing patterns is customizable (available in the Pro version).
Features of the Institutional Order Finder (IOF) Lite Indicator
The indicator detects breaker blocks and distinguishes between complete HOBs and partial HOBs (PHOBs). An HOB is created when the body of a candle, to the left of an engulfing candle, ideally fits through the fair value gaps without being touched by wicks. The indicator differentiates between:
HOB (Hidden Order Block): The body completely fits through the FVGs and is untouched by wicks, making it a strong and reliable breaker block.
PHOB (Partial Hidden Order Block): The body does not fully fit, but at least the equilibrium (50% level of the body left of the engulfing candle) is covered by the FVGs.
The minimum requirement for a “good” HOB is for the equilibrium to be crossed by the FVGs. This method provides a focused and high-quality view of the market structure.
Visualization and Market Structure Analysis
The Institutional Order Finder (IOF) displays order blocks as lines, with the equilibrium being a critical analysis point. Once the equilibrium is reached, the order block is considered invalid. In addition to HOBs and PHOBs, the indicator also displays fair value gaps, as well as invalidated order blocks (OBs) and breaker blocks (BBs). Understanding these invalidations is essential for interpreting market behavior and potential turning points. The line representation offers a cleaner view, making it easier to combine multiple timeframes and spot clusters.
Multi-Timeframe Analysis (MTF)
The Lite version allows analysis of up to three different timeframes, helping traders observe the relevance and strength of order blocks across different time periods. For each selected timeframe, not only confirmed order blocks are shown, but also “potential order blocks (OBs) and breaker blocks (BBs).” These blocks are currently forming and are not yet confirmed. Potential OBs and BBs can provide crucial insights into the current market structure, especially for traders who seek early signals.
Lite Version and Limitations
The Lite version of the Institutional Order Finder (IOF) indicator has certain limitations. It can display only up to three timeframes, offers fewer customization options, and focuses on basic analysis tools. Nonetheless, the Lite version is a powerful tool for gaining initial insights into the functionality of the MT Breaker Block indicator and improving understanding of market structure.
Why Use the Institutional Order Finder (IOF) Indicator?
The Lite indicator offers a precise way to analyze and visualize order blocks and breaker blocks. By focusing on identifying untouched bodies and the equilibrium, the indicator provides a unique perspective on market structure, often missing from traditional order block indicators. With its ability to conduct multi-timeframe analysis and identify potential order blocks in real time, the IOF Lite indicator offers a detailed understanding of potential price movements.
Special thanks to Moneytaur for inspiring the creation of this indicator.
Settings Overview
GENERAL SETTINGS
Historical order blocks: Enables the display of historical order blocks on the chart.
Order blocks: Activates the detection and display of order blocks (OB).
Show high quality breaker blocks: Displays only high-quality breaker blocks (BB) that meet strict criteria. The lines for high-quality BBs are twice as thick as regular lines.
ENGULFING
Please choose Engulfing engine: Choose the type of engulfing pattern used to detect order blocks (e.g., “Engulfing Strict” for stricter criteria).
MTF SETTINGS
Default timeframe: Sets the default timeframe for order block analysis when the multi-timeframe (MTF) mode is turned off.
Show MTF order blocks: Enables the display of order blocks from multiple timeframes.
Timeframe 1, Timeframe 2, Timeframe 3: Specify the individual timeframes for MTF analysis.
Activate Timeframe 1, Activate Timeframe 2, Activate Timeframe 3: Control which MTF timeframes are actively used in the analysis.
ORDER BLOCK SETTINGS
Order Block Filter Strategy: Choose a filtering strategy to display only the most relevant OBs.
Extend order blocks to the right: Extends order blocks to the right until they are invalidated.
Show timeframe as label: Displays the timeframe of the order block as a label on the chart.
Bearish OB, Bullish OB, Breaker Block, Old Order Blocks, Old BB-Blocks (and possible): Choose colors for different types of order blocks and breaker blocks for easier visual distinction.
Label text color: Sets the color of the text within labels.
Label background color: Defines the background color of the labels.
Line width: Specifies the thickness of the lines that represent order blocks.
Please choose style of lines / current timeframe, Please choose style of lines / alternative timeframe: Choose the style of lines (e.g., solid or dotted) for the current and alternative timeframes.
Timeframe label offset in bars from actual bar: Determines the offset of labels relative to the candles, improving visibility.
FAIR VALUE GAPS
Show Fair Value Gaps: Activates the detection and display of fair value gaps (FVG), highlighting potential liquidity gaps.
FILTER SETTINGS
Number of Previous Candles (Candle Pattern Strength): Specifies the number of previous candles to analyze to determine the strength of the candle pattern.
Candle Size Multiplier (Candle Pattern Strength): Sets a multiplier for the candle size within the pattern to emphasize stronger patterns.
RSI Period (RSI): Defines the period for the RSI indicator, used to analyze overbought/oversold conditions.
Overbought Level (RSI), Oversold Level (RSI): Sets the RSI threshold values to identify potential trend reversal points.
Minimum Volume (Volume): Specifies the minimum volume that must be reached to validate order blocks and breaker blocks.
This guide provides a comprehensive breakdown of the Institutional Order Finder (IOF) Lite Indicator settings, allowing you to customize and maximize the indicator’s functionality for optimal trading insights.
Price Action Toolkit | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Price Action Toolkit indicator! Price Action Toolkit integrates key level strategy , traditional supply-demand analysis , and market structures to help traders in their decisions. Now with features that are available to use in multiple timeframes!
Features of the new Price Action Toolkit indicator :
Volumized Fair Value Gaps (FVGs)
Volumized Order & Breaker Blocks
Identification of Market Structures
Equal Highs & Lows
Buyside & Sellside Liquidity
Premium & Discount Zones
MTF Highs & Lows (Daily, Weekly, Monthly, Pre-Market)
Customizable Settings
📌 HOW DOES IT WORK ?
We believe that the analytical elements that are within this indicator work best when they co-exist with each other on the chart. Trading often requires taking multiple elements into consideration for better accuracy on market analysis. Thus, we combined some of the useful strategies in one indicator for ease of use.
1. Volumized Fair Value Gaps
Fair value gaps often occur when there is an imbalance in the market, and can be spotted with a specific formation on the chart.
The volume when the FVG occurs plays an important role when determining the strength of it, so we've placed two bars on the FVG zone, indicating the high & low volumes of the FVG. The high volume is the total volume of the last two bars on a bullish FVG, while the low volume is - of the FVG. For a bearish FVG, the total volume of the last two bars is the low volume. The indicator can also detect FVGs that exist in other timeframes than the current chart.
2. Volumized Order Blocks
Order blocks occur when there is a high amount of market orders exist on a price range. It is possible to find order blocks using specific formations on the chart.
The high & low volume of order blocks should be taken into consideration while determining their strengths. The determination of the high & low volume of order blocks are similar to FVGs, in a bullish order block, the high volume is the last 2 bars' total volume, while the low volume is the oldest bar's volume. In a bearish order block scenerio, the low volume becomes the last 2 bars' total volume.
3. Volumized Breaker Blocks
Breaker blocks form when an order block fails, or "breaks". It is often associated with market going in the opposite direction of the broken order block, and they can be spotted by following order blocks and finding the point they get broken, ie. price goes below a bullish order block.
The volume of a breaker block is simply the total volume of the bar that the original order block is broken. Often the higher the breaking bar's volume, the stronger the breaker block is.
4. Market Structures
Sometimes specific market structures form and break as the market fills buy & sell orders. Formed Change of Character (CHoCH) and Break of Structure (BOS) often mean that market will change direction, and they can be spotted by inspecting low & high pivot points of the chart.
5. Equal Highs & Lows
Equal Highs & Lows occur when there is a significant amount of difference between a candle's close price and it's high / low value, and it happens again in a specific range. EQH and EQL usually mean there is a resistance that blocks the price from going further up / down.
6. Buyside & Sellside Liquidity
Buyside & Sellside Liquidity zones are where most traders place their take-profits and stop-losses in their long / short positions. They are spotted by using high & low pivot points on the chart.
7. Premium & Discount Zones
The premium zone is a zone that is over the fair value of the asset's price, and the discount zone is the opposite. They are formed by the latest high & low pivot points.
8. MTF Highs / Lows
MTF Highs / Lows are actually pretty self-explanatory, you can enable / disable Daily, Weekly, Monthly & Pre-Market Highs and Lows.
🚩UNIQUENESS
Our new indicator offers a comprehensive toolkit for traders, combining multiple analytical elements with customizable settings to aid in decision-making across different market conditions and timeframes. The volumetric information of both FVGs and Order & Breaker Blocks will be present in your chart to serve you greater detail about them. The indicator also efficiently identifies market structures, liquidity zones and premium & discount zones to give you an insight about the current state of the market. And finally with the use of multiple timeframes , you can easily take a look at the bigger picture. We recommend reading the "How Does It Work" section of the descripton to get a better understanding about how this indicator is unique to others.
⚙️SETTINGS
1. General Configuration
Show Historic Zones -> This will show historic Fair Value Gaps, Order & Breaker Blocks and Sellside & Buyside liquidities which are expired.
2. Fair Value Gaps
Enabled -> Enables / Disables Fair Value Gaps
Volumetric Info -> The volumetric information of the FVG Zones will be rendered if activated.
Zone Invalidation -> Select between Wick & Close price for FVG Zone Invalidation.
Zone Filtering -> With "Average Range" selected, algorithm will find FVG zones in comparison with average range of last bars in the chart. With the "Volume Threshold" option, you may select a Volume Threshold % to spot FVGs with a larger total volume than average.
FVG Detection -> With the "Same Type" option, all 3 bars that formed the FVG should be the same type. (Bullish / Bearish). If the "All" option is selected, bar types may vary between Bullish / Bearish.
Detection Sensitivity -> You may select between Low, Normal or High FVG detection sensitivity. This will essentially determine the size of the spotted FVGs, with lower sensitivies resulting in spotting bigger FVGs, and higher sensitivies resulting in spotting all sizes of FVGs.
3. Order Blocks
Enabled -> Enables / Disables Order Blocks
Volumetric Info -> The volumetric information of the Order Blocks will be rendered if activated.
Zone Invalidation -> Select between Wick & Close price for Order Block Invalidation.
Swing Length -> Swing length is used when finding order block formations. Smaller values will result in finding smaller order blocks.
4. Breaker Blocks
Enabled -> Enables / Disables Breaker Blocks
Volumetric Info -> The volumetric information of the Breaker Blocks will be rendered if activated.
Zone Invalidation -> Select between Wick & Close price for Breaker Block Invalidation.
5. Timeframes
You can set and enable / disable up to 3 timeframes. Note that only higher timeframes than the current chart will work.
6. Market Structures
Break Of Structure ( BOS ) -> If the current structure of the market is broken in a bullish or bearish direction, it will be displayed.
Change Of Character ( CHoCH ) -> If the market shifts into another direction, it will be displayed.
Change Of Character+ ( CHoCH+ ) -> This will display stronger Change Of Characters if enabled.
7. Equal Highs & Lows
EQH -> Enables / Disables Equal Highs.
EQL -> Enables / Disables Equal Lows.
ATR Multiplier (0.1 - 1.0) -> Determines the maximum difference between highs / lows to be considered as equal. Lower values will result in more accurate results.
8. Buyside & Sellside Liquidity
Zone Width -> Determines the width of the liquidity zones, 1 = 0.025%, 2 = 0.05%, 3 = 0.1%.
9. Premium & Discount Zones
Enabled -> Enables / Disables Premium & Discount Zones.
10. MTF Highs / Lows
You can enable / disable Daily, Weekly, Monthly & Pre-Market Highs and Lows using this setting. You can also switch their line shapes between solid, dashed and dotted.
[ADOL_]Trend_Oscillators_MTF
ENG) Trend_Oscillator_MTF
introduction)
This is a trend analyzer implemented in the form of an oscillator.
An oscillator is a technical analysis tool that identifies the direction of market trends and determines the time period. Making it an oscillator means creating range. By setting the upper and lower limits like this, the unlimited expansion area that can appear on the chart is limited. As a limited area is created, we can identify oversold and overbought areas, which is good for checking momentum.
Through oscillatorization, you can find overbought, oversold, and current trend areas.
It adopts MTF and is a simple but functional indicator.
To use multiple time frames, use the timeframe.multiplier function.
A table was created using the table.new function, and various information windows were installed on the right side of the chart.
I hope this can be a destination for many travelers looking for good landmarks.
- 8 types of moving averages can be selected (in addition to independently developed moving averages), trend area display, signal display, up to 3 multi-time chart overlapping functions, information table display, volatility and whipsaw search, and alerts are possible.
- You can set various time zones in Timeframe. With three timeframes, you can check the conditions overlapping time at a glance.
principle)
Set up two moving averages with different speeds and make the relative difference.
Create the speed difference between the two moving averages using methods such as over = crossover(fast, slow) and under = crossunder(fast, slow).
The point at which the difference in relative speed decreases is where the possibility of inflection is high. Through the cross code, you can find out when the speed difference becomes 0.
Simply crossing the moving average is easy. To fine-tune the speed difference, it is necessary to re-establish the relationship between functions.
Painting the green and red areas is designed to be painted when the three time frames overlap.
Using the code of fill(fast, slow, color = fast>= slow? color.green: color.red, transp = 80, title = "fillcolor")
You can color and distinguish areas.
MA: You can select the MA_type. This is a necessary option because the profit/loss ratio for each item varies depending on the type of moving average.
Start: The starting value to set the oscillator range.
End: This is the last value to set the oscillator range.
Lenght: This is the number of candles used to calculate the calculation formula in the oscillator.
Timeframe: Set the time to overlap with up to 3 time frames.
repaint: You can choose whether to apply repaint. The default is OFF.
The coding for repaint settings for the indicator was written using the recommended method recommended by TradingView.
reference :
security(syminfo.tickerid, tf, src)
Trading method)
With the Multi-Time-Frame (MTF) function, the time zone set in the indicator is displayed the same in any chart time zone.
The repaint problem that occurred when using MTF was resolved by referring to TradingView's recommended code.
User can decide whether to repaint or not. The default is OFF.
- signal
Buy and Sell signals are displayed when there are 3 stacks. Even if there is no triple overlap, you can decide to buy or sell at the point where the short-term line and long-term line intersect.
Entry is determined through Buy and Sell signals, and exit is determined through BL (BuyLoss) and SL (SellLoss).
BL and SL can also be applied as entry.
You can judge overlap by the color of the lines. When two conditions overlap, it is orange, and when one condition overlaps, it is blue.
- Divergence
Divergence is a signal that arises from a discrepancy between the oscillator and the actual price.
Divergence can be identified because the range is set with conditions that have upper and lower limits.
- trend line
As shown in the picture, draw a downward trend line connecting the high points in the same area.
As shown in the picture, an upward trend line is drawn connecting the low points in the same area.
It can be used to view trend line breakout points that candles cannot display.
- Find a property for sale by amplitude
When the low point in the red area and the high point in the green area occur, the difference is regarded as one amplitude and the range is set.
Here, one amplitude becomes a pattern value that can go up or down, and this pattern value acts as support/resistance. It was developed in a unique way that is different from traditional methods and has a high standard of accuracy. This works best when using that indicator. Use 1, 2, 3, or 4 multiples of the amplitude range.
A multiple of 2 is a position with a high probability of a retracement.
- Whipsaw & volatility search section
Whipsaw refers to a trick that causes frequent trading in a convergence zone or confuses the trend in the opposite direction before it occurs. Whip saws are usually seen as having technical limitations that are difficult to overcome.
To overcome this problem, the indicator was created to define a section where whipsaw and volatility can appear. If a whipsaw & volatility indicator section occurs, a big move may occur later.
Alert)
Buy, Sell, BuyLoss, SellLoss, Whipsaw alert
Disclaimer)
Scripts are for informational and educational purposes only. Use of the script does not constitute professional and/or financial advice. You are solely responsible for evaluating the risks associated with your script output and use of the script.
KOR) 트렌드_오실레이터_MTF
소개)
이것은 오실레이터 형태로 구현된 트렌드 분석기 입니다.
오실레이터는 시장의 추세방향을 확인하고 기간을 결정하는 기술적 분석 도구입니다. 오실레이터로 만드는 것은 범위가 생기는 것을 의미합니다. 이렇게 상한과 하한을 정함으로써, 차트에서 나타날 수 있는 무제한적인 확장영역이 제한됩니다. 제한된 영역이 만들어짐에 따라 우리는 과매도와 과매수 구간을 식별할 수 있게 되며, 모멘텀을 확인하기 좋습니다.
오실레이터화를 통해, 과매수와 과매도, 현재의 트렌드 영역을 잘 찾을 수 있습니다.
MTF를 채택했으며, 단순하지만, 기능적으로 훌륭한 지표입니다.
멀티타임프레임을 사용하기 위해 timeframe.multiplier 함수를 사용합니다.
table.new 함수를 사용하여 table을 만들고, 차트 우측에 여러가지 정보창을 갖췄습니다.
좋은 지표를 찾는 많은 여행자들에게 이곳이 종착지가 될 수 있기를 바랍니다.
- 이평선 종류 8종 선택(독자적으로 개발한 이평선 추가), 추세영역표시, 시그널 표기, 최대 3개 멀티타임차트 중첩기능, 정보테이블 표시, 변동성과 휩쏘찾기, 얼러트가 가능합니다.
- Timeframe에서 다양한 시간대를 설정할 수 있습니다. 3개의 Timeframe을 통해 시간을 중첩한 조건을 한눈에 확인할 수 있습니다.
원리)
속도가 다른 두 개의 이평선을 설정하고 상대적인 차이를 만듭니다.
over = crossover(fast, slow) , under = crossunder(fast, slow) 와 같은 방법으로 두개의 이평선의 속도차이를 만듭니다.
상대적 속도의 차이가 줄어드는 시점은 변곡의 가능성이 높은 자리입니다. cross code를 통해 속도차가 0이 되는 시점을 알 수 있습니다.
단순히 이평선을 교차하는 것은 쉽습니다. 세밀하게 속도차이를 조정하는데 함수간의 관계를 다시 설정할 필요가 있습니다.
초록색과 빨간색의 영역을 칠하는 것은 3가지 타임프레임이 중첩될 때 칠하도록 만들어졌습니다.
fill(fast, slow, color = fast>= slow? color.green: color.red, transp = 80, title = "fillcolor") 의 코드를 사용하여
영역을 색칠하고 구분할 수 있습니다.
MA : MA_유형을 선택할 수 있습니다. 이평선의 종류에 따라 종목당 손익비가 달라지므로 꼭 필요한 옵션입니다.
Start : 오실레이터 범위를 설정할 시작값입니다.
End : 오실레이터 범위를 설정할 마지막값입니다.
Lenght : 오실레이터에서 계산식을 산출하기 위한 캔들의 개수입니다.
Timeframe : 최대 3개의 타임프레임으로 중첩할 시간을 설정합니다.
repaint : 리페인팅을 적용할지 선택할 수 있습니다. 기본값은 OFF 입니다.
해당 지표의 리페인트 설정에 관한 코딩은 트레이딩뷰에서 권장하는 추천 방법으로 작성되었습니다.
참고 :
security(syminfo.tickerid, tf, src)
매매방법)
Multi-Time-Frame(MTF) 기능으로 지표에서 설정한 시간대가 어느 차트 시간대에서나 동일하게 표시됩니다.
MTF 사용시 발생하는 리페인트 문제는 트레이딩뷰의 권장코드를 참고하여 해결했습니다.
사용자가 리페인트 여부를 결정할 수 있습니다. 기본값은 OFF 입니다.
- 시그널
시그널의 Buy와 Sell은 3중첩일 경우 표시됩니다. 3중첩이 아니라도 단기선과 장기선이 교차되는 시점에서 매매를 결정할 수 있습니다.
Buy와 Sell 시그널에서 진입을 결정하고 BL(BuyLoss)와 SL(SellLoss) 에서 exit를 결정합니다.
BL과 SL을 진입으로 응용할 수도 있습니다.
라인의 컬러로 중첩을 판단할 수 있습니다. 2개의 조건이 중첩되면 오렌지, 1개의 조건이 중첩되면 블루컬러입니다.
- 다이버전스
다이버전스는 오실레이터와 실제 가격의 불일치에서 발생하는 신호입니다.
상한과 하한이 있는 조건으로 범위를 설정하였기 때문에 다이버전스를 식별가능합니다.
- 추세선
그림과 같이 같은 영역의 고점을 이어 하락추세선을 긋습니다.
그림과 같이 같은 영역의 저점을 이어 상승추세선을 긋습니다.
캔들이 표시할 수 없는 추세선돌파 지점을 볼 수 있게 활용가능합니다.
- 진폭으로 매물대 찾기
빨간색 영역의 저점과 초록색 영역의 고점이 발생할 때, 그 차이를 하나의 진폭으로 보고 범위를 설정합니다.
여기서 하나의 진폭은 위나 아래로 갈 수 있는 패턴값이 되며, 이 패턴값은 지지/저항으로 작용합니다. 전통적인 방식에 없는 독창적인 방식으로 개발된 것으로 정확성 높은 기준입니다. 이것은 해당 지표를 사용할 때 가장 잘 맞습니다. 진폭 범위의 1배수,2배수,3배수,4배수 자리를 사용합니다.
2배수 자리는 다시 돌아오는 되돌림 확률이 높은 위치입니다.
- 휩쏘&변동성 찾기 구간
휩쏘는 수렴구간에서 잦은 매매를 유발하거나, 추세가 발생하기 전에 반대방향으로 혼란을 주는 속임수를 의미합니다. 휩쏘는 보통 극복하기 어려운 기술적 한계로 여겨집니다.
해당지표에서는 이를 극복하기 위해 휩쏘와 변동성이 나타날 수 있는 구간을 정의하도록 만들었습니다. 휩쏘&변동성 표시 구간이 발생하면 이후 큰 움직임이 발생할 수 있습니다.
얼러트)
Buy, Sell, BuyLoss, SellLoss, Whipsaw alert
면책조항)
스크립트는 정보 제공 및 교육 목적으로만 사용됩니다. 스크립트의 사용은 전문적 및/또는 재정적 조언으로 간주되지 않습니다. 스크립트 출력 및 스크립트 사용과 관련된 위험을 평가하는 책임은 전적으로 귀하에게 있습니다.
[ADOL_]Trend_Osilator_beta
ENG) Trend_Osilator_beta
Introduction)
This is an indicator that analyzes and displays trends.
By taking the form of an oscillator, upper and lower limits are established, which limits the unlimited range that can appear on the chart.
Through oscillatorization, you can find overbought, oversold, and current trend areas.
This version is a beta version, so signals and alerts do not occur.
It adopts MTF and is a simple but functional indicator. Complement your skills with the trading methods below.
To use multiple time frames, use the timeframe.multiplier function.
We created a table using the table.new function and displayed the time zone selected in the current indicator at the bottom right of the chart.
When using multiple indicators, you can easily distinguish the currently selected time.
Principle)
Set up two moving averages with different speeds and make the relative difference.
Create the speed difference between the two moving averages using methods such as over = crossover(fast, slow) and under = crossunder(fast, slow).
The point at which the difference in relative speed decreases is where the possibility of inflection is high. Through the cross code, you can find out when the speed difference becomes 0.
It was created by determining the green and red areas at the inflection point.
Using the code of fill(fast, slow, color = fast>= slow? color.green: color.red, transp = 80, title = "fillcolor")
You can color and distinguish areas.
MA: MA_type can be selected (limited)
Min: This is the starting value to set the oscillator range.
Max: This is the final value to set the oscillator range.
Lenght: This is the number of candles used to calculate the calculation formula in the oscillator.
repaint: You can choose whether to draw a repaint. The default is OFF.
The coding for repaint settings for the indicator was written using the optimal method recommended by TradingView.
Reference:
security(syminfo.tickerid, tf, src )
Trading method)
You can set different time zones in Timeframe. Even if you change the time frame of the chart, it is displayed based on the time set in the indicator.
If the timeframe is set to 4h in the indicator, the standard that occurs in 4h is retrieved and displayed even if the chart screen is adjusted to 15m or 30m.
This is a feature of Multi-Time-Frame (MTF). The repaint problem that occurred when using MTF was resolved by referring to TradingView's recommended code.
User can decide whether to repaint or not. The default is OFF.
In the green area, Buy is the dominant opinion, and in the red area, Sell is the dominant opinion. simple!
You can gain good insight by deciding to buy or sell without moving too far from the point where the area changes.
- Settings are the most common default values. It is also possible to change the settings, but leave the settings as is.
If you want to do short shots, you can select the time frame as 1 hour, 15 minutes, or whatever time you want. If you want to analyze big changes, you can select the time frame as 4 hours or daily.
The recommended basic time frame is 4 hours.
- Upward divergence
We confirm that 8/25 is the lowest point.
- trend line
- Find a property for sale by amplitud.
Breaking a trend line that candles cannot indicate, It can be used to view branches.
Disclaimer)
This indicator is not an indicator that guarantees absolute returns and is used for simple reference purposes. Accordingly, all trading decisions you make are solely your responsibility.
KOR) 트렌드_오실레이터_베타
소개)
이것은 트렌드를 분석하여 표기해주는 지표입니다.
오실레이터 형태를 갖춤으로써, 상한과 하한이 정해지며, 이로 인해 차트에서 나타날 수 있는 무제한적인 확장영역이 제한됩니다.
오실레이터화를 통해, 과매수와 과매도, 현재의 트렌드 영역을 잘 찾을 수 있습니다.
이 버전은 베타바전으로 시그널과 얼러트가 발생하지 않습니다.
MTF를 채택했으며, 단순하지만, 기능적으로 훌륭한 지표입니다. 아래 매매방법에서 능력을 보완하십시오.
멀티타임프레임을 사용하기 위해 timeframe.multiplier 함수를 사용합니다.
table.new 함수를 사용하여 table을 만들고, 차트 우측 하단에 현재 지표에서 선택한 시간대가 표시되도록 하였습니다.
여러개의 지표를 사용할 때 쉽게, 현재 선택된 시간을 쉽게 구분가능합니다.
원리)
속도가 다른 두 개의 이평선을 설정하고 상대적인 차이를 만듭니다.
over = crossover(fast, slow) , under = crossunder(fast, slow) 와 같은 방법으로 두개의 이평선의 속도차이를 만듭니다.
상대적 속도의 차이가 줄어드는 시점은 변곡의 가능성이 높은 자리입니다. cross code를 통해 속도차가 0이 되는 시점을 알 수 있습니다.
변곡점에서 초록색과 빨간색의 영역을 결정하는 방법으로 만들어졌습니다.
fill(fast, slow, color = fast>= slow? color.green: color.red, transp = 80, title = "fillcolor") 의 코드를 사용하여
영역을 색칠하고 구분할 수 있습니다.
MA : MA_유형을 선택할 수 있습니다.(제한적 사용)
Min : 오실레이터 범위를 설정할 시작값입니다.
Max : 오실레이터 범위를 설정할 마지막값입니다.
Lenght : 오실레이터에서 계산식을 산출하기 위한 캔들의 개수입니다.
repaint : 리페인팅을 그릴지 선택할 수 있습니다. 기본값은 OFF 입니다.
해당 지표의 리페인트 설정에 관한 코딩은 트레이딩뷰에서 권장하는 추천 방법으로 작성되었습니다.
참고 :
security(syminfo.tickerid, tf, src )
매매방법)
- Timeframe에서 다양한 시간대를 설정할 수 있습니다. 차트의 시간프레임을 바꿔도 지표에서 설정한 시간을 기준으로 표시해줍니다.
지표에서 Timeframe을 4h로 설정했다면, 차트화면을 15m으로 조정하거나 30m으로 조정해도 4h 에서 발생하는 기준을 가져와 보여줍니다.
이것은 Multi-Time-Frame(MTF)의 기능입니다. MTF 사용시 발생하는 리페인트 문제는 트레이딩뷰의 권장코드를 참고하여 해결했습니다.
사용자가 리페인트 여부를 결정할 수 있습니다. 기본값은 OFF 입니다.
초록색의 영역에서는 매수가 지배적인 의견이며, 빨간색의 영역에서는 매도가 지배적인 의견입니다. 단순!
영역이 바뀌는 시점에서 멀리 벗어나지 않고 매매를 결정하면 좋은 통찰력을 얻을 수 있습니다.
- 설정값은 가장 보편적인 기본값입니다. 설정값을 바꾸는 방법도 가능하지만, 설정값을 그대로 두고,
단타를 하고 싶으면 타임프레임을 1시간, 15분, 혹은 원하는 시간, 큰 변화를 분석하고 싶으면 타임프레임을 4시간, 날봉 으로 선택하면 되며,
추천하는 기본 시간프레임은, 4시간입니다.
- 상승다이버전스
를 통해 8/25이 최저점이 됨을 확인합니다. 하락다이버전스는 같은 원리로 반대방향으로 그릴 수 있습니다.
- 추세선
그림과 같이 같은 영역의 고점을 이어 하락추세선을 긋습니다. 상승추세선은 반대입니다.
캔들이 표시할 수 없는 추세선돌파 지점을 볼 수 있게 활용가능합니다.
- 진폭으로 매물대 찾기
빨간색 영역의 저점과 초록색 영역의 고점이 발생할 때, 그 차이를 하나의 진폭으로 보고 범위를 설정합니다.
여기서 하나의 진폭은 위나 아래로 갈 수 있는 패턴값이 되며, 이 패턴값은 지지/저항으로 작용합니다.
얼러트)
얼러트의 설정이 포함되어 있지 않습니다.
면책조항)
해당지표는 절대수익을 보장하는 지표가 아니며, 단순한 참고용으로 사용됩니다. 따라서, 귀하가 내리는 모든 거래 결정은 전적으로 귀하의 책임입니다.
RSI :: ALLinDivergence v10.0
Everything you see in this indicator has been designed with a single purpose, to ease your trading with simplify visual technical analysis of the market. It pulls data from 7 different TimeFrames and it can not be more simpler visual representation of its calculations when applied on chart.
When applied on chart, you will see GREEN/RED alternating MTF RSI line and its 70 overbought area and its 30 oversold area. There is a gentle purple colour line in the background which represents RSI line of the current TF (it is not crucial but it helps to know why MTF line turns RED or turns GREEN (crossing of those two).
HOW TO USE IT?
Rule 1.
TIMEFRAMES
Choose the best TimeFrame for the job. I use: 1min, 2min, 3min, 5min, 8min, 13min, 21min, 34min or 56min (golden ratio). You can also pick a different TF but only to up to 1h TF chart as it does not work well with TF over 1h. Smaller TF is used for SCALPING of DAY TRADING higher TF is used for SWING TRADING. You get the picture?
Rule 2
TO ENTER BUY/LONG POSITION: search for HigherLows on RSI MTF GREEN/RED LINE when it is coloured RED. To enter a position it should be confirmed with AALERT :: ALLinDivergence v 10.0 that "GREEN" Divergence is emerging.
TO ENTER SELL/SHORT POSITION: search for LowerHighs on RSI MTF GREEN/RED LINE when it is coloured GREEN. To enter a position it should be confirmed with ALERT :: ALLinDivergence v 10.0 that "RED" Divergence is emerging.
Rule 3
EXIT FROM BUY/LONG POSITION: search for HigherLows on RSI MTF GREEN/RED LINE.
EXIT FROM SELL/SHORT POSITION: search for LowerHighs on RSI MTF GREEN/RED LINE.
Rule 4
CAUTION
Do not rush to enter a position and try to predict what indicator will do next. It does not end well.
Be aware you are not exiting a position in panic that would be too soon or even worse, you get married to bad trade and you are not exiting even though you should exit by many signals you get.
Use risk management strategy to protect your capital.
Follow the rules and make your trading easier and better.