Market Structure [Truth Indie]Market Structure
Market structure is a crucial component of various trading methodologies. If you can accurately map the market structure, tailored to the volatility or assets you are trading, it helps you identify trends clearly and enhances the accuracy of your trading strategies.
This indicator facilitates easy and swift mapping of market structure for traders. The market structure in this indicator consists of 3 types:
1.Fractal structure
2.Internal structure
3.External structure
FRACTAL STRUCTURE MAPPING
-Wick breaks are sufficient for a Fractal break of structure.
-The precise moment when the price breaks a Fractal high or low confirms the break.
BULLISH & BEARISH FRACTAL STRUCTURE
Bullish Fractal Structure:
-A Fractal high is validated when the subsequent candle fails to surpass its high (fractal pullback).
-A Fractal higher low is validated once the price breaches the Fractal high (always identify the NEAREST Fractal low). This will be the most recent candle that was unable to exceed the high of the previous candle.
Bearish Fractal Structure:
-A Fractal low is validated when the following candle fails to break its low (fractal pullback).
-A Fractal lower high is validated once the price breaks the Fractal low (always identify the NEAREST Fractal high). This will be the most recent candle that was unable to surpass the low of the previous candle.
Settings
-Show or hide text and lines, including adjusting the color of text and lines.
-Adjust the size of text, and change the type of lines, including modifying text when there is a BoS and CHoCH.
-Mark swing when there is a valid pullback, adjust the size and color.
INTERNAL STRUCTURE MAPPING
Body breaks confirm an internal structure break.
BULLISH & BEARISH INTERNAL STRUCTURE
Bullish Internal Structure:
-An internal high is validated with 4 optional criteria.
-An internal higher low is validated when the internal high structure is broken. A higher low refers to the lowest price.
Bearish Internal Structure:
-An internal low is validated with 4 optional criteria.
-An internal lower high is validated when the internal high structure is broken. A lower high refers to the highest price.
Settings
-Show or hide text and lines, including adjusting the color of text and lines.
-Adjust the size of text, and change the type of lines, including modifying text when there is a BoS and CHoCH.
-Mark swing when there is a valid pullback, adjust the size and color.
Validation of pullback has 4 options for exploration, with the default value set to Fractal CHoCH 1 time:
1.Fractal CHoCH 1 time.
2.Fractal CHoCH and wait for Fractal BoS/Fractal CHoCH 3 times in a row.
3.PIP Rule, using PIP to determine the distance of a valid pullback.
-Show or hide lines and values. This option will only display results when you activate the PIP Rule. Change the style of lines and change the color of lines.
-In the PIP field, enter the PIP value you want to explore. In the 1 PIP Size field, enter the decimal places in the asset you are trading. For example, for the EUR/USD pair with decimals at position 4.
4.ATR Rule, utilizing ATR multiples to establish the range of a valid pullback.
-Show or hide lines and values. This option will only display results when you activate the ATR Rule. Change the style of lines and change the color of lines.
-ATR type allows you to choose from 5 ma types. ATR Period adjusts the backward-looking average value you want to explore. Multiple: Enter a multiplier value for ATR to match the volatility or asset you are trading.
If you choose only ATR Rule, the result is the validation of the pullback with ATR Rule only. If you choose more than 1 option, whichever condition is true, the validation pullback occurs immediately. If you don't choose anything, the default value is Internal CHoCH 1 time.
Swing internal structure
-Show or hide text and lines, including adjusting the color of text and lines.
-Adjust the size of text, and change the type of lines, including modifying text.
Equilibrium internal
-Show or hide text and lines, including adjusting the color of text and lines.
-Adjust the size of text, and change the type of lines, including modifying text.
-Adjust the percentage of Equilibrium.
EXTERNAL STRUCTURE MAPPING
Body breaks confirm an internal structure break.
BULLISH & BEARISH EXTERNAL STRUCTURE
Bullish external Structure:
-An external high is validated with 4 optional criteria.
-An external higher low is validated when the external high structure is broken. A higher low refers to the lowest price.
Bearish external Structure:
-An external low is validated with 4 optional criteria.
-An external lower high is validated when the external high structure is broken. A lower high refers to the highest price.
Settings
-Show or hide text and lines, including adjusting the color of text and lines.
-Adjust the size of text, and change the type of lines, including modifying text when there is a BoS and CHoCH.
-Mark swing when there is a valid pullback, adjust the size and color.
Validation of pullback has 4 options for exploration, with the default value set to Internal CHoCH 1 time:
1.Internal CHoCH 1 time.
2.Internal CHoCH and wait for Internal BoS/Internal CHoCH 3 times in a row.
3.PIP Rule, using PIP to determine the distance of a valid pullback.
-Show or hide lines and values. This option will only display results when you activate the PIP Rule. Change the style of lines and change the color of lines.
-In the PIP field, enter the PIP value you want to explore. In the 1 PIP Size field, enter the decimal places in the asset you are trading. For example, for the EUR/USD pair with decimals at position 4.
4.ATR Rule, utilizing ATR multiples to establish the range of a valid pullback.
-Show or hide lines and values. This option will only display results when you activate the ATR Rule. Change the style of lines and change the color of lines.
-ATR type allows you to choose from 5 ma types. ATR Period adjusts the backward-looking average value you want to explore. Multiple: Enter a multiplier value for ATR to match the volatility or asset you are trading.
If you choose only ATR Rule, the result is the validation of the pullback with ATR Rule only. If you choose more than 1 option, whichever condition is true, the validation pullback occurs immediately. If you don't choose anything, the default value is Internal CHoCH 1 time.
Swing external structure
-Show or hide text and lines, including adjusting the color of text and lines.
-Adjust the size of text, and change the type of lines, including modifying text.
Equilibrium external
-Show or hide text and lines, including adjusting the color of text and lines.
-Adjust the size of text, and change the type of lines, including modifying text.
-Adjust the percentage of Equilibrium.
The values of these 4 options are: 1. PIP Rule in the internal structure 2. ATR Rule in the internal structure 3. PIP Rule in the external structure 4. ATR Rule in the external structure
These 4 options will be displayed only when the rule is selected along with choosing to display the value.
DISCLAIMER
All investments involve risks. Profit or loss depends on your knowledge, understanding, and decisions.
My scripts/indicators/strategies are created for researching past price behavior only. They are not investment advice, and future results are not guaranteed.
Nonrepaintingindicator
SMC Fair Value Gap[Truth Indie]FVG (Fair Value Gap)
FVG is another component used in the SMC Concept.
This indicator will help you quickly identify FVG along with customizable market structure.
HISTORY FVG SETTING
-You can choose to show or hide the FVG (Fair Value Gap).
-You can choose to expand the History FVG to the right.
-You can change the number of History Internal FVG.
-You can change the number of History External FVG.
FVG Setting
-You can adjust the strength of the imbalance candlestick.
An example:
The imbalance candlestick in the image has a strength of 124.6 times compared to the previous candlestick.
FVG TEXT/COLOR SETUP
-You can change the name of FVG.
-Adjust the font size and color.
-Adjust the color of the FVG BOX and History BOX.
Market Structure
Comprising the process of breaking the price structure, resulting in BOS (Breakout of Structure) or CHoCH (Change of Character High), and creating new High or Low based on the price structure.
Structure Setting
1.You can choose to show or hide the swing of the structure.
2.Adjust the font size and color.
3.When the market forms a price structure with High and Low, when the price moves to disrupt the structure in either direction, it will lead to BOS or CHoCH, resulting in a new High or Low. You can adjust the method of breaking the structure using the close, high, or low.
Miner Inducement Setting
4.You can choose to show or hide the Minor Inducement.
5.You can choose to show or hide the Fibo Minor Inducement.
6.When price break the price structure, a High or Low will be formed on one side, and it will lead to an Inducement Swing. When the price moves and collides, it will create a price range of High and Low. You can adjust the method of breaking the structure using the close, high, or low.
7.There is an option for testing Fibonacci (Fibo). Its function is similar to the Inducement Swing. You can adjust the Fibonacci settings.
8.Adjust the length of the Minor Inducement swing.
- In this section, it functions similarly to Pivot Points High Low, capturing swings based on the specified length.
9.Adjust Fibo Minor Inducement.
- Fibo IDM helps filter Swing IDM.
- When the market is in an uptrend, IDM will be lower than Fibo IDM.
- When the market is in a downtrend, IDM will be higher than Fibo IDM.
-Adjust the font size.
-Adjust the color of the Fibo Minor Inducement.
-Adjust the color of the Fibo for break.
-Show or hide the Label Swing.
An example of a market in a downtrend.
1. Fibo IDM filters out Swing IDM that is above the Fibo line.
2. IDM occurs above the Fibo line in a downtrending market and below the Fibo line in an uptrending market.
3. An example of the Pivot Points High Low indicator with the length set to 3.
Premium & Discount Zone
-The Premium & Discount Zone will appear based on the current price structure. It helps you see the price zones you are interested in.
-You can adjust the %Premium & Discount as needed.
-Show or hide the premium & discount zone.
-Adjust the font size.
-Adjust the color of the premium & discount zone.
MTF Triple Kagi Indicator v1.0Introduction
The indicator attempts to implement three (3) time-based, multi-timeframe, non-repainting Kagi lines as an overlay to your chart and applying a trend bullish/bearish trend strength evaluation based on the position of the Kagi close prices between the Fast Kagi and Slow Kagi.
How is it original and useful?
This indicator is unique in that it combines a Fast and Slow Kagi timeframes and applies the following trend analysis to determine bullish/bearish strength:
Strong Bullish = when both Fast and Slow Kagi are below the current price and Slow is less than or equal to Fast Kagi.
Moderate Bullish = when both Fast and Slow Kagi are below the current price and Slow is greater than Fast Kagi.
Neutral = when current price is between the Fast and Slow Kagi.
Moderate Bearish = when both Fast and Slow Kagi are above the current price and Slow is less than Fast Kagi.
Strong Bearish = when both Fast and Slow Kagi are above the current price and Slow greater than or equal to Fast Kagi.
In addition, the indicator adds a Trigger Kagi that you can optionally use as a faster Kagi to see more confirmation of trend within the Fast/Slow Kagi combination. It is not used in the bullish/bearish comparison analysis but is simply informative in confirming the trend with a smaller timeframe than the Fast Kagi.
How does it compare to other scripts in the Public Library?
This indicator makes use of the security() function and applies the best-practices as provided by the PineCoders' script called `security()` revisited so that the indicator will not repaint when you refresh the chart or re-open it at a later date. In addition, at the time of initial publishing, this indicator is the only publicly available indicator that combines multiple time-based Kagi lines to offer a simple trend analysis status for short-term or long-term traders.
What does it do and how does it do it?
When applied to the chart for the first time, the default settings will work to produce Kagi lines from the beginning of the chart history up to the real-time bar. All three Kagi lines will default to the current chart's timeframe, therefore it is expected that you open the settings and adjust the Fast and Slow Kagi settings to provide the full effects of the indicator's features. The example chart above is using a 1-Hour chart with a Fast Kagi of 1 day (ATR(6)), a Slow Kagi of 1-Week (ATR(6)) and a Trigger Kagi of 6-Hours (ATR(14)). These settings are not universal for all markets; thus, it will require trial and error adjustments to tune the indicator to the specific market you are evaluating.
Lastly, the example chart above is illustrating how this indicator could be used with the 3Commas DCA Bot Strategy to provide entry and exit signals to simulate a bot's performance using the powerful Strategy Tester within TradingView to further evaluate the indicators influence on hypothetical trading conditions. The indicator provides a plot data point called "Kagi Bullish/Bearish Signal" that can be used in other chart strategies as a signal provider. The following is the meaning of the numeric signal value for this data point:
Strong Bullish = 2
Moderate Bullish = 1
Neutral = 0
Moderate Bearish = -1
Strong Bearish = -2
Enjoy! 😊👍
MTF Kagi Indicator v1.0Introduction
The indicator attempts to implement a time-based, multi-timeframe, non-repainting Kagi lines as an overlay to your chart using traditional candlesticks.
How is it original and useful?
This indicator is unique in that it allows you to choose from among three different methods to define the reversal amount. They are:
ATR (Average True Range): After each Kagi line is drawn, the latest ATR value from the selected timeframe will be used until a new vertical Kagi line is drawn. At this point, the latest ATR value will be used for the reversal amount until it changes again. This means that the reversal amount will adjust as price action volatility changes.
Fixed Amount: This method will be useful if you desire to fix the reversal amount, like the normal Kagi Chart. Thus, use this option if you desire to mimic the same Kagi Chart on TradingView.
Percent of Price: This method, like the ATR, will produce the reversal amount using the latest close price against the given percentage value.
In addition, the indicator will allow you to define the Up and Down line colors and width. You can even elect to have a Kagi line drawn on the real-time bar or not.
How does it compare to other scripts in the Public Library?
This indicator makes use of the security() function and applies the best-practices as provided by the PineCoders' script called " `security()` revisited " so that the indicator will not repaint when you refresh the chart or re-open it at a later date. In addition, the indicator provides three possible alerts for Alert Conditions or Any Alert() Function Call. They are:
"Break Shoulder" - this alert will trigger (Once Per Bar) when the close price crosses above the shoulder (higher) of the previous Kagi line.
"Break Waist" - this alert will trigger (Once Per Bar) when the close price crosses below the waist (lower) of the previous Kagi line.
"New Kagi Line" - this alert will trigger (Once Per Bar) when the indicator draws a new vertical Kagi line and continues to monitor the next trend change.
When using the "Any alert() function call" option in creating alerts, the following placeholders are supported in the alert message: {{shoulder_price}}, {{waist_price}}, and {{kagi_close_price}}
What does it do and how does it do it?
When applied to the chart for the first time, the default settings will work to produce Kagi lines from the beginning of the chart history up to the real-time bar. The Kagi line width will have a width of 1 pixel and the colors will match the normal color schemes that TradingView charts have for rising and falling colors. The reversal method will default to ATR with a period length of 14 so that it can provide a visually appealing Kagi lines where the reversal amount will be adaptive for all price charts. The default timeframe will be the chart's timeframe, but it can be changed to any higher timeframe. Using a timeframe that is lower than the current chart will not disable the indicator, but the lines will not be accurate since lower timeframe prices are being grouped to fit the current timeframe.
Enjoy! 😊👍
Multi Supertrend with no-repaint and HTF optionThis indicator has 2 Supertrends to filter the trend.
The Default one uses the same timeframe as chart.
The additional Supertrend is non-repaint type and can run on higher timeframes.
It has an auto-higher timeframe selection option, thanks to LonesomeTheBlue, the original author.
It is accurate on current timeframe also.
CRYPTOOO FOX (Alert of Trading System)CRYPTOOO FOX (Alert of Trading System) .
---DISCRIPTION---
How Indicator Work :
--Indicator is working on higher time frame so i use two high time frame
the higher is ( 2 H or 3 H or 4 H or 8 H or 12 H or Daily ) and the highest is ( Daily ) Time frame .
-- When the higher time frame cross over the Daily time frame( the Highest ) this mean the TREND and
the PRICE also going UP this strategy is going to long position ( Buy position ) .
-- When the higher time frame cross under Daily time frame( the Highest ) this mean the TREND and
the PRICE also going DOWN strategy going to ( close position ) .
-- Notes :
--Indicator use some averages to calculate the higher time frame .
--Indicator use parabolic indicator to filter entries which name is ( Filter )
--Indicator use one more candle close to confirm entry ( Filter 2 )
--This the best time frame ( HIGHER , HIGHEST ) in this strategy in profit and draw down .
--Indicator is working only in Long position i am not recommend to use it in short positions .
--THIS IS NO REPAINT Indicator .
--DON'T use it in DAILY time frame
--I recommend so mush to use take profit and stop loss although the low draw down but some time
the market have a huge movements .
RSI - MTF - Non RepaintUsing rsi with security function directly will cause repaint. Hence, doing it based on close price and calculating rsi via formula to avoid that. Hope this solves repainting issue.
Thanks to @Jittra for requesting this :)
Moving Average MTF Live [Experimental]Hello Everyone,
While using "Security" function for Higher Time Frames (htf) you must accept "Repainting" issue or better you must use previous day data such "security(syminfo.tickerid, 'D', close, lookahead=barmerge.lookahead_on)" that's best normally (or barmerge.lookahead_off). But the problem is (as you can see) it uses previous day data, and this causes latency.
So how to draw LIVE and NON-REPAINTING HTF moving averages?
Until the last candle of higher time frame all is fine and no repaint issue. when it came to last candle of HTF and if we use real data, (because of we can not know the future) while price is changing it starts drawing on each candle of current period without correcting old ones (this is repaint issue). it needs to calculate number of curent time frame candles for higher time frame and must change all points in that period as you can see in the video below.
We have "50 lines" limitation in current Pine version. we hope to have unlimited lines in next versions.
This work is completely experimetal.
btw Thanks to all Pine Platform Developers, They are doing very good job !
Better to watch following video to see how they look like:
P.S. There is no check for Higher time frame, so you should set time frame for HTF accordingly in the options.
Enjoy!