Multi Timeframe Market Formation [LuxAlgo]The Multi Timeframe Market Formation tool allows traders to analyze up to 6 different timeframes simultaneously to discover their current formation, S/R levels and their degree of synchronization with the current chart timeframe. Multi timeframe analysis made easy.
🔶 USAGE
By default, the tool displays the chart's timeframe formation plus up to 5 other formations on timeframes higher than the one in the chart.
When the chart formation is synchronized with any enabled timeframe formation, the tool displays labels and a trailing channel, it uses a gradient by default, so the more timeframes are synchronized, the more visible the labels and the trailing channel are.
All timeframes enabled in the settings panel must be higher than the chart timeframe, otherwise the tool will display an error message.
🔹 Formations
A formation is a market structure defined by a lower and an upper boundary (also known as support & resistance).
Each formation has a different symbol and color to identify it at a glance.
It helps traders to know the current market behavior and the tool displays up to 5 of them.
BULLISH (green ▲): higher high and higher low
BEARISH (red ▼): lower high and lower low
CONTRACTION (orange ◀): lower high and higher low
EXPANSION (blue ▶): higher high and lower low
SIDEWAYS (yellow ◀): Any that does not fit with the others
🔹 Multi Timeframe Formations
The tool displays up to 6 different timeframe formations, the chart timeframe plus 5 more configurable from the settings panel.
Each of them has an upper and lower limit, a timeframe, a color and an icon.
If a bound level is shared by more than one formation, the timeframes and symbols are displayed on the same line.
These are significant levels shared by different timeframes and traders need to be aware of them.
🔹 Sync With Chart Timeframe
If the current formation on the chart timeframe is in sync with any of the timeframes enabled in the settings panel, the tool will display this on the chart.
The more timeframes are in sync, the more they are visible, providing a clear visual representation of the common market behavior on multiple timeframes at the same time.
🔶 SETTINGS
Formation size: Size of market formations on the chart timeframe
🔹 Timeframes
TF1 to TF5: Activate/deactivate timeframe, set size of market formation and activate/deactivate high and low levels
🔹 Style
Show Labels: Enable/Disable Timeframe Sync Labels
Transparency Gradient: Enable/Disable Transparency Gradient
Show Trailing Channel | Multiplier: Enable/Disable Trailing Channel and set multiplier
Color for each formation
Pontos e níveis de pivô
Options Levels Support and ResistanceAre you sometimes clueless of where you are going to find support or resistance for the stock price? Nothing can be more powerful than market positioning via options levels.
This indicator visualizes key institutional options levels including short-term and longer-term Put/Call Walls, and projected implied move ranges.
Key Features:
Displays major support/resistance levels derived from options data
Shows institutional Put Walls (PW) and Call Walls (CW) - areas of significant options activity
Identifies short-term and longer-term gamma levels for more precise trading
Includes an option statistics (IV, Put/Call ratio, trend) in a clean dashboard
Automatically(*) updates throughout the trading day to reflect current market positioning
Currently supporting 440 of the most popular tickers.
Presents gamma flip levels for indexes SPX, RUT, NDX and VIX
Trading Applications:
Identify key price levels where institutional options activity may influence price movement
Gauge market sentiment through IV levels, Put/Call ratios, and options positioning
Plan entries/exits around major Put/Call walls where price reversals are more likely
Monitor changes in institutional positioning through level trends
Levels are calculated externally using comprehensive options data and updated into the indicator multiple times per day. Note that I can't guarantee it will be timely updated since TradingView offers no access to external data nor a way to programmatically update the script.
This code simply renders the levels I calculate using external software. I had to make the code as short as possible to accommodate more tickers, reason why there is no commenting.
The last update time (New York/EST) is shown in the dashboard.
Dynamic S/R Levels: Edge FinderOverview
The Dynamic S/R Levels: Edge Finder indicator is designed to identify dynamic support and resistance levels based on historical price action. It uses a combination of price extremes (highs and lows) over user-defined lookback periods, weighted moving averages (WMAs), and touch-count analysis to provide actionable insights into key market levels.
This tool is ideal for traders who want to:
Identify dynamic support and resistance zones.
Understand the strength of these levels based on price touches.
Make informed decisions using clear, adaptive levels.
How It Works
Dynamic Levels Calculation:
The indicator calculates dynamic support levels using the lowest lows and dynamic resistance levels using the highest highs over user-defined lookback periods (e.g., 20, 40, 60 bars, etc.).
These levels are updated dynamically as new price data becomes available.
Touch Count Analysis:
The indicator counts how many times the price has touched or come close to each support/resistance level within the lookback period.
Levels with more touches are considered stronger and are highlighted accordingly.
Weighted Moving Averages (WMAs):
The indicator uses 50-period and 100-period WMAs to identify the closest support/resistance levels to the current trend.
Levels near these WMAs are given additional weight, as they are more likely to act as significant barriers.
Level Merging:
If two support or resistance levels are too close to each other (based on the minimum distance percentage), the weaker level (with fewer touches) is removed to avoid clutter.
Visualization:
Support levels are displayed as dashed red lines, and resistance levels are displayed as dashed blue lines.
Each level is labeled with its corresponding touch count, allowing traders to quickly assess its strength.
How to Interpret the Indicator
Strong Support/Resistance Levels:
Levels with higher touch counts (e.g., 5, 10, or more) are considered stronger and are more likely to hold in the future.
Use these levels to plan entries, exits, or stop-loss placements.
Proximity to WMAs:
Levels closest to the 50-period or 100-period WMA are more significant, especially in trending markets.
These levels often act as dynamic barriers where price reactions are more likely.
Breakouts and Rejections:
If the price breaks through a strong resistance level, it may indicate a potential bullish trend.
If the price rejects a strong support level, it may indicate a potential bearish trend.
Always confirm breakouts or rejections with additional analysis (e.g., volume, candlestick patterns).
Level Merging:
Merged levels indicate areas of high confluence, where multiple support/resistance zones overlap.
These areas are particularly important for decision-making, as they represent stronger market reactions.
Key Features
Customizable Lookback Periods: Adjust the lookback periods for each dynamic level to suit your trading style.
Touch Count Labels: Quickly identify the strength of each level based on the number of price touches.
Adaptive Levels: The indicator dynamically updates levels based on recent price action.
Clean Visualization: Levels are automatically merged to avoid clutter and provide a clear view of the market structure.
Usage Tips
Trend Identification: Combine the indicator with trend-following tools (e.g., moving averages, trendlines) to confirm the overall market direction.
Risk Management: Use the identified levels to set stop-loss orders or take-profit targets.
Timeframe Flexibility: The indicator works on all timeframes, but it is particularly effective on higher timeframes (e.g., 1H, 4H, Daily) for more reliable levels.
Example Scenarios
Bounce Trade:
If the price approaches a strong support level (high touch count) and shows signs of rejection (e.g., bullish candlestick patterns), consider a long position with a stop-loss below the support level.
Breakout Trade:
If the price breaks above a strong resistance level with high volume, consider a long position with a target at the next resistance level.
Range-Bound Market:
In a sideways market, use the support and resistance levels to identify range boundaries and trade bounces between them.
Disclaimer
Dynamic S/R Levels: Edge Finder is a technical analysis tool designed to identify dynamic support and resistance levels based on historical price action. It is intended for informational and educational purposes only. This indicator does not provide financial, investment, or trading advice. Users are solely responsible for their trading decisions and should conduct their own research and analysis before making any trades. The developer of this tool is not liable for any financial losses or damages resulting from the use of this indicator. Trading in financial markets involves risk, and you should only trade with capital you can afford to lose.
Engulfing Candle by SmanovThis custom Pine Script indicator highlights bullish and bearish engulfing candles while ensuring the previous candle is not an inside bar (relative to the candle before it). Engulfing candles are often seen as potential reversal signals. By including an extra filter that excludes so-called “inside bars,” the indicator aims to provide stronger and more reliable signals.
How It Works
Bullish Engulfing Condition
The current candle is bullish (close > open).
The current candle’s low is lower than the previous candle’s low, and the current candle’s high is higher than the previous candle’s high (true “engulfing” from top to bottom).
The current candle closes above the previous candle’s high (confirms a breakout above the previous high).
Bearish Engulfing Condition
The current candle is bearish (close < open).
The current candle’s high is higher than the previous candle’s high, and the current candle’s low is lower than the previous candle’s low.
The current candle closes below the previous candle’s low (confirms a breakdown below the previous low).
Non-Inside-Previous-Bar Filter
The indicator checks the previous candle to ensure it is not an inside bar (where the entire high-low range of the previous candle sits inside the range of the candle before it).
By doing so, the indicator ignores signals where the previous candle is potentially indecisive or “inside.”
When these conditions are met, the indicator plots a triangle above (for bearish) or below (for bullish) the candle. You can also enable alerts to receive notifications each time a valid engulfing candle forms.
Features
Clear Markers on the Chart: Triangles appear near the bars that fulfill the engulfing criteria, simplifying quick identification of potential reversal points.
Non-Inside Bar Filtering: Reduces false signals by ensuring the previous candle range is not contained within the range of the candle before it.
Alert Conditions: Create TradingView alerts to be notified via push messages, email, or pop-ups whenever a bullish or bearish engulfing setup occurs.
Easy Customization: You can tweak the logic for stricter or looser engulfing definitions or add your own additional filters (volume, RSI, etc.) if needed.
How to Trade with It
Reversal Opportunities
Bullish Engulfing: Signals a potential bullish reversal. Traders might look to go long if other supporting factors (support level, bullish divergence, etc.) confirm the trend change.
Bearish Engulfing: Signals a potential bearish reversal. Traders might go short if there is additional confluence (resistance level, overbought conditions, etc.).
Combine with Other Indicators
While an engulfing candle by itself can be meaningful, adding a momentum oscillator (e.g., RSI, MACD) or volume analysis often strengthens confirmation.
Look for bullish engulfing signals near known support levels, or bearish engulfing signals near known resistance levels.
Risk Management
Place stop-loss orders below (for bullish entries) or above (for bearish entries) the engulfing candle to reduce risk.
Use your usual position sizing and money management rules.
Avoid Choppy Markets
Because this indicator focuses on engulfing patterns that break the previous candle’s high or low, it can reduce whipsaws in sideways markets. Still, confirm that the market isn’t in an extended range before acting.
Disclaimer:
This indicator is a technical tool designed to assist traders in identifying potential reversal points. It is not a standalone trading system. Always practice proper risk management, and confirm signals with additional analysis before entering any trade.
[volfgang] Pivot Levels (Open, Close, High, Low)This script provides a clear and consistent way to track key price levels from Weekly and Daily bars, directly on your current chart interval.
The default colours are;
Today & This Week Open = White
Yesterday & Previous Week Open = Cream
Yesterday's High = Red
Yesterday's Low = Green
Weekly Pivots are 2px, and Daily Pivots are 1px.
Instead of requiring manual referencing of daily or weekly charts, these significant levels are automatically drawn and updated in real time, extending to the right as new bars form.
It adds value by helping traders quickly identify potential support/resistance zones and compare intraday price action with higher-timeframe pivots. This approach can aid in scalping, day trading, or swing trading strategies that rely on past price levels for trade entries, exits, or stop loss placement.
Daily Pivots Displayed Intraday
The script imports the previous day’s High, Low, Open, and Close and draws lines on the current chart, so you can see exactly where those levels lie on any intraday timeframe. You can easily change the colour of these lines in the menu.
Instead of switching between multiple charts for daily references, you can keep an intraday chart open and still watch how price behaves around these important daily pivots.
Weekly Pivots for Broader Context
In addition to daily levels, it also shows the previous week’s Open and Close. This feature helps traders who want to maintain a broader perspective and gauge the market’s weekly trend or bias while remaining on lower timeframes.
Automatic Line & Label Management
Each new trading day triggers a “session change” in the code, prompting the script to delete old lines and labels for daily levels. This keeps your chart from getting cluttered with outdated lines.
Weekly lines and labels follow the same approach, ensuring only the most recent weekly levels are highlighted.
Real-Time Extension
Lines are continuously extended to the right as new bars print, ensuring that you always have an updated view of your key price levels without any manual adjustments.
On the last bar, the script shifts to a time-based coordinate system for seamless visual extension.
Minimal Recalculation
This script uses security() calls in a carefully optimized way to reduce unnecessary recalculations and avoid repaint issues. By referencing open , close , etc., the lines remain fixed once the daily (or weekly) candle is confirmed.
Flexible Usage
You can apply this script to any symbol on TradingView. It’s especially beneficial for Forex pairs, indices, futures, or cryptocurrencies where you want to track significant past levels.
If you’re a scalper looking for areas of likely reaction, or a swing trader watching weekly opens for trend confirmation, these levels can be integral to your technical approach.
How to Use
Add to Chart: Click the “Add to Favorite Indicators” or “Apply to Chart” button once published.
Enable or Disable Previous Day Bars: Use the script’s input to toggle the display of previous day’s High, Low, Open, and Close lines if you only want weekly lines (or vice versa).
Customize Visuals: You can change line colors, width, and label text in the “Style” or “Inputs” tab. Adjust them to fit your preferred color scheme.
Interpretation:
Daily levels typically carry relevance for the next trading session. They can be used for intraday support/resistance, breakout checks, or gap fills.
Weekly levels help identify more prominent zones for bigger moves or for understanding overall sentiment from the prior week.
Conceptual Underpinnings
Support/Resistance: Past opens/closes often act as support or resistance because they represent important points of reference (where trading started or ended during a prior session).
Market Psychology: Many traders watch daily or weekly closes to gauge momentum and bias, which can become self-fulfilling as more participants join around those levels.
Improved Situational Awareness: By having these levels automatically drawn and updated, traders avoid missing critical areas where price may pivot.
This script is intentionally open-source to help traders study and personalize it.
By merging daily and weekly pivot concepts in a single script, it provides a convenient and efficient tool—rather than a simple mashup, it unifies two timeframes that are crucial in short-term and medium-term trading decisions.
Remember that these levels alone do not constitute a complete trading system; they are best used as part of a broader strategy involving risk management, additional technical signals, and market context.
PRECIOS INSTITUCIONALESEste indicador nos muestra las zonas donde el precio puede reacciona, se divide en dos niveles, los precios de nivel 1 son los mas fuertes.
ICT Dealing RangeICT Dealing Range
This indicator identifies and plots ICT (Inner Circle Trader) Dealing Ranges - key institutional areas where smart money accumulates or distributes positions before significant moves.
What is a Dealing Range?
A Dealing Range is a significant price area where institutional traders accumulate or distribute their positions. These ranges form through a specific sequence of price movements that indicate institutional order flow:
Bullish Dealing Range Sequence:
1. Initial High (H)
2. Initial Low (L)
3. Higher High (HH)
4. Lower Low (LL)
5. Break above HH (confirmation)
Bearish Dealing Range Sequence:
1. Initial Low (L)
2. Initial High (H)
3. Lower Low (LL)
4. Higher High (HH)
5. Break below LL (confirmation)
My Trading Strategy
Entry Methods:
1. Range Extreme Retests:
- After range formation, wait for price to return to either extreme
- Long entries at range bottom with stops below
- Short entries at range top with stops above
2. Mid-Line Strategy:
- Use the mid-line as a pivot point for reversals
- Long entries on mid-line bounce with stops below
- Short entries on mid-line rejection with stops above
Stop Loss Placement:
- When entering at extremes: Place stops beyond the mid
- When entering at mid-line: Place stops beyond the opposing extreme
- Always respect the structure's boundaries
Take Profit Targets:
- Minimum 2:1 Risk-Reward ratio
- For extreme entries: Target the opposite extreme
- For mid-line entries: Target the nearest extreme
Risk Management
- Never enter without a clear invalidation point
- Maintain minimum 2:1 RR ratio
- Consider market structure and higher timeframe context
Indicator Features
- Auto-detection of dealing range patterns
- Color-coded boxes (green for bullish, red for bearish)
- Optional mid-line display
- Customizable colors and styles
- Adjustable pivot lookback periods
Notes
This tool is based on ICT concepts but should be used in conjunction with other forms of analysis. The dealing range provides a framework for understanding institutional order flow, but proper risk management and market context are essential for successful trading.
Remember: The best trades often come from clean retests of these ranges after their initial formation. Patience in waiting for proper setups is key to successful implementation.
Support Resistance & Bollinger & EMA21The strategy combines multiple technical tools to identify support and resistance zones, as well as buy and sell signals. It includes indicators such as Bollinger Bands, EMA21, and dynamically calculated support/resistance levels. It also allows for generating alerts when key levels are breached.
Fractal Lows Connector for AZALKAThe indicator "Fractal Lows Connector" identifies fractal lows on the chart and connects them with lines. A fractal low is defined as a point where the low of the current bar is lower than the lows of the two preceding and two succeeding bars. The indicator uses arrays to store the values and bar indices of these fractal lows. When a new fractal low is detected, it is added to the arrays, and lines are drawn between consecutive fractal lows using line.new. The lines are dynamically updated as new fractal lows are identified. The use of xloc.bar_index ensures that the lines scale properly with the chart when zooming in or out.
Индикатор фрактальные минимумы просто соединяет минимумы фракталов.
Soportes y Resistencias con Volumen EXTERMINIUN 2025 Explicación:
Parámetros: Puedes ajustar el período (length) para calcular soportes y resistencias, y el volMultiplier para el volumen.
Soportes y Resistencias: Se calculan usando las funciones ta.highest y ta.lowest sobre un número de barras definidas por length.
Volumen: La condición de volumen compara el volumen actual con un promedio móvil de volumen multiplicado por volMultiplier.
Señales de Compra/Venta: Se generan cuando el precio cruza por encima de la resistencia o por debajo del soporte, y se confirma con un volumen superior al promedio ajustado.
KJS-- Gost Pivot MAKJS Ghost Pivot Moving Average
This indicator calculates a "Ghost Pivot" by estimating where the monthly pivot level would be if the current candle's close represented the end of the month. The calculation uses:
• The current month's high and low from regular trading hours (RTH).
• The current candle's close, which includes both premarket and after-hours data.
It also smooths the ghost pivot using a customizable simple moving average (SMA).
Features:
• Plots the current month's high (blue) and low (yellow) based on RTH data.
• Calculates and plots a dynamic pivot (purple line) as the average of the monthly high, low, and current close (HLC3).
• Includes a customizable SMA length for smoother pivot tracking (default: 3).
This indicator helps traders anticipate potential monthly pivot levels in real-time while visualizing key support and resistance areas.
Pivot and Golden Crossover Swing Strategy### Strategy Description:
This **Pivot and Golden Crossover Swing Strategy** combines moving averages and pivot points to identify potential swing trade opportunities. It is designed for traders who want to leverage momentum and key price levels in their decisions.
#### Key Features:
1. **Golden Crossover**:
- A long position is triggered when the short moving average (50-period by default) crosses above the long moving average (200-period by default).
- A short position is triggered when the short moving average crosses below the long moving average.
2. **Pivot Points**:
- Identifies recent high and low pivot levels based on a user-defined lookback period (default is 5 candles).
- Pivot points are used to determine entry levels and calculate stop-loss and take-profit targets.
3. **Risk Management**:
- Stop-loss levels are set relative to pivot points with a user-defined multiplier (default: 1.5x).
- Take-profit targets are based on the distance between moving averages, adjusted by a multiplier (default: 2.0x).
4. **Visual Indicators**:
- Moving averages are plotted on the chart for trend visualization.
- Pivot points are marked with triangle shapes for easy identification.
#### Use Case:
This strategy works well in trending markets where golden crossovers indicate momentum shifts. The pivot points ensure precise trade management, making it suitable for swing traders aiming to capture medium-term price movements.
Let me know if you'd like any further details or adjustments!
AMG Supply and Demand ZonesAMG Supply and Demand Zones Indicator
This indicator identifies and visualizes supply and demand zones on the chart to help traders spot key areas of potential price reversals or continuations. The indicator uses historical price data to calculate zones based on high/low ranges and a customizable ATR-based fuzz factor.
Key Features:
Back Limit: Configurable look-back period to identify zones.
Zone Types: Options to display weak, untested, and turncoat zones.
Customizable Parameters: Adjust fuzz factor and visualization settings.
Usage:
Use this indicator to enhance your trading strategy by identifying key supply and demand areas where price is likely to react.
You can customize this further based on how you envision users benefiting from your indicator. Let me know if you'd like to add or adjust anything!
MEMEQUANTMEMEQUANT
This script is a comprehensive and specialized tool designed for tracking trends and money flow within meme coins and DEX tokens. By combining various features such as trend lines, Fibonacci levels, and category-based indices, it helps traders make informed decisions in highly volatile markets.
Key Features:
1. Category-Based Indices:
• Tracks the performance of token categories like:
• AI Agent Tokens
• AI Tokens
• Animal Tokens
• Murad Picks
• Each category consists of leader tokens, which are selected based on their higher market cap and trading volume. These tokens act as benchmarks for their respective categories.
• Visualizes category indices in a line chart to identify trends and compare money flow between categories.
2. Fibonacci Correction Zones:
• Highlights key retracement levels (e.g., 60%, 70%, 80%).
• These levels are crucial for identifying potential reversal zones, commonly observed in meme coin trading patterns.
• Fully customizable to match individual trading strategies.
3. Trend Lines:
• Automatically detects major support and resistance levels.
• Separates long-term and short-term trend lines, allowing traders to focus on significant price movements.
4. Enhanced Info Table:
• Provides real-time insights, including:
• % Distance from All-Time High (ATH)
• Current Trading Volume
• 50-bar Average Volume
• Volume Change Percentage
• Displays information in an easy-to-read table on the chart.
5. Customizable Settings:
• Users can adjust transparency, colors, and ranges for Fibonacci zones, trend lines, and the table.
• Enables or disables individual features (e.g., Fibonacci, trend lines, table) based on preferences.
How It Works:
1. Tracking Money Flow Across Categories:
• The script calculates the market cap to volume ratio for each category of tokens to help identify the dominant trend.
• A higher ratio indicates greater liquidity and stability, while a lower ratio suggests higher volatility or price manipulation.
2. Identifying Retracement Patterns:
• Leverages common retracement behaviors (e.g., 70% correction levels) observed in meme coins to detect potential reversal zones.
• Combines this with trend line analysis for additional confirmation.
3. Leader Tokens as Indicators:
• Each category is represented by its leader tokens, which have historically higher liquidity and market cap. This allows the script to accurately reflect the overall trend in each category.
When to Use:
• Trend Analysis: To identify which category (e.g., AI Tokens or Animal Tokens) is leading the market.
• Reversal Zones: To spot potential support or resistance levels using Fibonacci zones.
• Money Flow: To understand how capital is moving across different token categories in real time.
Who Is This For?
This script is tailored for:
• Traders specializing in meme coins and DEX tokens.
• Those looking for an edge in trend-based trading by analyzing market cap, volume, and retracement levels.
• Anyone aiming to track money flow dynamics between different token categories.
Future Updates:
This is the initial version of the script. Future updates may include:
• Support for additional token categories and DEX data.
• More advanced pattern recognition and alerts for volume and price anomalies.
• Enhanced visualization for historical data trends.
With this tool, traders can combine money flow analysis with the 60-70% retracement strategy, turning it into a powerful assistant for navigating the fast-paced world of meme coins and DEX tokens.
This script is designed to provide meaningful insights and practical utility for traders, adhering to TradingView’s standards for originality, clarity, and user value.
RSI / STOCH DIRECTION BUYMomentum indicator using rsi and stochastic.
When rsi is above the rsi moving average and the stochastic K is above D.
BUY signal occurs when these conditions are met.
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.
Enhanced Divergence Indicator / Strategy (many oscillators)Hi, Guys!
So, I am publishing a divergence script, with the ability to choose from many indicators, which is equipped to serve either as a strategy or an indicator (or both).
In my opinion, trading with indicators is not something that can consistently bring you profit. But one of the most effective ways to use an indicator is precisely divergence, since it also contains information about imbalance in the price action. This is still one of the main tasks of technical analysis of price movements.
That is why I decided to make a script public, which I myself use with some additional functions, and here I am publishing the main ones. Most of its elements can be found in other community scripts, but not quite collected in one, and not all. The main difference is that here I provide an opportunity to refine the divergences, by using a filter for the minimum price difference in the two extremes, the minimum difference in the extremes of the indicator and something else that you will not find anywhere in free code. As far as I can, I have also made a filter for the minimum reverse movement of the indicator between its two extremes, which make up the divergence. In the settings, I have called it "Minimum Oscillator Pullback".
I'm not a programmer, so my script is crude and inelegant, but overall it does the job.
I added the ability to use a few more widespread filters, but with some small additional options. For example, you can display a fast and slow moving average, but the good thing is that among them there is also T3 - one of the best MAs for showing a trend. You should keep in mind, however, that this way of using a trend is not very good when using divergences.
I also added an underestimated indicator as a filter, which could be quite effective here. It is the Stochastic Momentum Index. I have given the option to use a different timeframe for it. Usually, in oscillators, overbought and oversold zones are searched for, but here its more effective use is rather the opposite. It actually shows the strength of the trend. That's why I made an option for its reversed use, and in addition, its limit levels are also variable.
There is also a filter for eliminating trading days and/or trading hours.
To make the code more informative, I have provided an opportunity to test the strategy with leverage.
There is an option to use TP and SL.
Regarding closing a position, there are also several options. I have not seen anyone else use it, but with a lot of testing, I have found that the SMI mentioned and used as a filter is a very good indicator for exiting a position. This is one thing. But something even better that I have found and put in the code is the use of standard deviation. Most algo-traders use Average True Range for exit. Well, I have personally found with a lot of historical data that Standard Deviation is actually much more effective for this.
For variety, and also because such trading systems exist, I have added the option to close after a certain number of candles. Here I have also added an additional functionality - closing on a candle in the opposite direction of the open position, after the specified number of candles have passed.
Apart from this, there is also an option to use VWAP for exit.
You will see that there are more than a dozen indicators to choose from for divergence. I have tested dozens, maybe hundreds of others, which at first glance seem very suitable for this. But in practice I have found that they do not really add anything.
Keep in mind that in different timeframes, in different market conditions, and different assets behave differently. For some, some indicators are better, but in another timeframe they are weak.
In addition, the filters for improving divergence sometimes behave strangely (for example, for an oscillator it may be good to accept a negative and very large value for the minimum movement between its extremes). This is because they are not standardized and have different scales. But if you play around with the options enough, you will understand what works for you.
Now I can't think of anything more to say, inside the options things should be relatively clear. If there are adequate questions that I am able to answer (I remind you that I am an amateur), I will write in the comments. I am sure that this code will be useful for many, but do not rely too much on it and do not take risks without testing - both with historical data and paper trading. As you know, in any case, nothing is guaranteed in the future.
I think I missed something important.
When you use the script as an indicator, a line will always appear when there is a divergence. It may seem strange to you on the price movement, but keep in mind that it shows exactly where the extremes of the oscillator, which is not visible on the chart, are. A sign will appear on this line when the divergence meets your other conditions - the filters and enhancements included.
In addition, there are options to limit the divergence indication to a number of candles. In practice, this is necessary and improves the results. It is very important to understand that in order for the script to indicate the last extreme, which we will use to open a position, it must first have determined that we have already gone in the opposite direction. Therefore, the options specify candles to the left, but also candles to the right after the peak, to verify that this is really a peak (or bottom). Many believe that this makes divergences bad for trading, since the signal is actually received later. Well, this is not entirely true and you can check it yourself. You can safely set the right candles to 0 and you will see that there are many false signals. Usually it is best to use 2 candles on the right for a signal and if the divergence is good, they still give a good entry. In certain conditions it is good with just one candle.
JJ Psychological Levels (125 Increments)Psychological Levels Indicator
Description:
The Psychological Levels Indicator is a versatile tool designed for traders to identify key price levels that often act as support or resistance zones in the market. These levels are plotted at regular intervals, customizable by the user, starting from a base price level. This is particularly useful for spotting psychological price points that traders and investors frequently monitor.
Key Features:
1.Dynamic Psychological Levels:
- The script calculates and displays horizontal lines at price levels separated by customizable increments (default: 125 points).
- These levels are dynamically adjusted to the visible range of the chart.
2. Customizable Inputs:
- Starting Level: Set the base level from which increments are calculated (e.g., 0 or 1000).
- Step Size: Define the interval between levels (e.g., 125 for indices like Bank NIFTY).
3. Visual Representation:
- Horizontal lines are drawn at each psychological level, helping traders quickly identify key zones.
- Labels are placed next to each level, displaying the corresponding price for easy reference.
4. Application Across Instruments:
- This indicator works seamlessly with various asset classes, including stocks, indices, forex, and cryptocurrencies.
How to Use:
1.Identify Key Price Zones:
- Use the plotted psychological levels to spot areas where price action is likely to react.
- Levels such as 1125, 1250, and 1375 (for a step size of 125) are visually highlighted.
2. Plan Trades Around Key Levels:
- These levels can act as support/resistance or breakout points, providing opportunities for entry, exit, and stop-loss placement.
3. Customizable Settings:
- Adjust the starting level and step size to tailor the indicator to your trading instrument or strategy.
Why Psychological Levels Matter:
Psychological levels are widely followed by traders and often coincide with key market turning points due to their significance in human behavior and market psychology. They are frequently used by institutional traders, making them valuable reference points for intraday and swing trading.
Custom Settings:
- **Starting Level:** Default: `0`
- **Step Size:** Default: `125`
Disclaimer:
This indicator is a technical analysis tool and is not intended to provide financial advice. Always combine it with other indicators and perform your due diligence before making trading decisions.
The Curved Market Structure [BigBeluga]Curved Market Structure
The Curved Market Structure indicator offers an innovative twist on traditional market structure tools by using curved lines instead of horizontal ones, enabling faster breakout detection for traders.
🔵Key Features:
Curved Market Structure Levels: The indicator identifies high and low pivots and plots curved lines connecting these points, adapting to market dynamics and providing a more intuitive view of potential breakout zones.
Breakout Detection: Breakouts above or below the curved levels are marked with triangle symbols (▲ or ▼), making it easy to spot critical price movements.
Dynamic Target Levels: After a breakout, the indicator plots three target levels, which serve as potential price objectives. Each target is marked with a number and a star (e.g., 1★) upon being reached.
Customizable Line Length and Angle: Users can adjust the length and angle of the curved lines to fit their trading style and timeframe, making the tool versatile and adaptable.
Market Structure Trend Filtering: To maintain a clean chart, the indicator plots curved levels only from high pivots during uptrends and low pivots during downtrends.
🔵How It Works:
The indicator identifies high and low pivots using user-defined parameters (left and right bars).
Curved lines are drawn from these pivot points, showing the structure of the market and potential breakout zones.
When a breakout occurs, the indicator highlights the direction with triangle symbols and dynamically plots three price targets.
Upon reaching these targets, the level is marked with its respective number and a star, helping traders track price progression effectively.
The lines and targets are adjusted based on market conditions, ensuring real-time relevance and accuracy.
🔵Use Cases:
Spotting key breakout zones to identify entry and exit points more effectively.
Setting dynamic target levels for take-profit or stop-loss planning.
Filtering market noise and maintaining a cleaner chart while analyzing trends.
Enhancing traditional market structure analysis with an intuitive curved visualization.
This indicator is ideal for traders who want a modern, dynamic, and visually appealing way to track market structure and breakouts while maintaining chart clarity.
Pivot Bsquad (Traditional and Fibonacci)Pivot Bsquad (Traditional & Fibonacci) - XAUUSD Scalping Indicator
The Pivot Bsquad Indicator is designed to provide high-precision support and resistance levels for scalping on XAUUSD (Gold). This tool combines Traditional Pivot Points and Fibonacci-based Pivot Points to help traders identify key price levels where reversals or breakouts are likely to occur.
Key Features:
1. Dual Pivot Calculation Modes:
Traditional Pivots: Calculated using classic formulas based on high, low, and close values, ideal for broader support and resistance zones.
Fibonacci Pivots: Incorporates Fibonacci ratios for more dynamic and nuanced levels, perfect for intraday scalping.
2. Color-Coded Zones:
Clear visual representation of support (S1, S2, S3) and resistance (R1, R2, R3) levels.
Enhanced with key pivot lines for quick decision-making.
3. Scalping-Friendly Design:
Optimized for short timeframes (e.g., 1-minute to 15-minute charts).
Highlights high-probability zones for reversals or continuation patterns.
4. Customizable Settings:
Toggle between Traditional and Fibonacci pivots to suit your trading style.
Adjustable timeframes for pivot calculation (Daily, Weekly, Monthly).
Ideal For
Scalpers looking to capitalize on XAUUSD's volatility.
Intraday traders who rely on precise support and resistance levels.
Technical traders seeking a reliable confluence of pivot strategies.
How to Use:
Select your preferred pivot mode (Traditional or Fibonacci) in the settings.
Observe price action around pivot levels for potential entry and exit points.
Use in conjunction with momentum oscillators or candlestick patterns for confirmation.
Note: While this indicator provides a solid framework for scalping, always consider risk management practices and market conditions.
Episodic Pivots DetectorAnyone interested in studying Episodic Pivots can add this detector to any chart to see when that specific underlying instrument encountered an Episodic Pivot event. If you need an example, pull up the chart for NASDAQ:SOUN and you will see multiple episodic pivot events dating back to January 2024 to January 13, 2025 (at the time of publishing this detector). Next you will need to study those events to ascertain why they stock moved in the direction it did. Happy trading.
SPXL strategy based on HighYield Spread (TearRepresentative56)This strategy is focused on leveraged funds (SPXL as basis that stands for 3x S&P500) and aims at maximising profit while keeping potential drawdowns at measurable level
Originally created by TearRepresentative56, I`m not the author of the concept, just backtesting it and sharing with the community
Key idea : Buy or Sell AMEX:SPXL SPXL if triggered
Trigger: HighYield Spread Change ( FRED:BAMLH0A0HYM2 BAMLH0A0HYM2). BAMLH0A0HYM2 can be used as indicator of chop/decline market (if spread rises significantly)
How it works :
1. Track BAMLH0A0HYM2 for 30% decline from local high marks the 'buy' trigger for SPXL (with all available funds)
2. When BAMLH0A0HYM2 increases 30% from local low (AND is higher then 330d EMA) strategy will signal with 'sell' trigger (sell all available contracts)
3. When in position strategy shows signal to DCA each month (adding contracts to position)
Current version update :
Added DCA function
User can provide desired amount of funds added into SPXL each month.
Funds will be added ONLY when user holds position already and avoids DCAing while out of the market (while BAML is still high)
Backtesting results :
11295% for SPXL (since inception in 2009) with DCAing of 500USD monthly
4547% for SPXL (since inception in 2009) without DCA (only 10 000USD invested initially)
For longer period: even with SP500 (no leverage) the strategy provides better results than Buy&Hold (420% vs 337% respectively since 1999)
Default values (can be changed by user):
Start investing amount = 10 000 USD
Decline % (Entry trigger) = 30%
Rise % (Exit trigger) = 30%
Timeframe to look for local high/low = 180 days
DCA amount = 500 USD
Inflation yearly rate for DCA amount = 2%
EMA to track = 330d
Important notes :
1. BAMLH0A0HYM2 is 1 day delayed (that provides certain lag)
2. Highly recommended to select 'on bar close' option in properties of the strategy
3. Please use DAILY SPXL chart.
4. Strategy can be used with any other ticker - SPX, QQQ or leveraged analogues (while basic scenario is still in SPXL)