Cari dalam skrip untuk "supertrend"
Supertrend GoldSignalThis indicator is a combination of two atr with numbers 1.6 and 0.8
The signals that are displayed on the chart are the points where both atr signaled at the same time (if distance = 0).
-The atr1 check box is only for displaying atr signals with the number 1.6. You can choose the atr1 number in the slow multiplier section.
-The atr2 check box is only for displaying atr signals with a number of 0.8. You can select the number of atr2 in the fast multiplier section.
-Note: If the atr1 and atr2 checkboxes are off, only simultaneous signals will be displayed on the chart (that is, points where atr1 and atr2 signaled at the same time).
-In the distance section, you can specify the distance between the atr1 and atr2 signals, if it is zero, it means that the atr1 and atr2 signals must be given on the same candle.
For example, if the value of distance is 5, it means that atr1 and atr2 signals can have a distance of 5 candles.
-The filter check box is for filtering signals using boxes 9, 26 and 52 in Ichimoku.
At the points where we have signals, boxes of 9 candles, 26 candles and 52 candles are drawn, and for long signals, the bottom of the boxes must be equal, and for short signals, the top of the boxes must be equal,Signals that do not meet this condition are removed.
SuperTrend VolatilityThis indicator is actually composition of 3 indicator to one common one
it based on super trend , OBV and volatility % range
obv act as our source for the super trend to make it more sensitive
you can control it as a regular super trend + the addition of volatility % range (volatility factor)
so 1 is volatility range , can be from 0.1 to 5 depend on your liking.
i set it here in this example of btc 4 hour chart to be 0.5 which is 1/2 of the volatility % range since it fitted better this particular asset . for stock i prefer 1 as my factor
this indicator as i normally do have alert and signal inside.
the aim of this indicator is to maximize trend on one hand and other to keep sensitivity high
one of the problem with regular super trend that as we keep the we increase the trend to be longer it lose sensitivity .
by this method that i show here i try to minimize that bad effect and make it both sensitive and more responsive. this is one of the reason i use a modified version of OBV as a source to it .
for each asset that you use try to find the best fit so this model can work properly
here apple with factor=1 as range
on daily it better half of volatility range
NIO
gold 4 hour
gold 1 hour
SuperTrend PZThis is more sensitive super trend
you can control by the same way as you control any regular super trend
also there is a special factor that you can use , from 0 to 20 to see if the fit become better
I noramly give my code for free but since I do not like stupid folks to make as their own so i just give it as full functional
one with signal and alerts but not as open source
this can be use on any time frame and on any stuff that you wish
let me know what you think
SuperTrend Ajeet v1.2This is my version of super trend
Here I have used fibo to identify pullback candles
Good signals are those which are preceded by a pullback
green pullback for buy and a red pullback for sell
For a further stronger signal
look if there is a double arrow
So normally I trade with a signal which has a double arrow and preceded by a pullback
As you all know that timeframe to be used is 3 mins
I personally use amibroker so here I have just tried to mirror that code in pine script
- Ajeet Singh
Supertrend 3,7 Modified by DON2000KGI use this on a 2hr or 4hr time frames. It works well with the NZD/USD pair. BTC/USD, ETH/USD.
I get the best results using the Heikin Ashi candles.
You can create alerts for long and shorts.
Supertrend (2, 11) & VWAPThis is an Excellent Tool that can be used along with other indicators for Intraday Trading
SuperTrend BFI am republishing this indicator as something changed within TradingView's script engine so that the old script ceased to function ( a minor syntax error that used to be acceptable but no longer is).
Anyhow here's the fixed version which as you can see has done a great job of keeping us on the right side of the trend with once-hot stocks like Skyworks !
D-BoT Alpha Volume SpikeHello traders, Let me explain the code and provide an example of how to trade using this indicator.
The code you provided is a Pine Script indicator that combines multiple technical indicators, such as Supertrend, ADX, RSI, and MFI, to generate buy and sell signals. Here's a breakdown of the code:
User Settings:
The user can adjust parameters like overbought_limit, oversold_limit, volume_multiplier, volume_ma_length, volume_spike_multiple, lookback_period, and use_extremities_confirmation according to their preference.
Calculate Supertrend:
The Supertrend indicator is calculated using three different ATR lengths (supertrend_atr_period1, supertrend_atr_period2, supertrend_atr_period3) and corresponding factors (supertrend_factor1, supertrend_factor2, supertrend_factor3).
The supertrend_value1, supertrend_value2, and supertrend_value3 represent the Supertrend values, while trend_direction1, trend_direction2, and trend_direction3 indicate the trend direction (negative for downtrend, positive for uptrend).
Candle calculations:
The high and low values are checked to identify bullish and bearish candles based on specific conditions.
Volume Spikes:
Volume spikes are detected by comparing the current volume with a median volume over a specified lookback period.
If the volume exceeds a certain multiple of the median volume and the DI+ value is greater than the DI- value, an "up" signal is generated. Similarly, if the DI- value is greater than the DI+ value, a "down" signal is generated.
Additional Filters (RSI and MFI):
Relative Strength Index (RSI) and Money Flow Index (MFI) are used as additional filters.
The RSI and MFI parameters can be adjusted according to the user's preference.
The signals generated by the volume spikes are filtered based on RSI and MFI conditions.
Plotting:
The indicator plots shapes (triangles) to represent buy and sell signals.
The Supertrend lines are plotted using different colors and transparency levels based on the distance from the current price.
The "bodyMiddle" plot is used for filling the area between the Supertrend lines.
Example Trade Scenario:
Let's consider an example trade scenario using this indicator:
When the indicator generates an "up" signal (trendBuy = true), indicating a potential bullish trend, and all the confirmation conditions (RSI, MFI, Supertrend) are met, you can consider opening a long position.
Conversely, when the indicator generates a "down" signal (trendSell = true), indicating a potential bearish trend, and all the confirmation conditions are met, you can consider opening a short position.
Remember, this is just an example, and it's crucial to perform thorough analysis and consider other factors before making trading decisions. It's recommended to backtest the strategy, assess risk management, and apply appropriate position sizing techniques.
Please note that the code provided is a simplified version, and there might be additional factors and considerations specific to your trading strategy that are not included in this code. *******"I have also reviewed the following indicators, and the volume calculation approaches of my friends have been very helpful in creating this indicator: "Volume Spikes " ยฉ tradeforopp and "Volume Spikes & Growing Volume Signals With Alerts & Scanner" ยฉ FriendOfTheTrend."*******
Trend Following Bundle [ActiveQuants]The Trend Following Bundle indicator is a comprehensive toolkit designed to equip traders with a suite of essential technical analysis tools focused on identifying , confirming , and capitalizing on market trends . By bundling popular indicators like Moving Averages , MACD , Supertrend , ADX , ATR , OBV , and the Choppiness Index into a single script, it streamlines chart analysis and enhances strategy development.
This bundle operates on the principle that combining signals from multiple, complementary indicators provides a more robust view of market trends than relying on a single tool. It integrates:
Trend Direction: Moving Averages, Supertrend.
Momentum: MACD.
Trend Strength: ADX.
Volume Pressure: On Balance Volume (OBV).
Volatility: Average True Range (ATR).
Market Condition Filter: Choppiness Index (Trend vs. Range).
By allowing users to selectively enable, customize, and view these indicators (potentially across different timeframes), the bundle facilitates nuanced and layered trend analysis.
โ KEY FEATURES
All-in-One Convenience: Access multiple core trend-following indicators within a single TradingView script slot.
Modular Design: Easily toggle each individual indicator (MAs, MACD, Supertrend, etc.) On or Off via the settings menu to customize your chart view.
Extensive Customization: Fine-tune parameters (lengths, sources, MA types, colors, etc.) for every included indicator to match your trading style and the specific asset.
Multi-Timeframe (MTF) Capability: Configure each indicator component to analyze data from a different timeframe than the chart's, allowing for higher-level trend context.
Integrated Alerts: Pre-built alert conditions for key events like Moving Average crossovers , MACD signals , Supertrend flips , and Choppiness Index threshold crosses . Easily set up alerts through TradingView's alert system.
When configuring your alerts in TradingView, pay close attention to the trigger option:
- Setting it to " Only Once " will trigger the alert the first time the condition is met, which might happen during an unclosed bar (intra-bar). This alert instance will then cease.
- Setting it to " Once Per Bar Close " will trigger the alert only after a bar closes if the condition was met on that finalized bar. This ensures signals are based on confirmed data and allows the alert to potentially trigger again on subsequent closing bars if the condition persists or reoccurs. Use this option for signals based on confirmed, closed-bar data.
MA Smoothing & Bands (Optional): Apply secondary smoothing or Bollinger Bands directly to the Fast and Slow Moving Averages for advanced analysis.
โ USER INPUTS
Fast MA:
On/Off: Enables/Disables the Fast Moving Average plot and related smoothing/bands.
Type: Selects the primary calculation type (SMA, EMA, SMMA (RMA), WMA, VWMA). Default: EMA.
Source: Input data for the MA calculation (e.g., close, open, hl2). Default: close.
Length: Lookback period for the primary MA calculation. Default: 9.
Color: Sets the color of the primary Fast MA line. Default: Yellow.
Line Width: Sets the thickness of the primary Fast MA line. Default: 2.
Smoothing Type: Selects secondary smoothing type applied to the primary MA (e.g., None, SMA, EMA) or adds Bollinger Bands (SMA + Bollinger Bands). Default: None.
Smoothing Length: Lookback period for the secondary smoothing MA or the basis MA for Bollinger Bands. Relevant only if Smoothing Type is not " None ". Default: 10.
BB StdDev: Standard deviation multiplier for Bollinger Bands. Relevant only if Smoothing Type is " SMA + Bollinger Bands ". Default: 2.0.
Timeframe: Sets a specific timeframe for the MA calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close before plotting, preventing repainting. Default: true.
Slow MA:
On/Off: Enables/Disables the Slow Moving Average plot and related smoothing/bands.
Type: Selects the primary calculation type (SMA, EMA, SMMA (RMA), WMA, VWMA). Default: EMA.
Source: Input data for the MA calculation (e.g., close, open, hl2). Default: close.
Length: Lookback period for the primary MA calculation. Default: 9.
Color: Sets the color of the primary Slow MA line. Default: Yellow.
Line Width: Sets the thickness of the primary Slow MA line. Default: 2.
Smoothing Type: Selects secondary smoothing type applied to the primary MA (e.g., None, SMA, EMA) or adds Bollinger Bands (SMA + Bollinger Bands). Default: None.
Smoothing Length: Lookback period for the secondary smoothing MA or the basis MA for Bollinger Bands. Relevant only if Smoothing Type is not " None ". Default: 10.
BB StdDev: Standard deviation multiplier for Bollinger Bands. Relevant only if Smoothing Type is " SMA + Bollinger Bands ". Default: 2.0.
Timeframe: Sets a specific timeframe for the MA calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close before plotting, preventing repainting. Default: true.
MACD:
On/Off: Enables/Disables the MACD plots (MACD line, Signal line, Histogram).
Fast Length: Lookback period for the fast MA in MACD calculation. Default: 12.
Slow Length: Lookback period for the slow MA in MACD calculation. Default: 26.
Source: Input data for the MACD MAs. Default: close.
Signal Smoothing: Lookback period for the Signal Line MA. Default: 9.
Oscillator MA Type: Calculation type for Fast and Slow MAs (SMA, EMA). Default: EMA.
Signal Line MA Type: Calculation type for Signal Line MA (SMA, EMA). Default: EMA.
MACD Color: Color of the MACD line. Default: #2962FF.
MACD Signal Color: Color of the Signal line. Default: #FF6D00.
Timeframe: Sets a specific timeframe for the MACD calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close. Default: true.
On Balance Volume (OBV):
On/Off: Enables/Disables the OBV plot and its related MAs/Bands.
Type (MA Smoothing): Selects MA type for smoothing OBV (None, SMA, EMA, etc.) or SMA + Bollinger Bands. Default: None.
Length (MA Smoothing): Lookback period for the OBV smoothing MA. Default: 14.
BB StdDev: Standard deviation multiplier for Bollinger Bands if selected. Default: 2.0.
Color: Color of the main OBV line. Default: #2962FF.
Timeframe: Sets a specific timeframe for the OBV calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close. Default: true.
ADX:
On/Off: Enables/Disables the ADX plot.
ADX Smoothing: Lookback period for the ADX smoothing component. Default: 14.
DI Length: Lookback period for the Directional Movement (+DI/-DI) calculation. Default: 14.
Color: Color of the ADX line. Default: Red.
Timeframe: Sets a specific timeframe for the ADX calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close. Default: true.
ATR:
On/Off: Enables/Disables the ATR plot.
Length: Lookback period for the ATR calculation. Default: 14.
Smoothing: Selects the calculation type for ATR (SMMA (RMA), SMA, EMA, WMA). Default: SMMA (RMA).
Color: Color of the ATR line. Default: #B71C1C.
Timeframe: Sets a specific timeframe for the ATR calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close. Default: true.
Supertrend:
On/Off: Enables/Disables the Supertrend plot and background fill.
ATR Length: Lookback period for the ATR calculation within Supertrend. Default: 10.
Factor: Multiplier for the ATR value used to calculate the Supertrend bands. Default: 3.0.
Up Trend Color: Color for the Supertrend line and background during an uptrend. Default: Green.
Down Trend Color: Color for the Supertrend line and background during a downtrend. Default: Red.
Timeframe: Sets a specific timeframe for the Supertrend calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close. Default: true.
Choppiness Index:
On/Off: Enables/Disables the Choppiness Index plot and bands.
Length: Lookback period for the Choppiness Index calculation. Default: 14.
Offset: Shifts the plot left or right. Default: 0.
Color: Color of the Choppiness Index line. Default: #2962FF.
Timeframe: Sets a specific timeframe for the CI calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close. Default: true.
โ STRATEGY EXAMPLES
The following strategy examples are provided for illustrative and educational purposes only to demonstrate how indicators within this bundle could be combined. They do not constitute financial advice or trading recommendations. Always conduct your own thorough research and backtesting before implementing any trading strategy.
Here are a few ways the indicators in this bundle can be combined:
1. MA Crossover with Multi-Factor Confirmation
Goal: Enter trends early with confirmation from momentum and trend strength, while filtering out choppy conditions.
Setup: Enable Fast MA (e.g., 9 EMA), Slow MA (e.g., 50 EMA), MACD, ADX, and Choppiness Index.
Entry (Long):
- Price > Slow MA (Establishes broader uptrend context).
- Fast MA crosses above Slow MA OR Price crosses above Fast MA.
- MACD Histogram > 0 (Confirms bullish momentum).
- ADX > 20 or 25 (Indicates sufficient trend strength).
- Choppiness Index < 61.8 (Filters out excessively choppy markets).
Entry (Short): Reverse logic (except for ADX and Choppiness Index).
Management: Consider using the Supertrend or an ATR multiple for stop-loss placement.
Image showing a chart with 2:1 long and short trades, highlighting a candle disqualified for a long entry due to ADX below 20.
2. Supertrend Breakout Strategy
Goal: Use Supertrend for primary signals and stops, confirming with volume and trend strength.
Setup: Enable Supertrend, Slow MA, ADX, and OBV.
Entry (Long):
- Supertrend line turns green and price closes above it.
- Price > Slow MA (Optional filter for alignment with larger trend).
- ADX is rising or above 20 (Confirms trending conditions).
- OBV is generally rising or breaks a recent resistance level (Confirms volume supporting the move).
Entry (Short): Reverse logic (except for ADX and OBV).
Management: Initial stop-loss placed just below the green Supertrend line (for longs) or above the red line (for shorts). Trail stop as Supertrend moves.
Image showing a chart with a 2:1 long trade, one candle disqualified for a short entry, and another disqualified for a long entry.
3. Trend Continuation Pullbacks
Goal: Enter established trends during pullbacks to value areas defined by MAs or Supertrend.
Setup: Enable Slow MA, Fast MA (or Supertrend), MACD, and ADX.
Entry (Long):
- Price is consistently above the Slow MA (Strong uptrend established).
- ADX > 25 (Confirms strong trend).
- Price pulls back towards the Fast MA or the green Supertrend line.
- MACD Histogram was decreasing during the pullback but turns positive again OR MACD line crosses above Signal line near the MA/Supertrend level (Indicates momentum resuming).
Entry (Short): Reverse logic (except for ADX) during a confirmed downtrend.
Management: Stop-loss below the recent swing low or the Slow MA/Supertrend level.
Image showing a chart with 2:1 long and short trades, where price pulls back to the fast MA and the MACD histogram changes color, indicating shifts in momentum during the pullbacks.
โ CONCLUSION
The Trend Following Bundle offers a powerful and flexible solution for traders focused on trend-based strategies. By consolidating essential indicators into one script with deep customization, multi-timeframe analysis, and built-in alerts, it simplifies the analytical workflow and allows for the development of robust, multi-conditional trading systems. Whether used for confirming entries, identifying trend strength, managing risk, or filtering market conditions, this bundle provides a versatile foundation for technical analysis.
โ IMPORTANT NOTES
โ Parameter Tuning: Indicator settings (lengths, factors, thresholds) are not one-size-fits-all. Adjust them based on the asset being traded, its typical volatility, and the timeframe you are analyzing for optimal performance. Backtesting is crucial .
โ Multi-Timeframe Use: Using the Timeframe input allows for powerful analysis but be mindful of potential lag, especially if Wait TF Close is disabled. Signals based on higher timeframes will update only when that higher timeframe bar closes (if Wait TF Close is enabled).
โ Confirmation is Key: While the bundle provides many tools, avoid relying on a single indicator's signal. Use combinations to build confluence and increase the probability of successful trades.
โ Chart Clarity: With many indicators available, only enable those relevant to your current strategy to avoid overwhelming your chart. Use the On/Off toggles frequently.
โ Confirmed Bars Only: Like most TradingView indicators, signals and plots are finalized on the close of the bar. Be cautious acting on intra-bar signals which may change before the bar closes.
โ RISK DISCLAIMER
Trading involves substantial risk of loss and is not suitable for every investor. The Trend Following Bundle indicator provides technical analysis tools for educational and informational purposes only; it does not constitute financial advice or a recommendation to buy or sell any asset. Indicator signals identify potential patterns based on historical data but do not guarantee future price movements or profitability. Always conduct your own thorough analysis, use multiple sources of information, and implement robust risk management practices before making any trading decisions. Past performance is not indicative of future results.
๐ Happy trading! ๐
Follow The Trend - The Lazy Indicator**Understanding the 'Follow The Trend - The Lazy Indicator'**
This indicator is designed to help traders visualize the trend direction over both short-term and long-term periods. Let's dive deeper into understanding how it's designed and how it can be beneficial.
**1. How It's Designed:**
* **User Inputs:**
The first few lines ask the user for specific inputs related to the Average True Range (ATR) length and values for both short-term and long-term trends. ATR is a volatility indicator and, in this context, is used as part of the SuperTrend calculation.
* **SuperTrend Calculations:**
This indicator uses the SuperTrend, a popular trend-following indicator. Here, two SuperTrends are being calculated โ one for short-term trends and another for long-term trends. The direction of the SuperTrend is also determined, signaling whether the trend is upwards or downwards.
* **Visual Representations:**
* The short-term SuperTrend is represented using green lines (for uptrend) and red lines (for downtrend).
* The indicator also provides a "cloud" between a Simple Moving Average (SMA) of the closing price (over the past 10 periods) and the long-term SuperTrend. This cloud changes color based on the direction of the long-term trend, providing another visual cue about market direction.
* **Signal Evaluation:**
This part of the code interprets the combination of short-term and long-term trends and assigns trading signals like "Strong Buy," "Weak Buy," "Strong Sell," "Weak Sell," and so on. This can act as a guide for traders, suggesting potential trading actions based on the prevailing trends.
* **Signal Coloration:**
The indicator also assigns colors to each signal. For instance, "Strong Buy" is green, "Strong Sell" is red, and there are transparency adjustments for weak signals to differentiate them from strong ones.
* **Tabular Presentation:**
At the end of the script, thereโs a table displayed on the chart, summarizing the direction of both the long-term and short-term trends, as well as the overall trading signal. It provides a quick snapshot for traders to understand the current market scenario.
**2. How It May Be Helpful:**
* **Simplicity:**
The "Follow The Trend" indicator, despite its underlying complexity, is presented in a very user-friendly way. By just looking at the color cues and the table, traders can quickly understand the market's trend and potential direction.
* **Dual Trend Analysis:**
By analyzing both short-term and long-term trends, traders get a comprehensive view. This helps in understanding if the market is just having a short-term retracement (temporary reverse in direction) or if there's a genuine change in the long-term trend.
* **Adaptability:**
Traders can adjust the ATR values and lengths to customize the sensitivity of the indicator. This means it can be adapted to different assets or varying market conditions.
* **Actionable Signals:**
The signals like "Strong Buy" or "Weak Sell" are direct suggestions that can help in decision-making. Especially for beginners or those who might be overwhelmed by complex charts, such signals can be very beneficial.
* **Visual Appeal:**
The combination of trend lines, cloud coloring, and tabulated information provides a visually pleasing and easy-to-understand representation of market data. This can help reduce analysis fatigue and make chart reading more enjoyable.
In conclusion, the "Follow The Trend - The Lazy Indicator" is designed to make trend-following more accessible and actionable. By providing clear visual cues and combining short-term and long-term trend analysis, it offers traders a tool that's both comprehensive and user-friendly. Whether you're a beginner looking for clear signals or an experienced trader wanting an overview of the market trend, this indicator might be a useful addition to your toolkit.
IU Trailing Stop Loss MethodsThe 'IU Trailing Stop Loss Methods' it's a risk management tool which allows users to apply 12 trailing stop-loss (SL) methods for risk management of their trades and gives live alerts when the trailing Stop loss has hit. Below is a detailed explanation of each input and the working of the Script.
Main Inputs:
- bar_time: Specifies the date from which the trade begins and entry price will be the open of the first candle.
- entry_type: Choose between 'Long' or 'Short' positions.
- trailing_method: Select the trailing stop-loss method. Options include ATR, Parabolic SAR, Supertrend, Point/Pip based, Percentage, EMA, Highest/Lowest, Standard Deviation, and multiple target-based methods.
- exit_after_close: If checked, exits the trade only after the candle closes.
Optional Inputs:
ATR Settings:
- atr_Length: Length for the ATR calculation.
- atr_factor: ATR multiplier for SL calculation.
Parabolic SAR Settings:
- start, increment, maximum: Parameters for the Parabolic SAR indicator.
Supertrend Settings:
- supertrend_Length, supertrend_factor: Length and factor for the Supertrend indicator.
Point/Pip Based:
- point_base: Set trailing SL in points/pips.
Percentage Based:
- percentage_base: Set SL as a percentage of entry price.
EMA Settings:
- ema_Length: Length for EMA calculation.
Standard Deviation Settings:
- std_Length, std_factor: Length and factor for standard deviation calculation.
Highest/Lowest Settings:
- highest_lowest_Length: Length for the highest/lowest SL calculation.
Target-Based Inputs:
- ATR, Point, Percentage, and Standard Deviation based target SL settings with customizable lengths and multipliers.
Entry Logic:
- Trades initiate based on the entry_type selected and the specified bar_time.
- If Long is selected, a long trade is initiated when the conditions match, and vice versa for Short.
Trailing Stop-Loss (SL) Methods Explained:
The strategy dynamically adjusts stop-loss based on the chosen method. Each method has its calculation logic:
- ATR: Stop-loss calculated using ATR multiplied by a user-defined factor.
- Parabolic SAR: Uses the Parabolic SAR indicator for trailing stop-loss.
- Supertrend: Utilizes the Supertrend indicator as the stop-loss line.
- Point/Pip Based: Fixed point-based stop-loss.
- Percentage Based: SL set as a percentage of entry price.
- EMA: SL based on the Exponential Moving Average.
- Highest/Lowest: Uses the highest high or lowest low over a specified period.
- Standard Deviation: SL calculated using standard deviation.
Exit Conditions:
- If exit_after_close is enabled, the position will only close after the candle confirms the stop-loss hit.
- If exit_after_close is disabled, the strategy will close the trade immediately when the SL is breached.
Visualization:
The script plots the chosen trailing stop-loss method on the chart for easy visualization.
Target-Based Trailing SL Logic:
- When a position is opened, the strategy calculates the initial stop-loss and progressively adjusts it as the price moves favorably.
- Each SL adjustment is stored in an array for accurate tracking and visualization.
Alerts and Labels:
- When the Entry or trailing stop loss is hit this scripts draws a label and give alert to the user that trailing stop has been hit for the trade.
Note - on the historical data The Script will show nothing if the entry and the exit has happened on the same candle, because we don't know what was hit first SL or TP (basically how the candle was formed on the lower timeframe).
Summary:
This script offers flexible trailing stop-loss options for traders who want dynamic risk management in their strategies. By offering multiple methods like ATR, SAR, Supertrend, and EMA, it caters to various trading styles and risk preferences.
MB 3ST+EMA+StochRSI Martin Buecker 16.01.2025Short Description of the Indicator "MB 3ST+EMA+StochRSI Martin Buecker 16.01.2025"
This trend-following and momentum-based indicator combines Supertrend, EMA 200, and Stochastic RSI to generate buy and sell signals with improved accuracy.
1. Key Components
Supertrend (3 variations):
Uses three Supertrend indicators with different periods to confirm trend direction.
Buy signal when at least 2 Supertrends are bearish.
Sell signal when at least 2 Supertrends are bullish.
EMA 200 (Exponential Moving Average):
Buy signals only when the price is above EMA 200 (uptrend confirmation).
Sell signals only when the price is below EMA 200 (downtrend confirmation).
Multi-Timeframe Stochastic RSI:
Uses a higher timeframe Stoch RSI (default: 15 minutes) to filter signals.
Buy signal when %K crosses above %D (bullish momentum).
Sell signal when %K crosses below %D (bearish momentum).
2. Signal Generation
๐ Buy Signal Conditions:
โ
At least 2 of 3 Supertrends are bearish
โ
Price is above EMA 200
โ
Stoch RSI shows a bullish crossover (%K > %D)
๐ Sell Signal Conditions:
โ
At least 2 of 3 Supertrends are bullish
โ
Price is below EMA 200
โ
Stoch RSI shows a bearish crossover (%K < %D)
3. Visual Representation & Alerts
Supertrend Lines:
Green = Bullish, Red = Bearish
EMA 200: White Line
Buy/Sell Signals:
Green triangle (below bar) = Buy
Red triangle (above bar) = Sell
Alerts:
Notifies users when a buy or sell signal is triggered.
Background Coloring:
Green for Buy signals, Red for Sell signals
4. Purpose & Benefits
๐ฅ Combines trend (EMA 200, Supertrend) and momentum analysis (Stoch RSI) for better signal accuracy.
๐ฅ Works best in trending markets, filtering out false signals in sideways movements.
๐ฅ Suitable for scalping and day trading, providing clear and structured trade entries.
Three Bar Reversal Pattern [LuxAlgo]The Three Bar Reversal Pattern indicator identifies and highlights three bar reversal patterns on the user price chart.
The script also provides an option for incorporating various trend indicators used to filter out detected signals, allowing them to enhance their accuracy and help obtain a more comprehensive analysis.
๐ถ USAGE
The script automates the detection of three-bar reversal patterns and provides a clear, visually identifiable signal for potential trend reversals.
When a reversal chart pattern is confirmed and price action aligns with the pattern, the pattern's boundaries are extended, forming levels, with the upper boundary often acting as a resistance and the lower boundary as a support.
The script allows users to filter patterns based on a specific trend direction detected by multiple trend indicators. Users can choose to view patterns that are either aligned with the detected trend or opposite to it.
Included trend indicators are: Moving Average Cloud, Supertrend, and Donchian Channels.
๐ถ DETAILS
The three-bar reversal pattern is a technical analysis pattern that signals a potential reversal in the prevailing trend. The pattern consists of three consecutive bar formations:
First Bar and Second Bar: 2 consecutive of the same sentiment, representing the prevailing trend in the market.
Third Bar: Confirms the reversal by closing beyond the high or low of the first bar, signaling a potential change in market sentiment.
Various types of three-bar reversal patterns are documented. The script supports two main types:
Normal Pattern: Detects three-bar reversal patterns without requiring the third bar closing price to surpass the high (bullish pattern) or low (bearish pattern) of the first bar. It identifies basic formations signaling potential trend reversals.
Enhanced Pattern: Specifically identifies three-bar reversal patterns where the third bar closing price surpasses the high (bullish pattern) or low (bearish pattern) of the first bar. This type provides a more selective signal for stronger trend reversals.
๐ถ SETTINGS
Pattern Type: Users can choose the type of 3-bar reversal patterns to detect: Normal, Enhanced, or All. "Normal" detects patterns that do not necessarily surpass the high/low of the first bar. "Enhanced" detects patterns where the third bar surpasses the high/low of the first bar. "All" detects both Normal and Enhanced patterns.
Derived Support and Resistance: Toggles the visibility of the support and resistance levels/zones.
๐น Trend Filtering
Filtering: Allows users to filter patterns based on the trend indicators: Moving Average Cloud, Supertrend, and Donchian Channels. The "Aligned" option only detects patterns that align with the trend and conversely, the "Opposite" option detects patterns that go against the trend.
๐น Trend Indicator Settings
Moving Average Cloud: Allows traders to choose the type of moving averages (SMA, EMA, HMA, etc.) and set the lengths for fast and slow-moving averages.
Supertrend: Options to set the ATR length and factor for Supertrend.
Donchian Channels: Option to set the length for the channel calculation.
๐ถ RELATED SCRIPTS
Reversal-Candlestick-Structure .
Reversal-Signals .
[ADOL_]EasyTradingENG) EasyTrading Indicator(ET)
Introduce)
This is the result of long research and trial and error. This indicator is an indicator that marks the signal on the chart.
Short-term, mid-term, and long-term points are analyzed, and signals leading to long-term trends are marked with a background color.
Indicates oversold and overbought, and modified Ichimoku equilibrium. Indicates the criteria for the new TD.
It is the latest version of the signal indicator that complements the limitations of existing indicators.
Noise cancellation is the key to overcoming limitations.
Alerts are included in the signal notation, allowing integration with bots that utilize alerts.
So that even beginners can use it easily, we exclude miscellaneous functions and focus only on whether it is long or short.
principle)
Principle of Moving Average: Various moving averages (SMA, EMA, WMA, HMA, RMA, SWMA, VWMA) can be used. Simply using only moving averages cannot overcome the existing problems.
The problems that arise from existing signal indicators include structural problems in which entry and exit do not appear properly due to lagging and delay of indicators, and frequent overuse of RBIs.
In order to compensate for these limitations, BNF's disparate rate trading method was referred to. I did not use the existing moving average as it is, but I optimized the formula by reflecting my experience, so the existing moving average
It is characterized by the fact that it cannot be implemented according to the signal of the indicator.
The principle of oversold and overbought: implemented using RSI.
Short-term signal: The principle of the TD indicator has been utilized and modified. The setup principle of the TD indicator,
which compares the current candlestick and the four previous candlesticks and indicates numbers from 1 to 9, was modified by applying it to the moving average.
Intermediate Signal: Moving averages and Ichimoku balance have been modified. We applied the breakthrough of clouds (positive and negative) created in Ichimok balance.
Long-term signal: The principle of moving averages was used.
comparison with existing indicators)
Compared to Supertrends:
The top is the ET indicator, and the bottom is the supertrend indicator. Supertrend is set to 14,3, which is commonly used.
Looking at the background color representing the long-term signal of ET while the super trend repeatedly displays buy and sell and sees loss of intervals
ET does not see section loss as no signal appears in the middle after one entry.
The same goes for other sports.
Compared to the moving average (sma):
Even when compared to the golden cross and dead cross conditions that break through the moving average line, the moving average line accumulates losses due to frequent entries and exits in the section that moves sideways.
ET, which compensates for the limitations, continues the trend without noise.
Comparison with Ichimoku:
ET has less noise than entering a trade using Ichimoku's red cloud and green cloud.
Necessity)
In order to work with the bot, the key is to accurately implement the hitting point and remove noise. It is a basic approach to trading even if it is not linked to a bot.
In the setting of most indicators, if you increase the period, you can see the long-term trend, but the entry point is delayed, and if you decrease the period, the entry point becomes frequent and enters a place where you shouldn't enter.
ET catches the entry point and noise removal, and helps you approach the entry point correctly even if you don't trade often.
Catching the two rabbits was the most difficult. how many years...
chart)
Notation of background color:
Long-term signals are displayed in the background color so that trends can be grasped at a glance.
Long term signal:
It is indicated by an arrow on the chart.
Mid term signal:
The decline is indicated by a black gradient on the candle and a red circle above the candle.
The rise is indicated by a white gradient on the candle and a green circle below the candle.
short-term signal:
On the chart, the candlesticks are numbered from 1 to 9.
Oversold/Overbought:
Oversold conditions are indicated by yellow diamonds (โ).
Overbought is indicated by a blue diamond (โ).
Determine the TP on the first oversold or overbought bar. Split profit start.
timeframes and alerts)
It can be applied to all time frames, and the standard time at the center is 1h.
You can adjust the dot while viewing the 15-minute bar and the 1-hour bar together.
multi time frame. It is recommended to observe multiple times at the same time using the split screen.
Note)
This indicator is not a guarantee of absolute returns, and you are solely responsible for any trading decisions you make.
How to use)
It is set to be used by invited users only.
If you receive an invitation, tap Add indicator to favorites at the bottom of the indicator.
If you go to the chart screen and press the indicator at the top, there is a Favorites tab on the left tab.
Add an indicator by clicking on the indicator name in the Favorites tab (or Invite Only).
If a study error occurs when adding an indicator even though permission has been granted
You may be able to fix the problem by turning off all charts and restarting.
KOR) EasyTrading ์งํ(ET)
แแ
ฉแแ
ข)
์ด๊ฒ์ ์ค๋ ์ฐ๊ตฌ์ ์ํ์ฐฉ์ค์ ๊ฒฐ๊ณผ๋ฌผ์
๋๋ค. ํด๋น ์งํ๋ ์ฐจํธ์ ์๊ทธ๋์ ํ๊ธฐํด์ฃผ๋ ์งํ์
๋๋ค.
๋จ๊ธฐ, ์ค๊ธฐ, ์ฅ๊ธฐ ํ์ ์ ๋ถ์ํ๋ฉฐ, ์ฅ๊ธฐํธ๋ ๋๋ฅผ ์ด๋๋ ์๊ทธ๋์ ๋ฐฐ๊ฒฝ์์ผ๋ก ํ๊ธฐ๋ฉ๋๋ค.
๊ณผ๋งค๋์ ๊ณผ๋งค์๋ฅผ ํ์ํ๋ฉฐ, ๋ณํ๋ ์ผ๋ชฉ๊ท ํ์ ํ์ํฉ๋๋ค. ์๋ก์ด TD์ ๊ธฐ์ค์ ํ์ํฉ๋๋ค.
๊ธฐ์กด์ ์งํ๋ค์ด ๊ฐ์ง๋ ํ๊ณ๋ฅผ ๋ณด์ํ ์๊ทธ๋ ์งํ์ ๊ฐ์ฅ ์ต์ ๋ฒ์ ์
๋๋ค.
ํ๊ณ๋ฅผ ๊ทน๋ณตํ๋๋ฐ๋ ๋
ธ์ด์ฆ ์ ๊ฑฐ๊ฐ ํต์ฌ์ด๋ผ๊ณ ๋ณผ ์ ์์ต๋๋ค.
์๊ทธ๋ ํ๊ธฐ์๋ ์ผ๋ฌํธ๊ฐ ํฌํจ๋์ด, ์ผ๋ฌํธ๋ฅผ ํ์ฉํ๋ ๋ด๊ณผ ์ฐ๋์ด ๊ฐ๋ฅํฉ๋๋ค.
์ด๋ณด์๋ ์ฝ๊ฒ ํ์ฉํ ์ ์๋๋ก ์ก๋คํ ๊ธฐ๋ฅ์ ๋นผ๊ณ , ๋กฑ์ด๋ ์์ด๋์๋ง ์ง์คํฉ๋๋ค.
แแ
ฏแซแ
แ
ต)
์ด๋ํ๊ท ์ ์ ์๋ฆฌ : ์ฌ๋ฌ๊ฐ์ง ์ด๋ํ๊ท ์ (SMA, EMA, WMA, HMA, RMA, SWMA, VWMA) ์ ํ์ฉํ ์ ์์ต๋๋ค. ๋จ์ํ ์ด๋ํ๊ท ์ ๋ง ํ์ฉํ๋ ๊ฒ์ผ๋ก๋ ๊ธฐ์กด์ ๋ฌธ์ ์ ์ ๋ฐ์ด๋์ ์ ์์ต๋๋ค.
๊ธฐ์กด์ ์๊ทธ๋ ์งํ์์ ๋ฐ์ํ๋ ๋ฌธ์ ์ ์, ๊ธฐ๋ณธ์ ์ผ๋ก ์งํ๊ฐ ๊ฐ์ง๋ ํํ์ฑ๊ณผ ์ง์ฐ์ผ๋ก ์ธํด, ์ง์
๊ณผ ์ฒญ์ฐ์ ์๋ฆฌ๊ฐ ์ ๋๋ก ๋์ค์ง ์๋ ๊ตฌ์กฐ์ ์ธ ๋ฌธ์ , ์ฆ์ ํ์ ๋จ๋ฐ ๋ฑ์ด ์์ต๋๋ค.
์ด๋ฌํ ํ๊ณ๋ฅผ ๋ณด์ํ๊ธฐ ์ํด์ BNF์ ๊ดด๋ฆฌ์จ ๋งค๋งค๋ฒ์ ์ฐธ๊ณ ํ์์ต๋๋ค. ๊ธฐ์กด์ ์ดํ์ ์ ๊ทธ๋๋ก ์ฐ๋ ๊ฒ์ด ์๋๋ผ ์ ์ ๊ฒฝํ์ ๋ฐ์ํด ์์์ ์ต์ ํํ์๊ธฐ ๋๋ฌธ์ ๊ธฐ์กด์ ์ดํ์ ์ผ๋ก๋
ํด๋น ์งํ์ ์๊ทธ๋์ ๋ฐ๋ผ ๊ตฌํํ ์ ์๋ค๋ ๊ฒ์ด ํน์ง์
๋๋ค.
๊ณผ๋งค๋, ๊ณผ๋งค์์ ์๋ฆฌ : RSI๋ฅผ ํ์ฉํ์ฌ ๊ตฌํํ์์ต๋๋ค.
๋จ๊ธฐ์๊ทธ๋ : TD ์งํ์ ์๋ฆฌ๋ฅผ ํ์ฉ ๋ฐ ๋ณํํ์์ต๋๋ค. ํ์ฌ ์บ๋ค๊ณผ 4๊ฐ์ด์ ์ ์บ๋ค์ ๋น๊ตํด 1~9๊น์ง ์ซ์๋ก ํ๊ธฐํ๋ TD ์งํ์ setup ์๋ฆฌ๋ฅผ ์ดํ์ ์ ์ ์ฉํ์ฌ ๋ณํํ์์ต๋๋ค.
์ค๊ธฐ์๊ทธ๋ : ์ดํ์ ๋ฐ ์ผ๋ชฉ๊ท ํ์ ๋ณํํ์์ต๋๋ค. ์ผ๋ชฉ๊ท ํ์์ ๋ง๋ค์ด์ง๋ ๊ตฌ๋ฆ(์์ด๊ณผ ์์ด)์ ๋ํ๋ฅผ ์์ฉํ์์ต๋๋ค.
์ฅ๊ธฐ์๊ทธ๋ : ์ดํ์ ์ ์๋ฆฌ๋ฅผ ํ์ฉํ์์ต๋๋ค.
๊ธฐ์กด์ ์งํ๋ค๊ณผ ๋น๊ต)
์ํผํธ๋ ๋์ ๋น๊ต :
์๋จ์ ET์งํ, ํ๋จ์ ์ํผํธ๋ ๋ ์งํ์
๋๋ค. ์ํผํธ๋ ๋๋ ์ผ๋ฐ์ ์ผ๋ก ๋ง์ด ์ฐ๋ 14,3 ์ผ๋ก ์ธํ
ํ์์ต๋๋ค.
์ํผํธ๋ ๋๊ฐ buy์ sell์ ๋ฐ๋ณต์ ์ผ๋ก ๋์ฐ๋ฉฐ ๊ตฌ๊ฐ์์ค์ ๋ณด๋๋์, ET์ ์ฅ๊ธฐ์๊ทธ๋์ ๋ํ๋ด๋ ๋ฐฐ๊ฒฝ์์ ๋ณด๋ฉด
ET๋ ํ๋ฒ์ ์ง์
ํ ์ค๊ฐ์ ์๊ทธ๋์ด ์ถํํ์ง ์์ผ๋ฉด์ ๊ตฌ๊ฐ์์ค์ ๋ณด์ง ์๊ณ ์์ต๋๋ค.
๋ค๋ฅธ ์ข
๋ชฉ์์๋ ๋ง์ฐฌ๊ฐ์ง์
๋๋ค.
์ด๋ํ๊ท ์ (sma)๊ณผ ๋น๊ต :
์ด๋ํ๊ท ์ ์ ๋ํํ๋ ๊ณจ๋ ํฌ๋ก์ค์ ๋ฐ๋ํฌ๋ก์ค ์กฐ๊ฑด๊ณผ ๋น๊ตํด๋ ํก๋ณดํ๋ ๊ตฌ๊ฐ์์ ์ด๋ํ๊ท ์ ์ ์ฆ์ ์ง์
๊ณผ ์ฒญ์ฐ์ผ๋ก ์์ค์ ๋์ ํ์ง๋ง
ํ๊ณ๋ฅผ ๋ณด์ํ ET๋ ๋
ธ์ด์ฆ ์์ด ์ถ์ธ๋ฅผ ์ด์ด๋๊ฐ๋๋ค.
์ผ๋ชฉ๊ท ํ๊ณผ ๋น๊ต :
์ผ๋ชฉ๊ท ํ์ ์์ด๊ณผ ์์ด์ ํ์ฉํ์ฌ ํ์ ์ ์ง์
ํ๋ ๊ฒ๋ณด๋ค ๋
ธ์ด์ฆ๊ฐ ์ ์ต๋๋ค.
ํ์์ฑ)
๋ด๊ณผ ์ฐ๋ํ๊ธฐ ์ํด์๋ ํ์ ์ ์ ํํ๊ฒ ๊ตฌํํ๋ ๊ฒ๊ณผ ๋
ธ์ด์ฆ์ ์ ๊ฑฐ๊ฐ ํต์ฌ์
๋๋ค. ๋ด๊ณผ ์ฐ๋ํ์ง ์๋๋ผ๋ ๋งค๋งค์ ๊ธฐ๋ณธ์ ์ธ ์ ๊ทผ์
๋๋ค.
๋๋ถ๋ถ์ ์งํ์ ์ค์ ์์ ๊ธฐ๊ฐ์ ๋๋ฆฌ๋ฉด ์ฅ๊ธฐ์ถ์ธ๋ฅผ ๋ณผ ์ ์์ผ๋ ์ง์
์ ์ด ๋ฆ์ด์ง๊ณ , ๊ธฐ๊ฐ์ ์ค์ด๋ฉด ์ง์
์ ์ด ์ฆ์ ๋ค์ด๊ฐ์ง ๋ง์์ผ ํ ๊ณณ์ ๋ค์ด๊ฐ๊ฒ ๋ฉ๋๋ค.
ET๋ ์ง์
์ ๊ณผ ๋
ธ์ด์ฆ ์ ๊ฑฐ ๋๋ง๋ฆฌ ํ ๋ผ๋ฅผ ์ก์, ์์ฃผ ๋งค๋งคํ์ง ์๋๋ผ๋ ๋ฐ๋ฅด๊ฒ ์ง์
์ ์ ์ ๊ทผํ ์ ์๋๋ก ๋์์ค๋๋ค.
๋๋ง๋ฆฌ ํ ๋ผ๋ฅผ ์ก๋ ๊ฒ์ด ๊ฐ์ฅ ์ด๋ ค์ ์ต๋๋ค. ๋ช๋
์ ์๊ฐ..
์ฐจํธ๋ก ์ค๋ช
)
๋ฐฐ๊ฒฝ์์ ํ๊ธฐ :
์ฅ๊ธฐ์๊ทธ๋์ ๋ฐฐ๊ฒฝ์์ผ๋ก ํ๊ธฐํ์ฌ ํธ๋ ๋๋ฅผ ํ๋์ ํ์
ํ ์ ์๋๋ก ํ์์ต๋๋ค.
์ฅ๊ธฐ์๊ทธ๋ :
์ฐจํธ์์์ ํ์ดํ๋ก ํ๊ธฐ๋ฉ๋๋ค.
์ค๊ธฐ ์๊ทธ๋ :
ํ๋ฝ์ ์บ๋ค์ ๊ฒ์ ์ ๊ทธ๋ผ๋ฐ์ด์
๊ณผ ์บ๋ค ์ ๋นจ๊ฐ์ ์์ผ๋ก ํ์๋ฉ๋๋ค.
์์น์ ์บ๋ค์ ํ์์ ๊ทธ๋ผ๋ฐ์ด์
๊ณผ ์บ๋ค ์๋ ์ด๋ก์ ์์ผ๋ก ํ์๋ฉ๋๋ค.
๋จ๊ธฐ์๊ทธ๋ :
์ฐจํธ์์์ ์บ๋ค์ 1~9๊น์ง ์ซ์๋ก ํ์๋ฉ๋๋ค.
๊ณผ๋งค๋/๊ณผ๋งค์ :
๊ณผ๋งค๋๋ ๋
ธ๋์ ๋ค์ด์๋ชฌ๋(โ)๋ก ํ์๋ฉ๋๋ค.
๊ณผ๋งค์๋ ํ๋์ ๋ค์ด์๋ชฌ๋(โ)๋ก ํ์๋ฉ๋๋ค.
๊ณผ๋งค๋, ๊ณผ๋งค์๊ฐ ์ฒ์ ๋ฐ์ํ๋ ๋ด์์ TP๋ฅผ ๊ฒฐ์ ํฉ๋๋ค. ๋ถํ ์ต์ ์์.
แแ
กแแ
ตแทแแ
ณแ
แ
ฆแแ
ตแท แแ
ตแพ แแ
ฅแฏแ
แ
ฅแแ
ณ)
แแ
ฉแแ
ณแซ แแ
ตแแ
กแซแแ
ณแ
แ
ฆแแ
ตแทแแ
ฆ แแ
ฅแจแแ
ญแผ แแ
กแแ
ณแผแแ
กแแ
ง, แแ
ฎแผแแ
ตแทแแ
ต แแ
ฌแแ
ณแซ แแ
ตแแ
ฎแซแแ
ตแแ
กแซแแ
ณแซ 1h แแ
ตแธแแ
ตแแ
ก.
15๋ถ๋ด๊ณผ 1์๊ฐ๋ด์ ๊ฐ์ด ๋ณด๋ฉด์ ํ์ ์ ์กฐ์ ํ ์ ์์ต๋๋ค.
๋ฉํฐํ์ํ๋ ์. ํ๋ฉด๋ถํ ์ ํ์ฉํ์ฌ ์ฌ๋ฌ ์๊ฐ์ ๋์์ ๊ด์ฐฐํ๋ ๊ฒ์ ์ถ์ฒํฉ๋๋ค.
แแ
กแทแแ
ฉแแ
กแแ
กแผ)
ํด๋น์งํ๋ ์ ๋์์ต์ ๋ณด์ฅํ๋ ์งํ๊ฐ ์๋๋ฉฐ, แแ
ฑแแ
กแแ
ก แแ
ขแ
แ
ตแแ
ณแซ แแ
ฉแแ
ณแซ แแ
ฅแ
แ
ข แแ
งแฏแแ
ฅแผแแ
ณแซ แแ
ฅแซแแ
ฅแจแแ
ณแ
แ
ฉ แแ
ฑแแ
กแแ
ด แแ
ขแจแแ
ตแทแแ
ตแธแแ
ตแแ
ก.
แแ
กแแ
ญแผแแ
กแผแแ
ฅแธ )
แแ
ฉแแ
ขแแ
ฌแซ แแ
กแแ
ญแผแแ
กแแ
กแซ แแ
กแแ
ญแผแแ
กแฏ แแ
ฎ แแ
ตแปแแ
ฉแ
แ
ฉแจ แแ
ฅแฏแแ
ฅแผแแ
ต แแ
ฌแแ
ฅแแ
ตแปแแ
ณแธแแ
ตแแ
ก.
แแ
ฉแแ
ขแ
แ
ณแฏ แแ
กแฎแแ
ณแฏ แแ
งแผแแ
ฎ, แแ
ตแแ
ญ แแ
กแแ
กแซแแ
ด แแ
ณแฏแแ
งแแ
กแฝแแ
ตแแ
ฆ แแ
ตแซแแ
ตแแ
ฆแแ
ตแแ
ฅ แแ
ฅแแแ
ตแ
แ
ณแฏ แแ
ฎแ
แ
ณแธแแ
ตแแ
ก.
แแ
กแแ
ณแแ
ชแแ
งแซแแ
ณแ
แ
ฉแแ
กแแ
ฅ แแ
กแผแแ
กแซแแ
ฆ แแ
ตแแ
ญแ
แ
ณแฏ แแ
ฎแฏแ
แ
ฅ แแ
ฌแซแแ
ฉแจแแ
ขแธแแ
ฆ แแ
ฉแแ
งแซ แแ
ณแฏแแ
งแแ
กแฝแแ
ต แแ
ขแธแแ
ต แแ
ตแปแแ
ณแธแแ
ตแแ
ก.
แแ
ณแฏแแ
งแแ
กแฝแแ
ต แแ
ขแธ (แแ
ฉแแ
ณแซ, แแ
ตแซแแ
กแแ
ตแแ
ณ แแ
ฉแซแ
แ
ต) แแ
ฆแแ
ฅ แแ
ตแแ
ญแแ
ตแ
แ
ณแทแแ
ณแฏ แแ
ฎแฏแ
แ
ฅแแ
ฅ แแ
ตแแ
ญแ
แ
ณแฏ แแ
ฎแแ
กแแ
กแธแแ
ตแแ
ก.
แแ
ฏแซแแ
กแซแแ
ต แแ
ฎแแ
งแแ
ซแปแแ
ณแทแแ
ฆแแ
ฉ แแ
ตแแ
ญแแ
ฎแแ
กแแ
ต study errorแแ
ก แแ
กแฏแแ
ขแผแแ
กแฏ แแ
งแผแแ
ฎ
แแ
กแแ
ณแ
แ
ณแฏ แแ
ฉแแ
ฎ แแ
ณแแ
ฉ ์ฌ์์ํจ์ผ๋ก์จ ๋ฌธ์ ์ ์ ํด๊ฒฐํ ์ ์์ต๋๋ค.
Trend Direction & Levels IdentifierOverview : Trend Direction & Levels Identifier (TDLI) provides you with two lines - Resistance/Support line (RSLine) and Trend Line. These two lines form a channel which is filled with a colour showing current market direction, which also prints Bullish or Bearish text. Trend Line calculation is similar but follows different approach than Super Trend indicator. RSLine calculation is done using EMA and dynamic ATR.
How does this work?
Firstly understand Supertrend - The Supertrend indicator is a freely available technical analysis tool that helps traders identify the direction of the trend . It is based on the concept of volatility, and it provides a simple way to identify whether the current market trend is bullish or bearish.
Here's a basic explanation of the Supertrend indicator's logic and how it is commonly used:
Supertrend Indicator Logic:
Calculation of Average True Range (ATR) : The first step involves calculating the Average True Range (ATR) over a specified period. ATR measures market volatility by considering the average range between the high and low prices over a given number of periods.
Multiplier Factor : A multiplier factor is then applied to the ATR. The multiplier is usually set by the trader or analyst and determines the sensitivity of the Supertrend to changes in volatility.
Calculation of Upper and Lower Bands:The Supertrend indicator calculates two bands - an upper band and a lower band.
Upper Band (UB) = High price - (Multiplier * ATR)
Lower Band (LB) = Low price + (Multiplier * ATR)
Determining Trend Direction : If the current market price is above the Upper Band, the Supertrend suggests a bearish trend (sell signal). If the current market price is below the Lower Band, the Supertrend suggests a bullish trend (buy signal).
Now, Let's understand how we use this logic with some modification to build our Trend line -
Let's break down the key differences:
1. Calculation of Trend Switch Points:
- Supertrend: The Supertrend indicator primarily relies on the Average True Range (ATR) to calculate the volatility of the market. It then determines trend direction based on whether the closing price is above or below the Supertrend line.
- Our Trend: We use a modified ATR for volatility measurement (ATR / x), our code introduces modifications in the calculation of trend switch points. It incorporates moving averages (SMA - Simple Moving Averages) to define high and low prices, adding a dynamic element to the identification of trend reversal points.
2. Trend States and Switch Logic:
- Supertrend: The Supertrend generally has two states: uptrend or downtrend. It switches its state when the closing price crosses the Supertrend line.
- Our Trend: Our code introduces an additional variable, which is not binary (0 or 1) but rather represents the state of the trend (0 for uptrend, 1 for downtrend). The indicator uses a more complex logic involving previous trend states and moving averages to determine trend switches.
So, our trend line incorporates additional elements such as moving averages, dynamic amplitude, and channel deviation to modify the Supertrend logic and provide a more nuanced and visually informative representation of market trends. These modifications offer traders more flexibility in adapting the indicator to different market conditions and trading preferences.
Remember the underlying logic is of Supertrend which is freely available to all.
Another line is RSLine, lets dive into its logic and calculation -
Average True Range (ATR) Calculation : Calculates the Average True Range, a measure of market volatility. The ATR can be dynamically adjusted based on user preference.
Chande Momentum Oscillator (CMO) and Variable (VAR) Calculation : Calculates the CMO, which measures momentum, and uses it to compute the VAR value. This introduces an adaptive element to the indicator.
Other Moving Averages : Calculates various moving averages, including Wilder's Moving Average (WWMA), Zero-Lag Exponential Moving Average (ZLEMA), and Time Series Forecast (TSF), providing different perspectives on trend direction.
Main Moving Average (MAvg) Calculation : Computes the main moving average based on EMA and length.
Stop Level Calculation : Determines stop levels for both long and short positions. The levels are influenced by the moving average (MAvg) and ATR, with an option to normalize them.
The Stop Levels forms the RSLine which acts as either resistance or support based on market direction.
Lets see how the indicator tells you probable market direction -
Direction Identification : Identifies the current trend direction (uptrend or downtrend) based on the relationship between the moving average and the previous stop level. It also prints Bullish or Bearish on chart based on crossovers and crossunders between the Trend Line and the RSLine.
Fill Coloring for Highlighting : It Fills the area between the Trend Line and RSLine with either green or red color to visually emphasize the trend direction. The colors change based on whether the Trend Line and MAvg is above or below the stop levels.
So there are 3 major things -
1. RSLine - Uses EMA and dynamic ATR to calculate stop levels. This acts as support or resistance to current trend. It is always red in colour.
2. Trend Line - Unlike Super Trend this Trend Line calculation uses a combination of highest high, lowest low, and EMA of a fixed range of candles to determine trend changes. It uses a fixed amplitude for calculating the highest high, lowest low, and EMA values, but it doesn't incorporate dynamic volatility adjustments like ATR. Its colour varies from red to green based on calculation.
3. Channel Colour - Channel colour is decided based on crossover of Trend Line and RSLine, if Trend Line crosses RSLine from bottom then channel colour becomes green, similarly red colour is calculated.
How to use this?
Refer this snapshot for content below -
1. Once a crossover happens between Trend Line and RSLine, bullish / bearish text is printed with change in colour of channel. RSLine acts as support/resistance.
2. Look for colour of Trend Line - when it matches channel colour, it means favourable direction is that colour (green - long, red - short)
3. Remember any ongoing trend can reverse any second, so follow price action for better results.
Preferred Timeframe : It works best in 5 minute timeframe, but can also be used in other time frames.
Reason to use these two lines ?
The Trend Line tells current trend direction using a line which keeps changing colours, for double confirmation we use the RSline and channel colour which is calculated using Trend line and RSLine crossover. When both Trend line and RSLine channel colour is same that gives a more solid confirmation (not 100%) of a trend
Why it is worth paying for :
As mentioned earlier this indicator is built over freely available Supertrend and EMA indicators. The modifications which we have done for better calculation and visualisation makes it worth.
The indicator may be considered valuable for traders who appreciate a visual representation of market trend direction and important stop levels. Normal indicators like supertrend just shows a line which gives you idea about the trend but our indicator apart from telling trend direction tells important levels and provide a channel filled with current trend direction significance which helps in following trend precisely.
1. The customization options and visual clarity could enhance decision-making for those who prefer a more tailored approach.
2. Traders willing to pay for this indicator may find it useful in complementing their existing analysis and strategy.
Although one should understand using premium indicator doesnt mean it will generate magic results, if you know price action and risk management properly then only consider trying our indicator else practice trading on free indicators first.
IMPORTANT : As Stock markets are dynamic in nature, no indicator is a magic indicator which will give you 100% accurate results on one click. You still have to use price action for best results.
DISCLAIMER : This indicator isn't a get rich quick scheme, neither it can provide 100% accurate results. It is meant to be used as an aid to Price Action Trading and proper risk management.