WP NEO Superman 01The provided Pine Script code consists of three distinct scripts that implement various technical analysis tools for trading on the TradingView platform. Below is a summary of each script's functionality:
SCRIPT 1: WP NEO Superman
Purpose: Implements a SuperTrend indicator based on Average True Range (ATR).
Key Features:
ATR Calculation: Users can choose between a standard ATR calculation or a simple moving average of the true range.
Trend Detection: Identifies uptrends and downtrends based on the closing price relative to calculated upper and lower bands.
Buy/Sell Signals: Generates buy signals when the trend changes from down to up and sell signals when it changes from up to down.
Visual Elements: Plots the trend lines, buy/sell signals, and optional highlighting of the trend areas.
Alerts: Configurable alerts for buy/sell signals and trend direction changes.
SCRIPT 2: Moving Average Ribbon
Purpose: Creates a customizable moving average ribbon with multiple moving averages.
Key Features:
Multiple Moving Averages: Users can add up to four different moving averages (SMA, EMA, SMMA, WMA, VWMA) with customizable lengths and colors.
Display Options: Each moving average can be toggled on or off for visibility.
User Inputs: Allows users to set the source price, length, and type of moving average for each of the four moving averages.
SCRIPT 3: Smarter SnR (Support and Resistance)
Purpose: Identifies and displays support and resistance levels using pivot points and trendlines.
Key Features:
Pivot Points: Calculates swing high and low pivot points to determine support and resistance levels.
Trendlines: Draws trendlines based on the most recent pivot points and can show price levels.
Alerts: Configurable alerts for breakouts above resistance and below support levels.
Dashboard: Displays a dashboard with support/resistance levels and trendline prices.
Quotes Table: Allows users to display a customizable quotes table on the chart.
Additional Features Across Scripts:
User Inputs: Each script includes various user inputs for customization, allowing traders to tailor the indicators to their preferences.
Visual Representation: All scripts utilize visual elements such as lines, shapes, and labels to enhance the user experience and provide clear signals on the chart.
Alerts: Alerts are integrated into all scripts to notify users of significant events, such as trend changes or price breakouts.
Conclusion
These scripts provide a comprehensive toolkit for traders, combining trend analysis, moving averages, and support/resistance levels to facilitate informed trading decisions. Users can customize the indicators to fit their trading strategies and preferences, making them versatile tools for technical analysis.
"DISCLAIMER ON"
Superman Arived
Educational
Trading Tool Beta v1.0This indicator show possibleentry and exit for swing trader with support and resistance.
added support and resistance and trend line by other pine coder.
Session Bar/Candle ColoringChange the color of candles within a user-defined trading session. Borders and wicks can be changed as well, not just the body color.
PREFACE
This script can be used an educational resource for those who are interested in learning Pine Script. Therefore, the script is published open source and is organized in a manner that follows the recommended Style Guide .
While the main premise of the indicator is rather simple, the script showcases various things that can be achieved such as conditional plotting, alignment of indicator settings, user input validation, script optimization, and more. The script also has examples of taking into consideration the chart timeframe and/or different chart types (Heikin Ashi, Renko, etc.) that a user might be running it on. Note: for complete beginners, I strongly suggest going through the Pine Script User Manual (possibly more than once).
FEATURES
Besides being able to select a specific time window, the indicator also provides additional color settings for changing the background color or changing the colors of neutral/indecisive candles, as shown in the image below.
This allows for a higher level of customization beyond the TradingView chart settings or other similar scripts that are currently available.
HOW TO USE
First, define the intraday trading session that will contain the candles to modify. The session can be limited to specific days of the week.
Next, select the parts of the candles that should be modified: Body, Borders, Wick, and/or Background.
For each of the candle parts that were enabled, you can select the colors that will be used depending on whether a candle is bullish (⇧), bearish (⇩), or neutral (⇆).
All other indicator settings will have a detailed tooltip to describe its usage and/or effect.
LIMITATIONS
The indicator is not intended to function on Daily or higher timeframes due to the intraday nature of session time windows.
The indicator cannot always automatically detect the chart type being used, therefore the user is requested to manually input the chart type via the " Chart Style " setting.
Depending on the available historical data and the selected choice for the " Portion of bar in session " setting, the indicator may not be able to update very old candles on the chart.
EXAMPLE USAGE
This section will show examples of different scenarios that the indicator can be used for.
Emphasizing a main trading session.
Defining a "Pre/post market hours background" like is available for some symbols (e.g., NASDAQ:AAPL ).
Highlighting in which bar the midnight candle occurs.
Hiding indecision bars (neutral candles).
Showing only "Regular Trading Hours" for a chart that does not have the option to toggle ETH/RTH. To achieve this, the actual chart data is hidden, and only the indicator is visible; alternatively, a 2nd instance of the indicator could change colors to match the chart background.
Using a combination of Bars and Japanese Candlesticks. Alternatively, this could be done by hiding the main chart data and using 2 instances of the indicator (one with " Chart Style " setting as Bars , and the other set to Candles ).
Using a combination of thin and thick bars on Range charts. Note: requires disabling the "Thin Bars" setting for Bar charts in the TradingView chart settings.
NOTES
If using more than one instance of this indicator on the same chart, you can use the TradingView "Save Indicator Template" feature to avoid having to re-configure the multiple indicators at a later time.
This indicator is intended to work "out-of-the-box" thanks to the behind_chart option introduced to Pine Script in October 2024. But you can always manually bring the indicator to the front just in case the color changes are not being seen (using the "More" option in the indicator status line: More > Visual Order > Bring to front ).
Many thanks to fikira for their help and inspiring me to create open source scripts.
Any feedback including bug reports or suggestions for improving the indicator (or source code itself) are always welcome in the comments section.
TollDateLevels - BalaRtoll date levels - BalaR
written for education purposes to understand these levels
Compare Symbol [LuxmiAI]This indicator allows users to plot candles or bars for a selected symbol and add a moving average of their choice as an underlay. Users can customize the moving average type and length, making it versatile for a wide range of trading strategies.
This script is designed to offer flexibility, letting traders select the symbol, timeframe, candle style, and moving average type directly from the input options. The moving averages include the Exponential Moving Average (EMA), Simple Moving Average (SMA), Weighted Moving Average (WMA), and Volume-Weighted Moving Average (VWMA).
Features of the Script
This indicator provides the following key features:
1. Symbol Selection: Users can input the ticker symbol for which they want to plot the data.
2. Timeframe Selection: The script allows users to choose a timeframe for the symbol data.
3. Candle Styles: Users can select from three styles - regular candles, bars, or Heikin-Ashi candles.
4. Moving Average Options: Users can choose between EMA, SMA, WMA, and VWMA for added trend analysis.
5. Customizable Moving Average Length: The length of the moving average can be adjusted to suit individual trading strategies.
How the Script Works
The script starts by taking user inputs for the symbol and timeframe. It then retrieves the open, high, low, and close prices of the selected symbol and timeframe using the request.security function. Users can select between three candle styles: standard candles, bars, and Heikin-Ashi candles. If Heikin-Ashi candles are selected, the script calculates the Heikin-Ashi open, high, low, and close values.
To add further analysis capabilities, the script includes a moving average. Traders can select the moving average type from EMA, SMA, WMA, or VWMA and specify the desired length. The selected moving average is then plotted on the chart to provide a clear visualization of the trend.
Step-by-Step Implementation
1. Input Options: The script starts by taking inputs for the symbol, timeframe, candle style, moving average type, and length.
2. Data Retrieval: The script fetches OHLC data for the selected symbol and timeframe using request.security.
3. Candle Style Logic: It determines which candle style to plot based on the user’s selection. If Heikin-Ashi is selected, the script calculates Heikin-Ashi values.
4. Moving Average Calculation: Depending on the user’s choice, the script calculates the selected moving average.
5. Visualization: The script plots the candles or bars and overlays the moving average on the chart.
Benefits of Using This Indicator
This custom indicator provides multiple benefits for traders. It allows for quick comparisons between symbols and timeframes, helping traders identify trends and patterns. The flexibility to choose different candle styles and moving averages enhances its adaptability to various trading strategies. Additionally, the ability to customize the moving average length makes it suitable for both short-term and long-term analysis.
Sweaty Palms MA (50/100/200 + 250)Sweaty Palms Multiple MA (50/100/200 + 250)
A comprehensive moving average indicator combining the most powerful technical levels used by institutional traders. Features crystal-clear visualization of major moving averages with distinct colors and dynamic labels for enhanced clarity.
Features:
• Multiple MA types available (SMA, EMA, WMA, RMA, HMA)
• Four key moving averages: 50, 100, 200, and optional 250
• Institutional-grade color coding:
- Blue (50 MA): Short-term trend
- Orange (100 MA): Intermediate trend
- Purple (200 MA): Long-term trend
- White (250 MA): Extra long-term trend
• Dynamic labels that move with price
• Optional 250 MA toggle for reduced chart clutter
• Customizable MA lengths
Key Applications:
• Major Support/Resistance Levels: These MAs are widely watched by institutional traders
• Bull/Bear Market Definition: Price above/below 200 MA
• Golden/Death Cross: 50 & 200 MA crossovers
• Multiple Timeframe Analysis: Different MAs for different trading horizons
• Trend Strength: Spacing and alignment of MAs indicate trend strength
Settings:
• MA Type: Choose between SMA, EMA, WMA, RMA, HMA
• Customizable lengths for all MAs
• Toggle option for 250 MA
• Clean label display showing MA periods
Note: This indicator combines the most followed moving averages in financial markets. The 50, 100, and 200 MAs are particularly significant as they are watched by large institutions and often create self-fulfilling support/resistance levels.
Created by SweatyPalmsAlgo
Sweaty Palms 9/21 EMASweaty Palms 9/21 EMA
A clean and efficient implementation of the widely-used 9 & 21 EMA combination. This indicator helps traders identify trend direction and potential support/resistance levels with easily distinguishable colors and clear labels.
Features:
• Customizable EMA lengths (default 9/21)
• Clear color coding: Green for faster EMA, Gold for slower EMA
• Dynamic labels that move with price
• Toggle visibility for each EMA
• Clean, uncluttered display
Key Use Cases:
• Trend Direction: When the faster EMA is above the slower EMA, it suggests an uptrend, and vice versa
• Dynamic Support/Resistance: These EMAs often act as support in uptrends and resistance in downtrends
• Momentum: The spacing between EMAs can indicate trend strength
• Trade Signals: Crossovers between EMAs can signal potential entry/exit points
Settings:
• First EMA Length: Default 9 (customizable)
• Second EMA Length: Default 21 (customizable)
• Show/Hide options for each EMA
Note: This indicator is designed for clarity and ease of use, making it suitable for both beginners and experienced traders. The default settings of 9/21 are popular among day traders, but can be adjusted to suit any trading style or timeframe.
Created by SweatyPalmsAlgo
SHUMILKIN Ai//@version=5
indicator('JohnScript', format=format.price, precision=4, overlay=true)
// Inputs
a = input(1, title='Чувствительность')
c = input(10, title='Период ATR')
h = input(false, title='Сигналы Heikin Ashi')
signal_length = input.int(title='Сглаживание', minval=1, maxval=200, defval=11)
sma_signal = input(title='Сигнальная линия (MA)', defval=true)
lin_reg = input(title='Линейная регрессия', defval=false)
linreg_length = input.int(title='Длина линейной регрессии', minval=1, maxval=200, defval=11)
// Линии Болинджера
bollinger = input(false, title='Боллинджер')
bolingerlength = input(20, 'Длина')
// Bollinger Bands
bsrc = input(close, title='Исходные данные')
mult = input.float(2.0, title='Смещение', minval=0.001, maxval=50)
basis = ta.sma(bsrc, bolingerlength)
dev = mult * ta.stdev(bsrc, bolingerlength)
upper = basis + dev
lower = basis - dev
plot(bollinger ? basis : na, color=color.new(color.red, 0), title='Bol Basic')
p1 = plot(bollinger ? upper : na, color=color.new(color.blue, 0), title='Bol Upper')
p2 = plot(bollinger ? lower : na, color=color.new(color.blue, 0), title='Bol Lower')
fill(p1, p2, title='Bol Background', color=color.new(color.blue, 90))
// EMA
len = input(title='Длина EMA', defval=50)
ema1 = ta.ema(close, len)
plot(ema1, color=color.new(color.yellow, 0), linewidth=2, title='EMA')
xATR = ta.atr(c)
nLoss = a * xATR
src = h ? request.security(ticker.heikinashi(syminfo.tickerid), timeframe.period, close, lookahead=barmerge.lookahead_off) : close
xATRTrailingStop = 0.0
iff_1 = src > nz(xATRTrailingStop , 0) ? src - nLoss : src + nLoss
iff_2 = src < nz(xATRTrailingStop , 0) and src < nz(xATRTrailingStop , 0) ? math.min(nz(xATRTrailingStop ), src + nLoss) : iff_1
xATRTrailingStop := src > nz(xATRTrailingStop , 0) and src > nz(xATRTrailingStop , 0) ? math.max(nz(xATRTrailingStop ), src - nLoss) : iff_2
pos = 0
iff_3 = src > nz(xATRTrailingStop , 0) and src < nz(xATRTrailingStop , 0) ? -1 : nz(pos , 0)
pos := src < nz(xATRTrailingStop , 0) and src > nz(xATRTrailingStop , 0) ? 1 : iff_3
xcolor = pos == -1 ? color.red : pos == 1 ? color.green : color.blue
ema = ta.ema(src, 1)
above = ta.crossover(ema, xATRTrailingStop)
below = ta.crossover(xATRTrailingStop, ema)
buy = src > xATRTrailingStop and above
sell = src < xATRTrailingStop and below
barbuy = src > xATRTrailingStop
barsell = src < xATRTrailingStop
plotshape(buy, title='Buy', text='Buy', style=shape.labelup, location=location.belowbar, color=color.new(color.green, 0), textcolor=color.new(color.white, 0), size=size.tiny)
plotshape(sell, title='Sell', text='Sell', style=shape.labeldown, location=location.abovebar, color=color.new(color.red, 0), textcolor=color.new(color.white, 0), size=size.tiny)
barcolor(barbuy ? color.green : na)
barcolor(barsell ? color.red : na)
alertcondition(buy, 'UT Long', 'UT Long')
alertcondition(sell, 'UT Short', 'UT Short')
bopen = lin_reg ? ta.linreg(open, linreg_length, 0) : open
bhigh = lin_reg ? ta.linreg(high, linreg_length, 0) : high
blow = lin_reg ? ta.linreg(low, linreg_length, 0) : low
bclose = lin_reg ? ta.linreg(close, linreg_length, 0) : close
r = bopen < bclose
signal = sma_signal ? ta.sma(bclose, signal_length) : ta.ema(bclose, signal_length)
plotcandle(r ? bopen : na, r ? bhigh : na, r ? blow : na, r ? bclose : na, title='LinReg Candles', color=color.green, wickcolor=color.green, bordercolor=color.green, editable=true)
plotcandle(r ? na : bopen, r ? na : bhigh, r ? na : blow, r ? na : bclose, title='LinReg Candles', color=color.red, wickcolor=color.red, bordercolor=color.red, editable=true)
plot(signal, color=color.new(color.white, 0))
Supertrend Buy-Only Strategy (Real-Time Execution)Using supertrend to buy when close price crosses above supertrend and then exit when close price closes below supertrend. So this is buy only strategy.
EMA/SMA + Multi-Timeframe Dashboard (Vertical)Let us introduce to you the EMA/SMA Multi-timeframe Dashboard. This Tool has an intuitive interface and is ideal for traders looking to analyze market trends or momentum using Exponential moving average (EMA) or simple moving average (SMA). An investment that will pay off since it combines the 21 EMA, and 200 SMA for several time frames into a simple view ensuring that you never miss important market signals.
Key Features:
multi-time frame dashboard
Monitor 21 EMA, 50 EMA, and 200 SMA in multiple time frames simultaneously.
Set your monitor time frames according to your strategies.
50 EMA based dashboard insights.
21 EMA 200 SMA pivot above or below 50 EMA its other ranges or areas of concern.
Trend and momentum analysis.
Moving together across multiple time frames can help assess the time of reversals and the direction of the trend, which can aid in the assessment of the trend direction.
Customizable Alerts.
Crossover and the price interacting with the moving averages are examples of conditions that can be set alerts for.
Avoid checking charts constantly to ensure you are not missing important signals.
User Friendly Design.
Data is presented in thorough and simple layouts to ensure that it is plainly readable. Additional tools, such as color codes, are employed to aid in increasing comprehension and improving decision-making.
Benefits:
Due to gathering all necessary moving averages in one spot, has a positive impact on efficiency as it saves time.
Provides a comprehensive perspective on trend strength and optimization to make accurate trades.
Swing Traders, Day Traders, and Long-term Investors who want to fine-tune their timing in the market for better results.
Keep up with the EMA / SMA Multi-Timeframe Dashboard and blend accuracy with the insights that you require for all your traders.
B4100 - Market SessionsA simple script to highlight London, New York, Hong Kong pre-market, open, close times.
Volume-Based Circle Below CandleThis indicator check the volume of each candle and highlights or marks the candle that has specific volume mentioned under the settings.
NG pattern detector - UdayThis pattern detects mostly used candle patterns
bullish engulfing bearish engulfing hammer inverted hammer dragonfly doji and gravestone doji.
also make sure to add alert
Consistency Rule CalculatorThis script, titled "Consistency Rule Calculator" is designed for use on the TradingView platform. It allows traders to input specific values related to their account, daily highest profit, and a consistency rule (as a decimal).
The script then calculates the "Amount Needed to Withdraw" based on the user's input. This value is calculated using the formula:
Amount Needed to Withdraw = (Daily Highest Profit/Consistency Rule )+ Account Type
Each prop firm has its own consistency rule. Follow their rule, and you will be second to payout!
Additionally, it displays the input values and the calculated amount in a customizable table on the chart. The table is formatted with colors for clarity, and it provides a motivational quote about successful trading. Plus, user can adjust the table's position on the screen.
Year-over-Year % Change for PCEPILFEHello, traders!
This indicator is specifically for FRED:PCEPILFE , which is a 'Personal Consumption Expenditures (PCE) Index excluding food and energy.'
What this indicator does is compare the monthly data to that of the same month last year to see how it has changed over the year. This comparison method is widely known as YoY(Year-over-Year).
While I made this indicator to use for FRED:PCEPILFE , you may use it for different charts as long as they show monthly data.
FRED:PCEPILFE is one of the main measures of inflation the Federal Reserve uses.
You can see the YoY % change of the PCE Index excluding food and energy in the official website for the Bureau of Labor Statistics, but unfortunately, I couldn't find one in TradingView.
So instead, I decided to make my own indicator showing the changes using FRED:PCEPILFE .
The code is very simple: it compares the data to the data 12 points ago because 12 points would mean 12 months in this chart. We then multiply the result by 100 for percentage.
Doing so, we compare the current month to the same month of the previous year.
Because I am only interested in the YoY % Change of the index, I pulled the indicator all the way up, covering the original chart data entirely. (Or you could achieve the same by simply moving your indicator to the pane above. But this way, the original chart data is also visible.)
I hope this indicator helps you with your analysis. Feel free to ask questions if have any!
God bless!
WP Dominant BU BD FVG MARK Stc Detectionfirst trial error. use with great awareness.
This script is a technical analysis tool created to detect and visualize two important market patterns: Dominant Break Up (DBU) and Dominant Break Down (DBD). These patterns provide insight into market sentiment and potential price movement reversals or continuations. Here’s a detailed explanation of how the script works:
1. Purpose of the Script
The script identifies specific formations of candlesticks that indicate strong upward (DBU) or downward (DBD) trends. By highlighting these patterns directly on the chart, traders can quickly assess the market situation and make informed decisions.
2. Components of the Script
a) DBU (Dominant Break Up) Pattern
The DBU pattern indicates bullish strength, where the market shows a dominant upward move.
Rules for DBU:
At least 5 candles are analyzed: the first 4 must be green (bullish candles), followed by 1 red (bearish) candle.
The open price of the fifth candle must:
Be higher than the closing prices of the 4 previous green candles.
Be lower than the close price of the last (current) candle.
Visualization for DBU:
Green triangle symbol is plotted below the DBU candle to indicate bullish strength.
A transparent purple box highlights the relevant price range over the detected candles.
b) DBD (Dominant Break Down) Pattern
The DBD pattern signals bearish strength, where the market shows a dominant downward move.
Rules for DBD:
At least 5 candles are analyzed: the first 4 must be red (bearish candles), followed by 1 green (bullish) candle.
The open price of the fifth candle must:
Be lower than the closing prices of the 4 previous red candles.
Be higher than the close price of the last (current) candle.
Visualization for DBD:
Red triangle symbol is plotted above the DBD candle to indicate bearish strength.
A transparent orange box highlights the relevant price range over the detected candles.
3. How It Works
The script analyzes historical price data using the open, close, high, and low values for the last 5 candles. It applies mathematical conditions to check for the patterns:
Identifies whether the recent candles are predominantly bullish or bearish.
Checks whether the open price of the critical candle (fifth candle) satisfies specific criteria related to the previous candles.
When a pattern is detected, the script automatically:
Draws symbols (triangleup for DBU and triangledown for DBD) to indicate the pattern on the chart.
Draws a shaded box over the candle range to provide a clear visual highlight.
4. Benefits
Simplicity: Patterns are automatically detected and highlighted, saving time and effort for traders.
Versatility: Can be applied to any time frame or market (stocks, forex, crypto, etc.).
Actionable Insights: Helps traders spot potential reversal zones, trend continuations, or breakout opportunities.
5. Practical Usage
Add this script to your trading platform (e.g., TradingView).
Apply it to your preferred chart.
Look for the visual cues (triangles and shaded boxes) to identify DBU and DBD patterns.
Use these patterns in combination with other indicators or analysis techniques for better decision-making.
6. Limitations
It may generate false signals in choppy or low-volume markets.
Best used in trending markets or with confirmation from other indicators.
Traders should backtest and validate the script before relying on it in live trading.
By automating the detection of DBU and DBD patterns, this script is a powerful tool for traders who rely on candlestick analysis to make quick and informed decisions.
Alligator IndicatorThe Alligator Indicator is a popular tool created by Bill Williams. It uses three moving averages (referred to as the “Jaw,” “Teeth,” and “Lips”) with different lookback periods and forward offsets. By combining these three lines, the Alligator helps traders visually identify market trends, potential turning points, and periods of consolidation.
Jaw (blue): The longest moving average, shifted the farthest forward.
Teeth (red): A medium-length moving average, shifted moderately forward.
Lips (green): The shortest moving average, shifted the least.
When these lines “open up” and separate, it suggests a strong directional move (the Alligator is “awake and feeding”). When they converge or overlap, it indicates market indecision or consolidation (the Alligator is “sleeping”). Traders often watch for crossovers between these lines to identify potential trend reversals or breakout entries. This indicator can be combined with other tools (like momentum or volume analysis) to help confirm trade signals.
IU Multiple Trailing Stop Loss Methods The 'IU Multiplier Trailing SL' its risk management tool which allows users to apply multiple trailing stop-loss (SL) methods for risk management of their trades. Below is a detailed explanation of each input and the working of the Script.
Main Inputs:
- bar_time: Specifies the date from which the strategy begins.
- 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 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.
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.
Elf Trade Academy- Multipl. SMA Trend and ATRELF TRADE ACADEMY YOUTUBE VE TELEGRAM SAYFASI İÇİN BASİT GÖSTERGELER SERİSİ AMACIYLA KODLANMIŞTIR
İçindekiler
-Seçtiğiniz iki hareketli ortalama değerine göre tablo haline zaman dilimleri ayrılmış halde up trend/down trend belirteçleri
-Farklı zaman dilimlerinde ki atr değerleri tablosu.
MMXM ICT [TradingFinder] Market Maker Model PO3 CHoCH/CSID + FVG🔵 Introduction
The MMXM Smart Money Reversal leverages key metrics such as SMT Divergence, Liquidity Sweep, HTF PD Array, Market Structure Shift (MSS) or (ChoCh), CISD, and Fair Value Gap (FVG) to identify critical turning points in the market. Designed for traders aiming to analyze the behavior of major market participants, this setup pinpoints strategic areas for making informed trading decisions.
The document introduces the MMXM model, a trading strategy that identifies market maker activity to predict price movements. The model operates across five distinct stages: original consolidation, price run, smart money reversal, accumulation/distribution, and completion. This systematic approach allows traders to differentiate between buyside and sellside curves, offering a structured framework for interpreting price action.
Market makers play a pivotal role in facilitating these movements by bridging liquidity gaps. They continuously quote bid (buy) and ask (sell) prices for assets, ensuring smooth trading conditions.
By maintaining liquidity, market makers prevent scenarios where buyers are left without sellers and vice versa, making their activity a cornerstone of the MMXM strategy.
SMT Divergence serves as the first signal of a potential trend reversal, arising from discrepancies between the movements of related assets or indices. This divergence is detected when two or more highly correlated assets or indices move in opposite directions, signaling a likely shift in market trends.
Liquidity Sweep occurs when the market targets liquidity in specific zones through false price movements. This process allows major market participants to execute their orders efficiently by collecting the necessary liquidity to enter or exit positions.
The HTF PD Array refers to premium and discount zones on higher timeframes. These zones highlight price levels where the market is in a premium (ideal for selling) or discount (ideal for buying). These areas are identified based on higher timeframe market behavior and guide traders toward lucrative opportunities.
Market Structure Shift (MSS), also referred to as ChoCh, indicates a change in market structure, often marked by breaking key support or resistance levels. This shift confirms the directional movement of the market, signaling the start of a new trend.
CISD (Change in State of Delivery) reflects a transition in price delivery mechanisms. Typically occurring after MSS, CISD confirms the continuation of price movement in the new direction.
Fair Value Gap (FVG) represents zones where price imbalance exists between buyers and sellers. These gaps often act as price targets for filling, offering traders opportunities for entry or exit.
By combining all these metrics, the Smart Money Reversal provides a comprehensive tool for analyzing market behavior and identifying key trading opportunities. It enables traders to anticipate the actions of major players and align their strategies accordingly.
MMBM :
MMSM :
🔵 How to Use
The Smart Money Reversal operates in two primary states: MMBM (Market Maker Buy Model) and MMSM (Market Maker Sell Model). Each state highlights critical structural changes in market trends, focusing on liquidity behavior and price reactions at key levels to offer precise and effective trading opportunities.
The MMXM model expands on this by identifying five distinct stages of market behavior: original consolidation, price run, smart money reversal, accumulation/distribution, and completion. These stages provide traders with a detailed roadmap for interpreting price action and anticipating market maker activity.
🟣 Market Maker Buy Model
In the MMBM state, the market transitions from a bearish trend to a bullish trend. Initially, SMT Divergence between related assets or indices reveals weaknesses in the bearish trend. Subsequently, a Liquidity Sweep collects liquidity from lower levels through false breakouts.
After this, the price reacts to discount zones identified in the HTF PD Array, where major market participants often execute buy orders. The market confirms the bullish trend with a Market Structure Shift (MSS) and a change in price delivery state (CISD). During this phase, an FVG emerges as a key trading opportunity. Traders can open long positions upon a pullback to this FVG zone, capitalizing on the bullish continuation.
🟣 Market Maker Sell Model
In the MMSM state, the market shifts from a bullish trend to a bearish trend. Here, SMT Divergence highlights weaknesses in the bullish trend. A Liquidity Sweep then gathers liquidity from higher levels.
The price reacts to premium zones identified in the HTF PD Array, where major sellers enter the market and reverse the price direction. A Market Structure Shift (MSS) and a change in delivery state (CISD) confirm the bearish trend. The FVG then acts as a target for the price. Traders can initiate short positions upon a pullback to this FVG zone, profiting from the bearish continuation.
Market makers actively bridge liquidity gaps throughout these stages, quoting continuous bid and ask prices for assets. This ensures that trades are executed seamlessly, even during periods of low market participation, and supports the structured progression of the MMXM model.
The price’s reaction to FVG zones in both states provides traders with opportunities to reduce risk and enhance precision. These pullbacks to FVG zones not only represent optimal entry points but also create avenues for maximizing returns with minimal risk.
🔵 Settings
Higher TimeFrame PD Array : Selects the timeframe for identifying premium/discount arrays on higher timeframes.
PD Array Period : Specifies the number of candles for identifying key swing points.
ATR Coefficient Threshold : Defines the threshold for acceptable volatility based on ATR.
Max Swing Back Method : Choose between analyzing all swings ("All") or a fixed number ("Custom").
Max Swing Back : Sets the maximum number of candles to consider for swing analysis (if "Custom" is selected).
Second Symbol for SMT : Specifies the second asset or index for detecting SMT divergence.
SMT Fractal Periods : Sets the number of candles required to identify SMT fractals.
FVG Validity Period : Defines the validity duration for FVG zones.
MSS Validity Period : Sets the validity duration for MSS zones.
FVG Filter : Activates filtering for FVG zones based on width.
FVG Filter Type : Selects the filtering level from "Very Aggressive" to "Very Defensive."
Mitigation Level FVG : Determines the level within the FVG zone (proximal, 50%, or distal) that price reacts to.
Demand FVG : Enables the display of demand FVG zones.
Supply FVG : Enables the display of supply FVG zones.
Zone Colors : Allows customization of colors for demand and supply FVG zones.
Bottom Line & Label : Enables or disables the SMT divergence line and label from the bottom.
Top Line & Label : Enables or disables the SMT divergence line and label from the top.
Show All HTF Levels : Displays all premium/discount levels on higher timeframes.
High/Low Levels : Activates the display of high/low levels.
Color Options : Customizes the colors for high/low lines and labels.
Show All MSS Levels : Enables display of all MSS zones.
High/Low MSS Levels : Activates the display of high/low MSS levels.
Color Options : Customizes the colors for MSS lines and labels.
🔵 Conclusion
The Smart Money Reversal model represents one of the most advanced tools for technical analysis, enabling traders to identify critical market turning points. By leveraging metrics such as SMT Divergence, Liquidity Sweep, HTF PD Array, MSS, CISD, and FVG, traders can predict future price movements with precision.
The price’s interaction with key zones such as PD Array and FVG, combined with pullbacks to imbalance areas, offers exceptional opportunities with favorable risk-to-reward ratios. This approach empowers traders to analyze the behavior of major market participants and adopt professional strategies for entry and exit.
By employing this analytical framework, traders can reduce errors, make more informed decisions, and capitalize on profitable opportunities. The Smart Money Reversal focuses on liquidity behavior and structural changes, making it an indispensable tool for financial market success.
Combined Strategy for POLY/USDT1. Plan A (Trend-following):
• Uses 50-period and 200-period SMAs to detect the direction of the trend.
• Bullish Trend: If the current price is above the short-term SMA and the short-term SMA is above the long-term SMA.
• Bearish Trend: If the current price is below the short-term SMA and the short-term SMA is below the long-term SMA.
2. Plan B (Momentum):
• Uses MACD, RSI, and ADX to confirm momentum.
• Bullish Momentum: If the MACD histogram is positive, ADX is above 20, and RSI is between 40 and 70.
• Bearish Momentum: If the MACD histogram is negative, ADX is above 20, and RSI is between 30 and 60.
3. Combined Signal:
• Buy Signal: If both Plan A (Bullish Trend) and Plan B (Bullish Momentum) are true.
• Sell Signal: If both Plan A (Bearish Trend) and Plan B (Bearish Momentum) are true.
Plotting:
• The 50-period SMA and 200-period SMA are plotted on the chart.
• Buy and Sell Signals are shown with green (for buy) and red (for sell) labels on the chart.
• Background color changes when the market is in a bullish or bearish trend.
Alerts:
• Alerts are triggered when a buy or sell signal occurs, so you can get notified in real-time.
26065分足で使用することを想定しています。
直近260個のプライスバーの高値を調べ、そこから260個先の位置に垂直線を引きます。
また、ロスカットの値を設定することで、終値に対するロスカット値を水平線で表示します。