Risk Management Calculator with Fees and Take Profit [CHE]Risk Management Calculator with Fees and Take Profit
Welcome to the Risk Management Calculator with Fees and Take Profit script! This powerful tool is designed to help traders manage their risk effectively, calculate leverage, and set take profit targets. The script is inspired by and builds upon the ideas from the following TradingView script: ().
This script is inspired by and builds upon the ideas from the following TradingView script:
Features
1. Portfolio Size Input: Enter the size of your portfolio to accurately calculate your risk and leverage.
2. Max Loss Percent Input: Specify the maximum percentage of your portfolio that you are willing to risk on a single trade.
3. Max Leverage Input: Set the maximum leverage you are comfortable using.
4. Trading Fee Input: Include trading fees in your calculations to get a more realistic view of your potential losses and gains.
5. ATR Settings: Configure the ATR period and multiplier to calculate your stop loss and take profit levels.
6. RSI Settings: Adjust the RSI period for trend analysis.
How to Use
Portfolio Size
- Description: This is the total value of your trading account.
- Input: `portfolioSize`
- Default Value: 100
- Minimum Value: 0.001
Max Loss Percent
- Description: The maximum percentage of your portfolio you are willing to lose on a single trade.
- Input: `maxLossPercent`
- Default Value: 3%
- Range: 0.1% to 100%
Max Leverage
- Description: The maximum leverage you wish to use.
- Input: `maxLeverage`
- Default Value: 125
- Range: 1 to 125
Trading Fee
- Description: The fee percentage you pay per trade.
- Input: `feeRate`
- Default Value: 1%
- Range: 0% to 10%
ATR Settings
- ATR Period: Number of bars used to calculate the Average True Range.
- Input: `atrPeriod`
- Default Value: 5
- ATR Multiplier: Multiplier for ATR to set stop loss levels.
- Input: `atrMultiplier`
- Default Value: 2.0
Take Profit Multiplier
- Description: Multiplier for ATR to set take profit levels.
- Input: `takeProfitMultiplier`
- Default Value: 2.0
RSI Settings
- RSI Period: Period for the RSI calculation.
- Input: `rsiPeriod`
- Default Value: 14
Dashboard
The script includes a customizable dashboard that displays the following information:
- Portfolio Size
- Maximum Loss Amount
- Entry Price
- Stop Loss Price
- Stop Loss Percentage
- Calculated Leverage
- Order Value
- Order Quantity
- Trend Direction
- Adjusted Maximum Loss Percentage
- Take Profit Price
Dashboard Settings
- Location: Choose the position of the dashboard on the chart.
- Options: 'Top Right', 'Bottom Right', 'Top Left', 'Bottom Left'
- Size: Adjust the size of the dashboard text.
- Options: 'Tiny', 'Small', 'Normal', 'Large'
- Text/Frame Color: Set the color for the text and frame of the dashboard.
Underlying Principles and Assumptions
Leverage Calculation
The leverage calculation is fundamental to risk management in trading. It ensures that the risk per trade does not exceed a specified percentage of the portfolio. This calculation takes into account the potential loss from the entry price to the stop loss level, adjusted for trading fees. By dividing the maximum acceptable loss by the total potential loss (including fees), we derive a leverage that limits the exposure per trade. This approach helps traders avoid over-leveraging, which can lead to significant losses.
ATR and Stop Loss
The Average True Range (ATR) is used to set stop loss levels because it measures market volatility. A higher ATR indicates more volatility, which means wider stop losses are needed to avoid being prematurely stopped out by normal market fluctuations. By using an ATR multiplier, the stop loss is dynamically adjusted based on current market conditions, providing a more robust risk management strategy.
Take Profit Calculation
The take profit level is calculated as a multiple of the ATR, ensuring that it is set at a realistic level relative to market volatility. This method aims to capture significant price movements while avoiding the noise of smaller fluctuations. Setting take profit targets this way helps in locking in profits when the market moves favorably.
RSI for Trend Confirmation
The Relative Strength Index (RSI) is used to confirm the trend direction. An RSI above 50 typically indicates a bullish trend, while an RSI below 50 indicates a bearish trend. By aligning trades with the prevailing trend, the script increases the probability of successful trades. This trend confirmation helps in making informed decisions about leverage and position sizing.
Risk Color Coding
The script uses color coding to visually indicate the risk level and trend direction. Green indicates a favorable condition for long trades, red for short trades, and gray for neutral conditions. This intuitive color coding aids in quickly assessing the market conditions and making timely trading decisions.
Conclusion
This script aims to provide a comprehensive risk management tool for traders. By integrating portfolio size, leverage, fees, ATR, and RSI, it helps in making informed trading decisions. We hope you find this tool useful in your trading journey.
Happy Trading!
Chart patterns
Customizable NQ Level PlotterThis indicator, inspired by Kellyannnn, will plot user specified levels on the NQ Chart.
Add the levels you want to see, customize the colors, and you're good to go.
Let me give you an example of how this might be used:
Say, for example, that you have noticed that the NQ seems to move between the even hundred levels and the even fifty levels.... if you tell this indicator to plot those 2 levels at every even hundred and every even 50 level it will do so at:
18000
18050
18100
18150
18200
18250... and so on.
It will plot these levels above and below the current price.
If you want to add 2 other levels, you can do that as well.
So if you wanted to have it plot a line at every 00, 26, 50, and 77 it would do so like this:
18000
18026
18050
18077
18100
18126
18150
18177
18200
18226
18250
18277
18300... and so on.
Some people may find this helpful in planning their trades.
ICSM (Impulse-Correction & SCOB Mapper) [WinWorld]DESCRIPTION
ICSM (Impulse-Correction SCOB Mapper) is the indicator that analyzes the price movement and identifies valid impulses, corrections and SCOBs. It is a powerful tool that can be used with any type of technical analysis because it's flexible, informative, easy to use and it does substantially improve trader's awareness of the most liquid zones of interest.
SETTINGS
General | Visuals
Colour theme — defines the colour theme of the ICSM.
SCOB | Visuals
Show SCOB — enables/disables SCOB;
Mark SCOB with — represents a list of style options for SCOB representation;
SCOB colour — defines the colour of the SCOB;
ICM | Visuals
Show ICM lines — enables/disables ICM (Impulse-Correction Mapper) lines;
Show IC trend — enables/disables visualization of impulse-correction trend via coloured divider at the bottom of the chart;
Line colour — defines the colour of the ICM lines;
Line style — defines the style of the ICM lines;
Alerts
ICM — enables/disables alert for breaking ICM lines;
SCOB — enables/disables alert for SCOB creation;
ICM+SCOB — enables/disables alert for SCOB occurance at the end of the single impulse/correction, which grabs ICM line's liquidity.
ICM+SCOB (same candle) — enables/disables alert for SCOB occurance at the candle, which grabs ICM line's liquidity.
IMPORTANT CONCEPTS
In order to fully understand what ICSM can do, let's do a quick overview of the most important concepts that this indicator is built on.
By ICM we mean the liquidity grabbing of Impulse-Correction Mapper's lines (ICM lines; represented as dashed horizontal lines on the chart ). Saying shortly, liquidity grabs of ICM lines posses great opportunities for finding great entries.
SCOB (Single Candle Order Block) builds up by 3 simple rules:
Previous candle's liquidity is grabbed;
Current candle closes inside previous candle;
Imbalance occurs on the next candle.
SCOB is a quite useful zone of interest, from which the price usually reverses. You can also use SCOB as POI* on HTF** or as entry zone on LTF***.
* POI — Point Of Interest
* HTF — Higher TimeFrame
* LTF — Lower TimeFrame
"ICM+SCOB" is a short name that we use for event, at which price first grabs the liquidity from ICM line and then creates a SCOB at the same impulse/correction movement ( on the same ICM line, that does the liquidity grab ). Usually the SCOB that occurs after this event represents a highly liquid zone of interest , which should be considered when choosing entry level.
"ICM+SCOB (same candle)" is basically the same as "ICM+SCOB" event but with one major difference — the candle, which grabs the liquidity of ICM line, is also the candle at which the SCOB occurs, making such SCOB an even better zone of interest than a regular SCOB from ICM+SCOB event.
BIGGEST ADVANTAGES
ICSM precisely identifies impulses and corrections. Huge load of indicators on the TradingView does only show the simplest zones of interests, while ICSM uses our team's signature algorithms to precisely identify true impulses and corrections in the market, allowing traders to see both local and global price direction better and at the same time providing traders with the most liquid zones of interest;
ICSM shows points of interest and liquidity. The indicator identifies the nearest points of interest and zones, where the liquidity is concentrated, allowing you to find great entry and exit points for your trades;
ICSM has SCOB (Single Candle Order Block) detection function. ICM is packed with the extremely useful in SMC trading SCOB detetction feature, which allows you find even more solid points of interest;
ICSM has super minimalistic design, which contains only the things you really need. Your chart will not be overloaded with unnecessary information. You will only see clear points of interest, liquidity and price movement.
WHY SHOULD YOU USE IT?
As was said above, ICSM allows you to see the most profitable points and zones of interest, which professional SMC traders consider as one of the best in the market, because they are historically the areas from which the price bounces the most, allowing the smartest traders to get quick an clean profits with low drawdown.
In the ICSM indicator these zones are SCOB and ICM line liquidity grabs. By using these zones of interest to find entry points, you increase the chance to open a trade at the most lucrative price and reduce trading risks.
Considering what was said above, this indicator can help traders reduce drawdown risks and increase potential profits simply by showing the most liquid zones of interest, which are perfect for opening a trading position.
Here are some of the examples of how you leverage ICSM in your trading process:
Example of the short trade:
Price shows overall short trend. Trend liquidity is being formed.
Price grabs liduiqity from three ICM lines in a row and then creates a long SCOB at the end of 3rd liquidity grab.
SCOB, which occured at the end of ICM line, represents much stronger zone of interest than a regular SCOB. In this case it represents a zone, which we will use to find an entry.
The entry for the trade will be SCOB candle's low, stop-loss target should be put above SCOB candle's high. Our take-profit target is trend liquidity. See the screenshot above for better understanding.
▼ Now let's see the long trade example. ▼
Example of the long trade:
Price creates trend liquidity by showing equal highs ( EQH ).
Price grabs liduiqity from four ICM lines in a row and then creates a long SCOB at the end of 4th liquidity grab.
Again: SCOB, which occured at the end of ICM line, represents much stronger zone of interest than a regular SCOB. In this case it represents a zone, which we will use to find an entry.
The entry for the trade will be SCOB candle's high, stop-loss target should be put below SCOB candle's low. Our take-profit target is EQH. See the screenshot above for better understanding.
ALERTS
ICSM provides simple and easy alert customization, allwoing to choose only the alerts you want to receive. You can choose from the following alert options:
ICM — impulse or correction liquidity grab;
SCOB — SCOB is formed, wether or not the liquidity is grabbed from the impulse or correction;
SCOB+ICM — SCOB is formed after grabbing the liquidity of the ICM line;
SCOB+ICM (same candle) — SCOB is formed in the liquidity area of the impulse or correction.
HOW CAN I GET THE MOST OUT OF IT?
ICSM displays only the first liquidity of an impulse or correction, which matches the IDM (Inducement) in the Advanced SMC strategy . This strategy is completely covered in the World Class SMC indicator and is available for free for PDF in three parts.
You can also ICSM with any other strategy, because ICSM is a very flexible indicator and will help anyone improve their trading by making one aware of the high-quality liquidity on the chart.
Let's see how you can leverage ICSM with our World Class SMC indicator and other different strategies:
Example of the long & short trades with World Class SMC.
Long (1-3):
Price reached previous OB-EXT . This is the first sign for the potential price reversal;
ICM+SCOB happened after price reached OB-EXT;
After that, you can need to look for an entry on LTF. If you don't know how to do it, you can refer to our education materials.
Short (4-6):
Price reached OB-IDM , which is also a great sign for a potential upcoming price reversal;
ICM+SCOB occured after liquidity grab of the previous SCOB. This fact does strengthen the probability of the potential upcoming price reversal;
Now you need to switch to LTF and find an entry there.
Example of the short trade with simple Fibonacci retracement strategy.
Price grabs the liquidity of the ICM lines three times in a row, forming SCOB after the 3rd grab;
Price performs correctional move down without testing the SCOB, leaving no entry opportunity by our initial strategy, so we can add another strategy — Fibonacci retracement from 0.618 level — to our analysis in order to find an entry ;
We use Fibonacci grid with our initial strategy to find the best POI, that will align with the trend direction and will eventually become our entry point.
SUMMARY
ICSM is a unique indicator that indentifies zones and points of interests with high-quiality liquidity and can be both a stand-alone tool and can be integrated into any other strategy to increase the efficiency of analysis, accuracy of trading entries and reduce trading risks.
If you want to learn the SMC strategies that our team uses in our products, you can refer to our educational materials.
We hope that you will find a great use of ICSM and it will help you improve your perfomance as a trader. Best of luck, traders!
— with love, WinWorld Team
Multiple Divergences [UAlgo]🔶 Description:
"Multiple Divergences " is providing insights into potential divergences across multiple indicators. Divergence, a concept in technical analysis, occurs when the price of an asset diverges from the direction of an accompanying indicator, suggesting a possible reversal or continuation in the price trend.
🔶 Key Features:
Customizable Divergence Settings: Users can adjust parameters such as the minimum number of divergences required to display labels, pivot lookback periods, and plot options for various types of divergences (regular or hidden) and bullish/bearish labels.
Multiple Technical Indicators: The script supports a wide range of popular indicators, including MACD, RSI, Stochastic, CCI, Momentum, OBV, DMI Oscillator, VWmacd, Chaikin Money Flow, Money Flow Index, and Awesome Oscillator. You can choose any of the above-mentioned technical indicators for which you want to capture divergences.
🔶 Purpose of Using Multiple Technical Indicators
In the complex and volatile world of trading, relying on a single indicator can provide an incomplete or misleading picture of market conditions. Different technical indicators analyze various aspects of price movement, volume, and momentum, offering unique insights that can complement each other. By utilizing multiple indicators, traders can cross-verify signals, reduce false positives, and increase the reliability of their trading decisions.
Identifying divergences across multiple indicators further enhances this reliability, as a divergence spotted in several indicators simultaneously is a stronger signal than one found in isolation. This comprehensive approach helps traders to anticipate potential market turning points with greater confidence and precision.
By integrating multiple technical indicators and meticulously tracking their divergences, this script aims traders with a robust tool for navigating the complexities of financial markets.
🔶 How to Obtain Divergences
Regular Bullish Divergence:
This occurs when the price makes a new lower low compared to a previous pivot low, indicating a downward trend. Simultaneously, the selected oscillator makes a higher low compared to its previous pivot low, indicating a potential upward momentum. This divergence suggests that, despite the falling price, the underlying momentum is strengthening, potentially signaling a reversal to an upward trend.
Regular Bearish Divergence:
This happens when the price makes a new higher high compared to a previous pivot high, indicating an upward trend. Concurrently, the selected oscillator makes a lower high compared to its previous pivot high, indicating weakening momentum. This divergence suggests that, despite the rising price, the underlying momentum is weakening, potentially signaling a reversal to a downward trend.
Example for Regular Bullish and Regular Bearish Divergences (Minimum Divergenes Count to Display = 3, All Selected):
Hidden Bullish Divergence:
Hidden bullish divergence is observed when the price makes a higher low compared to a previous pivot low, indicating an upward trend. At the same time, the oscillator makes a lower low compared to its previous pivot low, indicating a potential strengthening momentum. This condition suggests that the underlying strength of the upward trend is intact, despite the oscillator indicating otherwise.
Hidden Bearish Divergence:
This occurs when the price makes a lower high compared to a previous pivot high, indicating a downward trend. Simultaneously, the oscillator makes a higher high compared to its previous pivot high, indicating a potential weakening momentum. This divergence suggests that the underlying weakness of the downward trend is intact, despite the oscillator indicating otherwise.
Divergence Labeling: The script dynamically generates labels on the chart to visually highlight detected divergences based on user-defined criteria. (E.g. "5 Regular Bullish Divs." , "1 Hidden Bearish Div")
🔶 Disclaimer:
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Half Cup [LuxAlgo]The Half Cup indicator detects and displays patterns with the shape of a Half Cup , initiating a channel. From this channel, breakouts are detected and highlighted with dots.
Users can control the shape of the Half Cup and the channel length through various settings.
Do note that the displayed half cups are displayed retrospectively, making them subject to backpainting.
🔶 USAGE
The idea behind the indicator is derived from the Cup & Handle pattern, which requires waiting for the pattern full completion.
Our Half Cup publication aims to find opportunities when the potential cup is only formed halfway.
In this example, a green dot shows the first breakout of the upper channel extremity. A few bars later, the price went under it, after which it returned above, triggering a second green dot. Both triggers were good opportunities in this case, and the price rose afterward.
The Half Cup pattern can be the start of a potential complete Cup & Handle (As in the example above, a complete Cup pattern (without the Handle ) is shown, manually drawn with dashed lines).
Every green/red dot, whether on a bullish or bearish pattern, points to a breakout respectively above/below the channel.
Besides drawing patterns and the corresponding breakouts, the Half Cup indicator can also provide insights into trends and potential opportunities in the long run.
🔶 DETAILS
🔹 Validation
Several criteria must be fulfilled before a visible pattern on the chart is drawn.
Calculations are done beforehand to know where the Half Cup pattern would be positioned.
The pattern's bottom and top edges are checked for the number of bars whose closing price is outside the half-cup area. When the number of breakouts above/below is equal to or lower than the user-defined settings ( Max % Breaks Top/Bottom ), the pattern is drawn together with a brighter-colored channel next to it.
Dots highlighting the channel's breakout can be drawn from that moment until the end of both channel lines.
🔹 Positioning
Users can adjust the following settings to fit their needs:
% Broadness: Moves the Top/Bottom line (bullish or bearish) diagonally upwards/downwards.
Vertical Shift: Shifts the entire pattern up/down.
Channel Length: Sets the line length of the channel.
Note that adjusting the position of the pattern will change the validation; the script will be rerun to check if patterns are still valid or if new patterns can be drawn. Some patterns may disappear, while new ones may appear.
Before adjusting the position, the user can set Max % Breaks Top/Bottom at 100%. When the positioning is set, Max % Breaks Top/Bottom can be set as desired.
🔹 Updated Drawings
The Half Cup pattern is always drawn retrospectively (that is it is subject to backpainting), the channel is drawn from the bar from where the pattern is detected. Every breakout of the channel will remain visible as dots.
When a new swing high/low is found while the previous swing low/high remains the same, the pattern is updated to minimize clutter. The dots of earlier drawings will remain visible (to ensure no repainting occurs), but the color becomes faded, as such bright dots are associated with patterns that are visible on the chart, while faded dots are from removed/updated patterns.
🔶 SETTINGS
Swing Length: Period used for the swing detection, with higher values returning longer-term Swing Levels.
🔹 Validation
Max % Breaks Bottom: Allowed maximum amount of bars where the closing price is below the bottom of the Half Cup pattern against the total width of the pattern (bars).
Max % Breaks Top: Allowed maximum amount of bars where the closing price is above the top of the Half Cup pattern against the total width of the pattern (bars).
🔹 Positioning
% Broadness: Moves the Top/Bottom line (bullish or bearish) diagonally upwards/downwards.
Vertical Shift: Shifts the entire pattern up/down.
Channel Length: Sets the line length of the channel.
Bearish 3 Bars Reversal PatternThis TradingView Pine Script indicator identifies and highlights a bearish 3-bar reversal pattern on your chart. The script also calculates the percentage difference between the current low and the previous high, displaying this value on the chart when the pattern is detected.
Features:
Pattern Detection:
The script detects a bearish 3-bar reversal pattern when the high of the previous bar is higher than the high of the bar before it, and the current high is lower than the previous high.
Percentage Difference Calculation:
When the pattern is detected, the script calculates the percentage difference between the current low and the previous high. This percentage is displayed on the chart.
Visual Indicators:
When a bearish 3-bar reversal pattern is detected, a label is created on the chart showing the calculated percentage difference. The label is styled with a downward arrow, red color, and white text for clear visibility.
Alerts:
An alert condition is set up to notify users when the bearish 3-bar reversal pattern is detected. This allows traders to take timely action based on the pattern.
Bullish 3 Bars Reversal PatternThis TradingView Pine Script indicator identifies and highlights a bullish 3-bar reversal pattern on your chart. The script also calculates the percentage difference between the current high and the previous low, displaying this value on the chart when the pattern is detected.
Features:
Pattern Detection:
The script detects a bullish 3-bar reversal pattern when the low of the previous bar is lower than the low of the bar before it, and the current low is higher than the previous low.
Percentage Difference Calculation:
When the pattern is detected, the script calculates the percentage difference between the current high and the previous low. This percentage is displayed on the chart.
Visual Indicators:
When a bullish 3-bar reversal pattern is detected, a label is created on the chart showing the calculated percentage difference. The label is styled with an upward arrow, green color, and white text for clear visibility.
Alerts:
An alert condition is set up to notify users when the bullish 3-bar reversal pattern is detected. This allows traders to take timely action based on the pattern.
Percentages from 52 Week HighThis script is helpful for anyone that wants to monitor 5, 10, 20, 30, 40, 50% drops from the 52 week moving high.
I have been using a version of this script for a few years now and thought I would share it back with the community as I wrote it in 2021 to find quick deals when flipping through charts of stocks I've been watching. I never seemed to find anything doing this simple yet intuitive thing and I found myself regularly computing these lines manually on each chart. This will save you from having to do that as it automatically draws each level on your chart based on the recent 52 week or daily high.
I recently added the ability to turn on/off different levels and defaulted to setting 5, 10, and 20 % drops from the 52 week high. You can also change this to be a 52 day moving high if that's your preference.
Please let me know if you have ideas for modification as I wanted to share this with the community given I had not seen anything out there giving me what I wanted - which is why I wrote it.
All the best friends.
Weekday H/L Raids Weekday H/L Raids
The "Weekday H/L Raids" indicator is a powerful tool designed to help traders identify and visualize key levels from previous days' highs and lows, track their raids, and manage alerts effectively. This script is equipped with numerous customizable features to suit your trading style and preferences.
Key Features:
Display Settings:
Show previous highs and lows: Toggle to display previous highs and lows on the chart.
Show labels: Toggle to display labels for the highs and lows.
Lookback days: Set the number of days to look back for high and low levels (1-10 days).
Style Settings:
Line Style: Choose between Solid, Dashed, or Dotted lines.
Line Width: Adjust the width of the lines (1-4).
High Color: Set the color for high levels (default: green).
Low Color: Set the color for low levels (default: red).
Label Size: Customize the label size (Tiny, Small, Normal, Large).
Table Settings:
Show table: Toggle to display a table summarizing the levels.
Table Position: Position the table at Top Left, Top Right, Bottom Left, or Bottom Right.
Number of Table Rows: Set the number of rows to display in the table (1-10).
Table Border Color: Choose the border color of the table.
Table Background Color: Choose the background color of the table.
Table Text Color: Choose the text color in the table.
Alert Settings:
Enable Alerts: Toggle to enable or disable alerts for when levels are raided.
How It Works:
The script identifies previous day high and low levels, allowing you to visualize these critical points on your chart. It updates these levels daily and checks if they are raided, providing visual cues and alerts when this occurs.
High and Low Levels: Automatically plots previous day's highs and lows with customizable styles.
Labels: Displays labels indicating high and low levels with optional customization for size and color.
Alerts: Get notified when a previous high or low is raided, ensuring you never miss critical market movements.
Table Summary: Summarizes the levels and their statuses (raided or not) in a table, with customizable position, colors, and size.
Usage:
Add the indicator to your chart.
Customize the display, style, table, and alert settings to fit your preferences.
Monitor the levels and respond to alerts as necessary.
Disclaimer:
This script is a tool to help analysts and traders visualize important levels and manage alerts. It does not provide financial advice or guarantee any trading results.
Prometheus IQR bandsThis indicator is a tool that uses market data to plot bands along with a price chart.
This tool uses interquartile range (IQR) instead of Standard Deviation (STD) because market returns are not normally distributed. There is also no way to tell if the pocket of the market you are looking at is normally distributed. So using methods that work better with non-normal data minimizes risk more than using a different process.
Calculation
Code for helper functions:
// Function to calculate the percentile value
percentile(arr, p) =>
index = math.floor(p * (array.size(arr) - 1) + 0.5)
array.get(arr, index)
manual_iqr(data, lower_percentile, upper_percentile)=>
// Sort the data
data_arr = array.new()
for i = 0 to lkb_
data_arr.push(close )
array.sort(data_arr)
sorted_data = data_arr.copy()
n = array.size(data_arr)
// Calculate the specified percentiles
Q1 = percentile(sorted_data, lower_percentile)
Q3 = percentile(sorted_data, upper_percentile)
// Calculate IQR
IQR = Q3 - Q1
// Return the IQR
IQR
IQRB(lkb_, sens)=>
sens_l = sens/100
sens_h = (100-sens)/100
val = manual_iqr(close, sens_l, sens_h)
sma = ta.sma(close, int(lkb_))
upper = sma + val
lower = sma - val
Percentile Calculation (percentile function):
Calculates the percentile value of an array (arr) at a given percentile (p).
Uses linear interpolation to find the exact percentile value in a sorted array.
Manual IQR Calculation (manual_iqr function):
Converts the input data into an array (data_arr) and sorts it.
Computes the lower and upper quartiles (Q1 and Q3) using the specified percentiles (lower_percentile and upper_percentile).
Computes the Interquartile Range (IQR) as IQR = Q3 - Q1.
Returns the computed IQR.
IQRB Function Calculation (IQRB function):
Converts the sensitivity percentage (sens) into decimal values (sens_l for lower percentile and sens_h for upper percentile).
Calls manual_iqr with the closing prices (close) and the lower and upper percentiles.
Calculates the Simple Moving Average (SMA) of the closing prices (close) over a specified period (lkb_).
Computes the upper and lower bands of the IQR using the SMA and the calculated IQR (val).
Returns an array containing the upper band, lower band, and SMA values.
After the IQR is calculated at the specified sensitivity it is added to and subtracted from a SMA of the specified period.
This provides us with bands of the IQR sensitivity we want.
Trade Examples
Step 1: Price quickly and strongly breaks below the bottom band and continues there for some bars.
Step 2: Price re-enters the bottom band and has a strong reversal.
Step 1: Price strongly breaks above the top band and continues higher.
Step 2: Price breaks below the top band and reverses to the downside.
Step 3: Price breaks below the bottom band after our previous reversal.
Step 4: Price regains that bottom band and reverses to the upside.
Step 5: Price continues moving higher and does not break above the top band or reverse.
Step 1: Price strongly breaks above the top band and continues higher.
Step 2: Price breaks below the top band and reverses to the downside.
Step 3: Price breaks below the bottom band after our previous reversal.
Step 4: Price regains that bottom band and reverses to the upside.
Step 5: Price strongly breaks above the top band after the previous reversal.
Step 6: Price breaks below the top band and reverses down.
Step 7: Price strongly breaks above the top band and continues moving higher.
Step 8: Price breaks below the top band and reverses down.
Step 9: Price strongly breaks above the top band and continues moving higher.
Step 10: Price breaks below the top band and reverses down.
Step 1: Price breaks above the top band.
Step 2: Price drops below the top band and chops slightly, without a large reversal from that break.
Step 3: Price breaks below the bottom band.
Step 4: Price re-enters the bottom band and just chops, no large reversal.
Step 5: Price breaks below the bottom band.
Step 6: Price retakes the bottom band and strongly reverses.
This tool can be uses to spot reversals and see when trends may continue as the stay inside the bands. No indicator is 100% accurate, we encourage traders to not follow them blindly and use them as tools.
PCH & PCL Indicator with Bias and Target TablePCH & PCL Indicator with Bias and Target Table
Description:
The "PCH & PCL Indicator with Bias and Target Table" is designed to help traders identify critical price levels and understand market bias. This indicator focuses on Previous Candle High (PCH) and Previous Candle Low (PCL) to determine potential breakouts and reversals, providing valuable insights for various market conditions.
Key Features:
PCH and PCL Levels:
The indicator calculates the high and low of the previous candle to establish PCH and PCL levels, which are essential for identifying potential support and resistance zones.
These levels are visually represented on the chart through rays and labels extended to the right for easy reference.
Market Bias Detection:
The indicator evaluates market bias based on the closing price relative to PCH and PCL levels:
Bullish Bias: Triggered when the closing price exceeds the previous high.
Bearish Bias: Triggered when the closing price drops below the previous low.
Neutral Bias: Indicated when there are no significant breakouts or reversals.
Reversal Conditions:
The indicator checks for potential reversal patterns:
Reversal Up: Occurs when the low dips below the previous low, but the closing price recovers above it.
Reversal Down: Occurs when the high surpasses the previous high, but the closing price falls below it.
These conditions help traders anticipate potential trend changes.
Bias and Target Table:
A table is displayed at the bottom-right corner of the chart, summarizing the current market bias, PCH, and PCL values.
The table provides a quick and comprehensive view of the market state, aiding in prompt decision-making.
Customization:
Traders can choose to show or hide labels for PCH and PCL levels.
Label positions can be customized using X and Y offset inputs to fit individual preferences and chart setups.
How It Works:
The indicator updates the previous high and low values at the close of each candle. It then evaluates the market bias based on the relationship between the closing price and the previous high/low levels. If a breakout or reversal condition is met, the indicator updates the bias status and reflects it in the bias and target table.
Use Cases:
Trend Following: Identify and follow significant breakouts above PCH or below PCL levels to capitalize on momentum.
Reversal Trading: Detect potential reversal points using reversal up/down conditions to enter trades counter to the prevailing trend.
Support and Resistance: Utilize PCH and PCL levels as dynamic support and resistance levels for setting stop-loss and take-profit targets.
Unique Value Proposition:
The "PCH & PCL Indicator with Bias and Target Table" stands out by integrating critical price levels with dynamic market bias detection, providing traders with a comprehensive tool for analyzing market trends and reversals. Its customizable features and easy-to-interpret visuals make it an indispensable addition to any trader's toolkit.
Price Action Toolkit Lite [UAlgo]The Price Action Toolkit Lite is a comprehensive indicator designed to enhance your chart analysis with advanced price action tools. This powerful toolkit combines multiple technical analysis concepts to provide traders with a clear visualization of market structure, liquidity levels, order blocks, and trend lines. By integrating these elements, the indicator aims to offer a holistic view of price action, helping traders identify potential entry and exit points, as well as key levels of interest in the market.
🔶 Key Features
Market Structure Analysis: The indicator includes a ZigZag feature to highlight significant market highs and lows, aiding in the visualization of market structure changes and trends.
Liquidity Sweeps Detection: It identifies and displays liquidity sweeps, which are crucial for recognizing potential market reversals and areas of interest where significant price action is likely to occur.
Order Blocks: Automatically detects and draws order blocks, highlighting areas of institutional buying and selling pressure, which can serve as key support and resistance levels.
Trend Lines: The toolkit can draw and extend trend lines based on pivot points, providing a clear view of prevailing market trends and potential breakout points.
Customizable Settings: Users can adjust various settings, including the length of the ZigZag, liquidity detection sensitivity, the number of order blocks to display, and trend line detection parameters, allowing for a tailored analysis experience.
🔶 Disclaimer
The "Price Action Toolkit Lite " is intended for educational and informational purposes only.
It is not financial advice and should not be construed as such. Trading in financial markets involves substantial risk, including the risk of loss.
Past performance is not indicative of future results.
🔷 Similar Scripts
FVG Instantaneous Mitigation Signals [LuxAlgo]The FVG Instantaneous Mitigation Signals indicator detects and highlights "instantaneously" mitigated fair value gaps (FVG), that is FVGs that get mitigated one bar after their creation, returning signals upon mitigation.
Take profit/stop loss areas, as well as a trailing stop loss are also included to complement the signals.
🔶 USAGE
Instantaneous Fair Value Gap mitigation is a new concept introduced in this script and refers to the event of price mitigating a fair value gap one bar after its creation.
The resulting signal sentiment is opposite to the bias of the mitigated fair value gap. As such an instantaneously mitigated bearish FGV results in a bullish signal, while an instantaneously mitigated bullish FGV results in a bearish signal.
Fair value gap areas subject to instantaneous mitigation are highlighted alongside their average level, this level is extended until reached in a direction opposite to the FVG bias and can be used as a potential support/resistance level.
Users can filter out less volatile fair value gaps using the "FVG Width Filter" setting, with higher values highlighting more volatile fair value gaps subject to instantaneous mitigation.
🔹 TP/SL Areas
Users can enable take-profit/stop-loss areas. These are displayed upon a new signal formation, with an area starting from the mitigated FVG area average to this average plus/minus N ATRs, where N is determined by their respective multiplier settings.
Using a higher multiplier will return more distant areas from the price, requiring longer-term variations to be reached.
🔹 Trailing Stop Loss
A trailing-stop loss is included, increasing when the price makes a new higher high or lower low since the trailing has been set. Using a higher trailing stop multiplier will allow its initial position to be further away from the price, reducing its chances of being hit.
The trailing stop can be reset on "Every Signal", whether they are bullish or bearish, or only on an "Inverse Signal", which will reset the trailing when a signal of opposite bias is detected, this will preserve an existing trailing stop when a new signal of the same bias to the present one is detected.
🔶 DETAILS
Fair Value Gaps are ubiquitous to price action traders. These patterns arise when there exists a disparity between supply and demand. The action of price coming back and filling these imbalance areas is referred to as "mitigation" or "rebalancing".
"Instantaneous mitigation" refers to the event of price quickly mitigating a prior fair value gap, which in the case of this script is one bar after their creation. These events are indicative of a market more attentive to imbalances, and more willing to correct disparities in supply and demand.
If the market is particularly sensitive to imbalances correction then these can be excessively corrected, leading to further imbalances, highlighting a potential feedback process.
🔶 SETTINGS
FVG Width Filter: Filter out FVGs with thinner areas from returning a potential signal.
🔹 TP/SL
TP Area: Enable take-profit areas for new signals.
Multiplier: Control the distance from the take profit and the price, with higher values returning more distant TP's.
SL Area: Enable stop-loss areas for new signals.
Multiplier: Control the distance from the stop loss and the price, with higher values returning more distant SL's.
🔹 Trailing Stop
Reset Trailing Stop: Determines when the trailing stop is reset.
Multiplier: Controls the initial position of the trailing stop, with higher values returning more distant trailing stops.
Normalized Relative Strength LineNormalized Relative Strength Line Indicator
Overview
The "Normalized Relative Strength Line" indicator measures the relative performance of a stock compared to a benchmark index (e.g., NSE
). This indicator helps traders and investors identify whether a stock is outperforming or underperforming the selected benchmark over a specified lookback period. The values are normalized to a range of -100 to +100 for easy interpretation.
Key Features
Comparison Symbol: Users can select a benchmark index or any other comparison symbol to measure relative performance.
Lookback Period: A user-defined period for normalization, typically set to a number of trading days (e.g., 252 days for one year).
Relative Strength Calculation: The indicator calculates the percentage change in price for both the stock and the comparison symbol from the start of the lookback period.
Normalization: The relative strength values are normalized to a range of -100 to +100 to facilitate comparison and visualization.
Smoothing: An optional 14-period simple moving average (SMA) is applied to the normalized relative strength line for a smoother representation of trends.
Interpretation
Positive Values (+100 to 0): When the normalized relative strength (RS) line is above 0, it indicates that the stock is outperforming the comparison symbol. Higher values signify stronger outperformance.
Negative Values (0 to -100): When the normalized RS line is below 0, it indicates that the stock is underperforming the comparison symbol. Lower values signify stronger underperformance.
Horizontal Line at 0: The horizontal line at 0 serves as a reference point. Crossing this line from below indicates a shift from underperformance to outperformance, and crossing from above indicates a shift from outperformance to underperformance.
Crossovers: The points where the RS line crosses the moving average (red line) can signal potential changes in relative performance trends.
Example Use Case
If the normalized RS line of a stock consistently remains around +100, it suggests that the stock has been strongly outperforming the comparison symbol over the selected lookback period. Conversely, if it remains around -100, it suggests strong underperformance.
Equal Highs and Lows {Reh's and Rel's }# Equal Highs and Lows {Reh's and Rel's} Indicator
## Overview
The "Equal Highs and Lows {Reh's and Rel's}" indicator is designed to identify and mark equal highs and lows on a price chart. It detects both exact and relative equal levels, draws lines connecting these levels, and optionally labels them. This tool can help traders identify potential support and resistance zones based on historical price levels.
## Key Features
1. **Exact and Relative Equality**: Detects both precise price matches and relative equality within a specified threshold.
2. **Customizable Appearance**: Allows users to adjust colors, line styles, and widths.
3. **Dynamic Line Management**: Automatically extends or removes lines based on ongoing price action.
4. **Labeling System**: Optional labels to identify types of equal levels (e.g., "Equal High", "REH/Equal High").
5. **Flexible Settings**: Adjustable parameters for lookback periods, maximum bars apart, and relative equality thresholds.
## User Inputs
### Appearance
- `lineColorHigh`: Color for lines marking equal highs (default: red)
- `lineColorLow`: Color for lines marking equal lows (default: green)
- `lineWidth`: Thickness of the lines (range: 1-5, default: 1)
- `lineStyle`: Style of the lines (options: Solid, Dash, Dotted)
- `showLabels`: Toggle to show or hide labels for equal highs and lows
### Settings
- `lookbackLength`: Number of bars to look back for finding equal highs and lows (default: 200)
- `maxBarsApart`: Maximum number of bars apart for equal highs/lows to be considered (range: 2-10, default: 5)
### Relative Equality
- `considerRelativeEquals`: Enable detection of relative equal highs and lows
- `thresholdIndex`: Maximum tick difference for relative equality in index instruments (range: 1-10, default: 2)
- `thresholdStocks`: Maximum tick difference for relative equality in stock instruments (range: 5-200, step: 5, default: 10)
## How It Works
The indicator scans historical price data to identify equal or relatively equal highs and lows. It draws lines connecting these levels and updates them as new price data comes in. Lines are extended if the level holds and removed if the price breaks through. The tool adapts to different market conditions by allowing adjustments to the equality thresholds for various instrument types.
## Practical Use
Traders can use this indicator to:
- Identify potential support and resistance levels
- Spot areas where price might react based on historical turning points
- Enhance their understanding of price structure and repetitive patterns
## Disclaimer
This indicator is provided as a tool to assist in identifying potential price levels of interest. It is not financial advice. Users should not rely solely on this or any single indicator for trading decisions. Always conduct thorough analysis, consider multiple factors, and be aware that past price behavior does not guarantee future results. All trading involves risk.
Brooks 18 Bars [KintsugiTrading]Brooks 18 Bars
Overview:
This indicator allows traders to specify a time frame within each trading day and plots lines at the highest and lowest prices recorded during that period. It is particularly useful for identifying key levels of support and resistance within a specified time range.
Features:
User-Defined Time Frame: Traders can input their desired start and end times in a 24-hour format, allowing flexibility to analyze different market sessions.
High and Low Price Levels: The indicator plots lines representing the highest and lowest prices observed within the specified time frame each day.
Clear Visual Representation: The high and low lines are color-coded for easy identification, with the high & low prices in Kintsugi Trading Gold.
How to Use:
Set the Time Frame:
Adjust the "Start Time Hour" and "Start Time Minute" to define the beginning of your desired time frame.
Adjust the "End Time Hour" and "End Time Minute" to define the end of your desired time frame.
Analyze Key Levels:
Al Brooks popularized the following idea and basis for creating this indicator:
On a 5-minute chart, Bar 1 has a 20-30% chance of being the High or Low of the day.
Bar 12 has a 50% chance.
Bar 18 has an 80-90% chance.
Use the plotted lines to identify significant support and resistance levels within your specified time frame. These levels can help inform your trading decisions, such as entry and exit points.
Good luck with your trading!
AHS_LongRun_System_V1.0AHS_LongRun_System_V1.0 Indicator
Summary:
The "AHS_LongRun_System_V1.0" is a custom TradingView indicator designed to identify long-term bullish and bearish conditions based on the closing prices over a specified number of bars. The indicator also includes two Exponential Moving Averages (EMAs) for trend analysis and signals when these EMAs cross each other.
Features:
1. Bullish and Bearish Conditions:
- Bars to Compare: Set the number of bars to compare the current closing price against.
- Enable Bullish Painting: Toggle to color the bars green if the current close is higher than the closes of the specified number of bars.
-*Enable Bearish Painting: Toggle to color the bars red if the current close is lower than the closes of the specified number of bars.
2. Exponential Moving Averages (EMAs):
- EMA Lengths: Set the lengths for two EMAs.
- EMA Colors: Customize the colors for the two EMAs.
- EMA Line Widths: Set the line widths for the two EMAs.
- EMA Crosses: Visual markers (squares) to indicate where the two EMAs cross each other.
Usage:
1. Adding the Indicator:
- Add the "AHS_LongRun_System_V1.0" indicator to your TradingView chart.
2. Configuring Inputs:
- Bars to Compare: Adjust the number of bars to compare the current closing price against to detect long-term bullish or bearish conditions.
- Enable Bullish/Bearish Painting: Enable or disable the coloring of bars based on bullish or bearish conditions.
- EMA Lengths: Set the lengths for the two EMAs according to your preference or trading strategy.
- EMA Colors: Choose colors for the EMAs to differentiate them clearly.
- EMA Line Widths: Adjust the line widths for better visibility on the chart.
3. Using the Visuals:
- Bullish Bars: Bars are colored green if the current close is higher than the closes of the specified number of previous bars, indicating a bullish condition.
- Bearish Bars: Bars are colored red if the current close is lower than the closes of the specified number of previous bars, indicating a bearish condition.
- EMAs: The two EMAs are plotted on the chart with the specified colors and line widths.
- EMA Crosses: Purple squares are plotted on the chart to indicate where the two EMAs cross each other, signaling potential trend changes.
4. Alerts:
- Use the visual cues from the bar colors and EMA crosses to inform your trading decisions. Bullish conditions suggest potential buying opportunities, while bearish conditions suggest potential selling or shorting opportunities.
This indicator helps traders identify long-term trends by comparing current closing prices to historical closes and using EMAs to confirm trend directions and potential reversals.
AHS_MicroGaps_ReversalAttempts V1.0MicroGaps + ReversalAttempts Indicator
Summary:
The "MicroGaps + ReversalAttempts" is a custom TradingView indicator that identifies and visualizes micro gaps, detects reversal attempts after gaps, and optionally plots moving averages and the first-hour trading range. The indicator plots micro gaps as boxes on the chart and marks potential reversal attempts with arrows.
Features:
1. Micro Gaps**:
- Show Micro Gaps: Toggle to display micro gaps on the chart.
- Max Number of Gaps: Limit the number of gaps displayed.
- Minimal Deviation: Set the minimum size for detected gaps as a percentage of the average high-low range for the last 14 bars.
- Limit Max Gap Trail Length: Limit the maximum length (in bars) that a gap is tracked.
2. Gap Colors:
- Up Gaps: Set the border and background colors for upward gaps.
- Down Gaps: Set the border and background colors for downward gaps.
3. Reversal Attempts:
- 1st Reversal Attempt Bulls: Color for the first bullish reversal attempt after a micro gap.
- 1st Reversal Attempt Bears: Color for the first bearish reversal attempt after a micro gap.
4. Moving Averages:
- EMA 1 and EMA 2: Set lengths, colors, and toggle visibility for two EMAs.
- Show EMA Cross: Option to display markers where the EMAs cross each other.
5. First Hour Box:
- Show First Hour Box: Toggle to display the first hour's high and low range as a shaded area.
- Activate First Hour High/Low View: Toggle to highlight the first hour high/low range.
Usage:
1. Adding the Indicator:
- Add the "MicroGaps + ReversalAttempts" indicator to your TradingView chart.
2. Configuring Inputs:
- Micro Gaps: Enable the "Show Micro Gaps" option to visualize gaps.
- Set Parameters: Adjust the parameters for the maximum number of gaps, minimal deviation, and gap trail length.
- Gap Colors: Customize the colors for upward and downward gaps.
- Reversal Attempts: Set colors for the first bullish and bearish reversal attempts.
3. Using the Visuals:
- Micro Gaps: Gaps are displayed as colored boxes on the chart.
- Reversal Attempts: Arrows are plotted above/below the bars to indicate potential reversal attempts after gaps.
- Moving Averages: Configure the lengths and colors of two EMAs and optionally display markers at their crossover points.
- First Hour Box: Enable and customize the first hour high/low range visualization.
4. Alerts:
- Alerts are triggered for the appearance and closure of gaps. Configure these alerts as needed for your trading strategy.
5. First Hour Range:
- The first hour's trading range can be highlighted, providing visual cues about potential support and resistance levels during the session.
This indicator helps traders identify significant market events like micro gaps and reversal attempts, supplemented with moving averages and first-hour range visualization for a comprehensive analysis tool.
AHS_Histograms V2.0AHS_Histograms V2.0 Indicator
Summary:
The "AHS_Histograms V2.0" is a custom TradingView indicator designed to identify and visualize bullish and bearish conditions based on Internal Bar Strength (IBS), the relationship between the body and range of candles, and the overlap between consecutive bars. The indicator plots histograms with colors indicating bullish or bearish conditions and can optionally highlight climax bars.
Usage:
1. Bullish and Bearish IBS Filters:
- Bullish IBS Filter: Set the threshold for identifying bullish conditions. Higher values (closer to 100) indicate stronger bullish signals.
- Bearish IBS Filter: Set the threshold for identifying bearish conditions. Lower values (closer to 0) indicate stronger bearish signals.
2. Body Range Filter:
- Define the minimum proportion of the candle's range that should be its body to qualify as a significant bar. This helps filter out insignificant price movements.
3. Overlap Filter:
- Set the maximum allowed overlap between consecutive bars. This can help identify cleaner trend movements. Setting this to 101 disables the overlap filter.
4. Climax Bars:
- Enable/Disable Climax Bars: Toggle the option to highlight climax bars, which are identified based on significant differences in high/low distances between consecutive bars.
- Climax Factor: Adjust the factor used to determine climax bars.
Visuals:
- Histogram Colors:
- **Bullish Bars**: Plotted in blue when conditions meet the bullish IBS threshold, body range filter, and overlap filter.
- Bearish Bars: Plotted in red when conditions meet the bearish IBS threshold, body range filter, and overlap filter.
- Neutral Bars: Plotted in black when none of the conditions are met or if climax bars are detected and the climax toggle is on.
Steps to Use:
1. Add the "AHS_Histograms V2.0" indicator to your TradingView chart.
2. Adjust the input parameters according to your trading strategy and preferences:
- Set your desired values for bullish and bearish IBS filters.
- Configure the body range and overlap filters.
- Optionally, enable and configure the climax bar detection.
3. Observe the histogram colors on the chart:
- Blue Histograms: Indicate bullish conditions.
- Red Histograms: Indicate bearish conditions.
- Black Histograms: Indicate neutral conditions or climax bars if enabled.
4. Use the visual cues from the histograms to inform your trading decisions based on the defined criteria.
This indicator helps traders quickly identify potential bullish and bearish signals in the market, providing a visual tool to enhance trading strategies.
Signals & Overlays [UAlgo]The Signals & Overlays indicator is a comprehensive trading tool designed to provide traders with a holistic view of market conditions. It combines multiple analysis techniques to offer insights into trend direction, potential reversal points, and optimal entry and exit levels. This versatile indicator is suitable for various trading styles and timeframes, also has Beginner-Friendly presets to enable multiple features at once within one-click.
🔶 Key Features:
🔹 Contrarian Signals:
This feature identifies potential trend reversals and market turning points. These contrarian signals are displayed as arrow markers on the chart, alerting traders to possible opportunities that go against the prevailing trend. The signals are based on a combination of price action, momentum, and volatility factors, providing a multi-faceted approach to market analysis.
Customizable Settings :
Signal Sensitivity: Adjustable from 0.1 to 10.0. This controls how sensitive the indicator is to potential reversal signals.
🔹 Reversal Zones:
This feature utilizes statistical methods that compute a smoothed average and associated bands around a data series using Gaussian weights. The Gaussian distribution helps to assign more weight to data points near the center of the window, and the bands represent the average plus/minus a scaled measure of deviation.
This technique is often used in financial analysis to detect trends and measure volatility to identify key areas where price reversals are more likely to occur. These zones providing a dynamic representation of potential support and resistance areas. Traders can use these zones to anticipate potential price reactions and plan their entries and exits accordingly.
Users can also customize the responsiveness of the Reversal Zones through the "Zone Speed" setting. This allows for fine-tuning the model's sensitivity to price changes:
Swift Mode: Quickly adapts to recent price movements, ideal for short-term trading.
Standard Mode: Balances recent and historical data for a medium-term perspective.
Slow Mode: Emphasizes longer-term trends, suitable for position trading.
Customizable Settings :
Zone Data Source: Users can select which price data (open, high, low, close, etc.) to use for zone calculations.
Zone Speed: Choosable between "Swift", "Standard", and "Slow", affecting how quickly the zones adapt to price changes.
🔹 Smart Trail:
The Smart Trail feature provides an adaptive trend-following mechanism. It plots a dynamic line that adjusts based on price action and volatility, helping traders stay in trending moves while providing a trailing stop-loss reference. This feature is particularly useful for managing open positions and optimizing exit points.
🔹 Trend Cloud:
Generates a specialized trend indicator using double-smoothed EMAs applied to closing prices and the high-low price range. It visualizes market trends and volatility by shading the area between different indicator values over time. The color of the shading changes to reflect whether the current trend is strengthening or weakening.
The Trend Cloud feature provides a visually intuitive representation of the overall market trend. It generates a dynamic colored cloud on the chart that helps traders quickly assess the current market direction and strength. Bullish trends represented by blue clouds and bearish trends by red clouds.
🔹 Trend Analyzer:
The Trend Analyzer component provides an in-depth analysis of the current market trend. It uses a customizable moving average system to determine the trend direction and strength. The analyzer can be configured to focus on short-term, medium-term, or long-term trends, allowing traders to align their strategy with their preferred trading timeframe.
Customizable Settings :
Analyzer Calculation Period: Adjustable period for trend analysis calculations.
Analyzer Mode: Selectable between "Short-Term", "Medium-Term", and "Long-Term".
Analyzer Calculation Source: Customizable price data source for trend analysis.
Use Heikin Ashi: Option to use Heikin Ashi candles instead of regular candles for calculations.
🔹 TP/Exit/Entry Levels:
The indicator calculates and displays potential take profit (TP), exit, and entry levels based on market structure and volatility. These levels are marked on the chart, offering traders guidance on optimal points for trade management. This feature can be particularly helpful for setting profit targets and managing risk.
🔹 Dashboard:
The customizable dashboard provides a quick overview of key market metrics. It displays information such as trend strength, volume analysis, market volatility, the current state of the Trend Catcher and the market is "Bearish" or "Bullish". This at-a-glance summary helps traders make informed decisions without the need to switch between multiple indicators.
Customizable Settings :
Toggle: Option to display or hide the dashboard.
Dashboard Position and Size: Selectable between "Top Right", "Bottom Right", and "Bottom Left". Adjustable size to "Tiny", "Small" or "Normal".
🔶 Disclaimer:
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Buy Sell Trend MonitorDescription
The purpose of this indicator is to create symbols that try to show the most accurate positions possible for trading. The formation of BUY/SELL symbols is based on the intersection of SYMBOL(Himself), BTC.D, BTC and DXY indices. The resulting signals take values between 0 and 16. These values represent the strength of the signal, and the higher its numerical value, the stronger the signal. Here, 2 different calculation methods are followed for BTC and Altcoins. In BTC, calculations are made according to the direction of BTC Market value and DXY averages, while in Altcoins, calculations are made according to the direction of BTC, BTC.D and DXY averages. If DXY for BTC is trending downwards and the BTC market value is trending upwards, the BUY symbol is formed depending on the level at which the trend occurs. For altcoins, if DXY is trending down, BTC is trending up and BTC.D is trending down, the BUY symbol is formed depending on the level at which the trend occurs. For the SELL signal, the opposite is true.
Symbols are drawn according to standard ticker and OHLC4 values.
The averages of the 1-length RSI value of these symbols are taken as the 6-length SMA.
Symbols
The symbols are explained one by one below.
Orange Line: Bitcoin Marketcap line.
White Line: DXY line.
Red Line: Bitcoin Dominance line.
Aqua Line: Current Symbol line.
Best Use
This indicator should be used for SPOT trades. Regardless, since it is not possible to know exactly the direction of the market, it should be considered to buy gradually at buy signals and sell gradually at sell signals.
It should be followed for at least a 4-hour period. We do not recommend its use as the margin of error will increase in shorter time periods.
Since the signals are not guaranteed to work 100%, we do not recommend you to trade with all your money.
No Repainting
Repainting is definitely not done. After the symbols appear, the closing should be expected. Once the closing occurs, the symbol will now be permanent.
Disclaimer
This indicator is for informational purposes only and should be used for educational purposes only. You may lose money if you rely on this to trade without additional information. Use at your own risk.
Version
v1.0
CG Inside Candle Breakout/BreakdownThe Inside Candle Breakout/Breakdown Indicator can be used to identify the breakout or breakdown cross of the mother candle and inside candle. This helps in deciding whether to go long on a breakout or short on a breakdown.
This indicator first identifies the mother candle and inside candle (baby candle). If the next candle, which is formed after the inside candle, breaks the high of the mother candle in the case of an uptrend or breaks the low of the mother candle in the case of a downtrend, it will indicate a breakout or breakdown.
PUMP IndicatorsPUMP Indicator Description
★ Supported Markets and Assets
The PUMP indicator is a versatile tool that can be effectively applied to various markets and assets, including:
▶ Korean Stocks: KOSPI, KOSDAQ, etc.
▶ U.S. Stocks: NYSE, NASDAQ, etc.
▶ Cryptocurrencies: Major cryptocurrencies such as Bitcoin (BTC), Ethereum (ETH), etc.
▶ Futures: Major futures contracts like gold, silver, crude oil, etc.
▶ ETFs: SPY, QQQ, etc.
★ Indicator Description
The PUMP indicator is designed to analyze price divergence and volatility.
It is provided with minimal representation on the chart, allowing users to use it in conjunction with other indicators, such as classical RSI, TRIX, CCI, ADX, BWI, Bollinger Bands, etc.
Everything displayed on the chart can be turned on or off in the options, allowing users to customize their setup.
The PUMP indicator is based on the concept of the MACD indicator, which calculates the difference between the leading line and the lagging line to generate signals.
GOOD, UP, and CR signals predict price increases.
DOWN and BAD signals predict price decreases.
WARN emphasizes that the buy position is not certain, regardless of price increases or decreases.
Therefore, the PUMP indicator is good to use with other indicators. It visually displays divergence and volatility signals along with the MACD movements below, and users can receive alerts for movements in their interested stocks using the alarm function.
It can be used as an indicator for viewing buy and sell signals, as well as predicting the price flow.
▶ (Drawback) Unlike typical TRIX, RSI, TRIX, CCI, ADX, BWI indicators, which are implemented in a new lower window, the PUMP indicator displays both signals and the leading and lagging lines simultaneously, so it is not implemented in a new window, meaning the baseline may vary depending on the daily chart appearance.
★ The PUMP indicator consists of the following components:
▶ PUMP Indicator Leading and Lagging Lines
PUMP t: Leading line (yellow)
PUMP p: Lagging line (blue)
The MACD displayed at the bottom of the chart calculates the divergence between the PUMP t leading line and the PUMP p lagging line.
▶ EA Formula
The core calculation of the PUMP indicator is as follows:
EA (Exponential Average): 100 * (eavg1 / eavg2)
Where eavg1 is the short-term EMA, and eavg2 is the long-term EMA.
It calculates the divergence of the index.
▶ The PUMP indicator is a fixed indicator (cannot be arbitrarily modified).
▶ Highlights: The method of calculating the interval or number of uses is an important part of the index calculation and is therefore private.
★ Signal Description
The PUMP indicator provides a total of six major signals:
▶ UP Signal: Occurs when the divergence between the MACD PUMP t leading line and PUMP p lagging line narrows, and the divergence of the exponential moving average widens compared to before.
▶ DOWN Signal: Occurs when the MACD PUMP t leading line crosses above the PUMP p lagging line.
▶ GOOD Signal: Represents an UP signal with added volume.
(The GOOD signal is not necessarily better than the UP signal. If a GOOD signal appears in a stock that has sufficiently fallen in price, it helps understand that a rebound has started. Therefore, the GOOD signal is made to find a rebound in stocks that have continuously declined, rather than finding signals in consistently rising prices.)
▶ BAD Signal: Occurs when the PUMP t leading line crosses above the 0 baseline, indicating a potential sell signal.
▶ WARN Signal: A warning signal occurring at high levels, indicating that buying is not recommended (regardless of buy or sell).
▶ CR Signal: Occurs in all sections where the PUMP t leading line crosses below the PUMP p lagging line.
★ Lower MACD Horizontal Baseline
The PUMP indicator provides three horizontal baselines from the MACD indicator for additional analysis:
▶ Pump H
▶ PUMP M
▶ PUMP L
It visually provides the divergence of the lower MACD indicator for rising and falling changes, with the default set to 0, and users can change the numbers in the options as needed.
★ Moving Averages
The PUMP indicator provides three basic moving averages:
▶ Buzz 7: 7-day moving average
▶ Buzz 26: 26-day moving average
▶ Buzz 120: 120-day moving average
The number of moving averages is fixed, but users can use them in conjunction with the moving averages provided by TradingView as needed.
★ Alert Function
Using the Alert function of TradingView, you can set alerts for various signals generated by the PUMP indicator.
▶ GOOD Signal Alert
▶ UP Signal Alert
▶ CR Signal Alert
▶ DOWN Signal Alert
▶ BAD Signal Alert
▶ WARN Signal Alert
★ Usage
1. The PUMP indicator is not focused on buy and sell signals but calculates the current price movement and divergence and is designed to express it through MACD leading and lagging lines and signals.
2. The PUMP indicator can be used alone or in conjunction with other indicators for technical analysis.
3. You can analyze buy and sell using the signals of the PUMP indicator along with fundamental analysis, such as news, issues, national policies, company profits, and sales increases.
4. The MACD leading and lagging lines at the bottom of the chart move inversely to the price, ensuring that the PUMP indicator does not interfere when used with other indicators.
5. You can receive real-time alerts using the alarm function.
Below, we attach pictures to help users understand.
============================================
PUMP 인디케이터 설명(한글)
★ 지원되는 시장 및 자산
PUMP 표시기는 다음과 같은 다양한 시장 및 자산에 효과적으로 적용할 수 있는 다용도 도구입니다:
▶ 한국주식: KOSPI, KOSDAQ 등.
▶ 미국주식: NYSE, NASDAQ 등.
▶ 암호화폐: 비트코인(BTC), 이더리움(ETH) 등 주요 암호화폐.
▶ 선물 : 금, 은, 원유 등 주요 선물 계약.
▶ 상장지수펀드(ETF) : SPY, QQQ 등.
★ 지표 설명
PUMP 지표는 가격 이격과 변동성을 분석하도록 설계되었습니다.
사용자가 만든 지표 또는 고전 RSI, TRIX, CCI, ADX, BWI, Bollinger Bands 등과 함께 사용할 수 있게 차트에 최소한의 표현으로 제공됩니다.
그리고 차트에 표현되는 모든 것들을 옵션에서 on / off 가능하게 하였기에 사용자가 커스텀 할 수 있게 하였습니다.
PUMP 지표 신호를 생성하기 위해 선행 라인과 후행 라인 간의 차이를 계산하는 MACD 지표의 개념을 기반으로 합니다.
GOOD, UP, CR 신호는 가격 상승을 예측합니다.
DOWN, BAD 신호는 가격 하락을 예측합니다.
WARN은 가격 상승과 하락에 관계없이, 매수 자리는 확실히 아님을 강조한 신호입니다.
그러므로 PUMP 지표는 다른 지표와 함께 사용하기 좋고, 이격과 변동성을 신호와 하단 MACD 움직임을 눈으로 볼 수 있으며, 알람 기능을 활용하여 관심 있는 종목의 움직임을 알람으로 받아 볼 수 있는 지표입니다.
매수와 매도를 보는 지표로 사용할 수 있으며, 가격의 흐름을 예상하는 지표로 사용할 수 있습니다.
▶ (단점) 보통의 TRIX, RSI, TRIX, CCI, ADX, BWI 지표들은 하단의 새로운 창에서 구현됩니다. 하지만 PUMP 지표는 신호와 하단 선행과 후행을 동시에 표현하기 때문에 새로운 창에서 구현되지 않기에 기준 축이 일봉의 모습에 따라 달라질 수 있습니다.
★ PUMP 지표는 다음과 같은 구성요소로 구성됩니다
▶ PUMP 지표 선행과 후행
PUMP t : 선행라인 (노란색)
PUMP p : 후행라인 (파란색)
차트 하단에 나타나는 MACD는 PUMP t선행라인과 PUMP p 후행라인의 이격도를 계산합니다.
▶ EA공식
PUMP 지표의 핵심 계산식은 다음과 같습니다:
EA(지수평균): 100 * (eavg1 / eavg2)
여기서 eavg1은 단기 EMA이고 eavg2는 장기 EMA입니다.
지수의 이격도를 계산합니다.
▶ PUMP 지표는 고정 지표입니다. (임의 수정 불가)
▶ 강조 : 이격의 계산법이나 사용하는 숫자는 지표 계산의 중요한 부분이므로 비공개입니다.
★ 신호 설명
PUMP 표시등은 총 6개의 주요 신호를 제공합니다:
▶ UP 신호: MACD PUMP t 선행과 PUMP p 후행의 이격이 줄어들 때, 지수 이동 평균의 이격도가 이전 보다 넓어지면 발생합니다.
▶ DOWN 신호: MACD PUMP t 선행이 PUMP p 후행을 상향 교차할 때 발생합니다.
▶ GOOD 신호: 거래량이 추가된 UP 신호를 나타냅니다.
(GOOD 신호가 UP 신호보다 좋다기 보다, 충분히 가격 하락한 종목에서 GOOD 신호가 나온다면 반등이 시작되는 것을 이해할 수 있게 만든 지표입니다. 그러므로 GOOD 신호는 가격이 꾸준히 상승하는 곳에서 신호를 찾기보다, 지속 하락하다 반등을 찾는 신호로 만들었습니다.)
▶ BAD 신호: PUMP t 선행이 0 기준선 이상으로 교차할 때 발생하며, 이는 잠재적인 판매 신호를 나타냅니다.
▶ 경고 신호: 높은 수준에서 발생하는 경고 신호로, 매수가 권장되지 않음을 나타냅니다(매수, 매도와 무관함).
▶ CR 신호: PUMP t 선행 라인이 PUMP p 후행 라인 아래로 교차하는 모든 구간에서 발생합니다.
★ 하단 MACD 가로 기준선
PUMP 표시기는 추가 분석을 위해 MACD 지표에서 3가지 가로 기준을 제공합니다:
▶ pump H
▶ PUMP M
▶ PUMP L
하단의 MACD 지표의 이격도를 상승 및 하강의 변화를 시각적으로 기준을 만들 수 있게 제공하며, 기본은 0으로 제공하고, 사용자의 필요에 따라 옵션에서 숫자를 변경할 수 있게 하였습니다.
★ 이동 평균
PUMP 표시기는 세 가지 기본 이동 평균을 제공 합니다:
▶ Buzz 7: 7일 이동 평균
▶ Buzz 26: 26일 이동 평균
▶ Buzz 120 : 120일 이동 평균
이동 평균의 수는 고정되어 있지만, 사용자는 필요에 따라 TradingView에서 제공하는 이동 평균과 함께 사용할 수 있습니다.
★ 알림 기능
TradingView의 Alert 기능을 사용하여 PUMP 지표 생성되는 다양한 신호에 대한 Alert를 설정할 수 있습니다.
▶ GOOD 신호 알림
▶ UP 신호 알림
▶ CR 신호 알림
▶ DOWN 신호 알림
▶ BAD 신호 알림
▶ WARN 신호 알림
★ 사용법
1.PUMP 지표는 매수와 매도에 중점을 둔 지표가 아니며 현재 가격의 움직임과 이격도를 계산하며 MACD 선행과 후행 그리고 신호로 표현하기 위해 만들어진 지표입니다.
2. PUMP 지표는 단일로 사용할 수 있고, 또는 다른 지표와 함께 기술적분석으로 사용할 수 있습니다.
3. 뉴스와 이슈, 국가의 정책, 회사의 이익, 매출의 상승 등 기본적분석과 함께 PUMP 지표의 신호를 이용하여 매수와 매도 분석을 할 수 있습니다.
4. 차트 하단의 MACD 선행과 후행은 가격의 움직임을 반대로 움직이며, 가격과 반대로 움직이게 함으로써 다른 지표와 함께 사용하였을 때, PUMP 지표가 방해가 되지 않게 하였습니다.
5. 알람을 사용하여 실시간으로 알람을 받아 보실 수 있습니다.
아래 사진을 첨부하여 사용자 이해를 돕습니다.
============================================
UP신호는 이격을
▶ The UP signal indicates horizontal divergence.
CR신호는 선행이 후행을 아래로 돌파
▶ The CR signal indicates vertical divergence when the leading line crosses below the lagging line.
WARN 신호를 확인
▶ Check the WARN signal.
BAD와 DOWN 신호
▶ BAD and DOWN signals.
PUMP 지표의 기준 3개
3 criteria for PUMP indicators
따로 그림을 그리지 않은 차트
▶ A chart without separate drawings.
============================================
다른 지표와 + 조합
+ Combination with other indicators