Multi-Symbol Scanner: Advanced EMA-RSI-Volume Strategy# Multi-Symbol Tech Stock Scanner: Advanced EMA-RSI-Volume Strategy
## Technical Analysis Methodology
This scanner implements a sophisticated multi-timeframe analysis approach combining three key technical elements:
### 1. Dual EMA System (Primary Trend Detection)
- **Long-term EMA (820 periods)**: Acts as the primary trend identifier
- Chosen specifically for tech stocks' longer-term price waves
- Helps filter out minor market noise while capturing major trend changes
- 820 periods approximately represents 3.2 years of trading days
- **Medium-term EMA (320 periods)**: Serves as trend confirmation
- Approximately 1.25 years of trading data
- Provides earlier entry signals while maintaining trend reliability
- Helps identify potential trend reversals before the major trend shift
### 2. Volume Analysis Component
The script employs a dynamic volume analysis system:
- Calculates 20-period moving average of volume as baseline
- Requires 1.5x surge above baseline for signal confirmation
- Volume surge requirement helps filter out weak moves and potential false breakouts
- Different from standard volume indicators as it uses adaptive thresholds
### 3. RSI Momentum Filter
Implements a specialized RSI configuration:
- 14-period RSI with dynamic overbought/oversold levels
- Oversold threshold: 30 (customizable)
- Overbought threshold: 70 (customizable)
- Used as a confirmation tool rather than primary signal generator
## Signal Generation Logic
### Buy Signal Requirements
1. Price must cross above 820 EMA (PRIMARY CONDITION)
2. Current price must be above 320 EMA (CONFIRMATION)
3. RSI must be above 30 but below 70 (MOMENTUM CHECK)
4. Volume must be 1.5x above 20-period average (STRENGTH VALIDATION)
### Sell Signal Requirements
1. Price must cross below 820 EMA (PRIMARY CONDITION)
2. Current price must be below 320 EMA (CONFIRMATION)
3. RSI must be above 30 but below 70 (MOMENTUM CHECK)
4. Volume must be 1.5x above 20-period average (STRENGTH VALIDATION)
## Risk Management Integration
The script automatically calculates key risk levels based on volatility:
1. **Stop Loss Calculation**:
- Default: 2% below entry for buys
- Dynamically adjusted based on price point
- Can be modified through input parameters
2. **Take Profit Targets**:
- Primary target: 6% above entry (3:1 reward-risk ratio)
- Based on historical tech stock movement patterns
- Adjustable through input parameters
## Multi-Symbol Implementation
The scanner monitors 6 symbols simultaneously using:
- Separate security calls for each data point
- Optimized data requests to prevent overload
- Individual signal processing for each symbol
- Synchronized alert generation system
## Technical Implementation Details
1. **Data Processing**:
```
- Security data requests on 10-minute timeframe
- Individual EMA calculations per symbol
- Separate volume analysis threads
- RSI calculations with standard deviation normalization
```
2. **Signal Processing**:
```
- Cross-verification of all conditions
- Time-based signal validation
- Volume surge confirmation
- Trend alignment check
```
3. **Alert System**:
```
- Bar-close confirmation required
- Multi-condition validation
- Detailed price level inclusion
- Risk parameter integration
```
## Optimization Features
1. **Memory Usage**:
- Optimized security calls
- Efficient data structure
- Reduced redundant calculations
2. **Processing Efficiency**:
- Single-pass data analysis
- Combined indicator calculations
- Streamlined alert generation
## Practical Application
The system is designed for:
1. Swing Trading (primary use)
2. Position Trading (secondary use)
3. Technical Breakout Trading
Optimal timeframes:
- Primary: 4H charts
- Secondary: Daily charts
- Verification: 1H charts
## Default Configuration
The scanner is preset to monitor key tech stocks:
- TSLA: High-volatility tech leader
- NVDA: Semiconductor sector benchmark
- AVGO: Stable tech infrastructure
- TSM: Global chip manufacturer
- META: Social media sector leader
- AMZN: E-commerce/Cloud computing leader
Each symbol can be modified through input parameters.
## Version Information
- Current Version: 1.3
- Last Updated: November 2024
- Compatibility: TradingView Pro/Pro+/Premium
## Limitations & Considerations
- Limited to 6 symbols due to TradingView security request limits
- Requires consistent market volume for optimal performance
- Best suited for liquid stocks with significant daily volume
- May need parameter adjustments during extreme market conditions
Графические паттерны
Support, Resistance & OHLCUPDATE:
This Pine Script code is an indicator for TradingView that displays support, resistance, and OHLC (Open, High, Low, Close) data across various timeframes. The code is divided into two main sections: Support/Resistance and OHLC Data.
Support and Resistance:
Logic for Support and Resistance: The indicator draws support and resistance lines after 4 consecutive candles without forming new lows (for support) or new highs (for resistance). This means that a support or resistance level is created after 4 candles that don't set new extremes.
Support: When the last 3 candles have lower lows, and the current candle forms a higher low, the support level is set.
Resistance: When the last 3 candles have higher highs, and the current candle forms a lower high, the resistance level is set.
Drawing the Lines and Labels:
Once the support or resistance level is determined, a horizontal line is drawn that extends left and right from the candle.
Additionally, labels for support and resistance are shown if the corresponding settings are enabled. These labels appear at a distance from the line and display the current support or resistance value.
Deleting the Lines:
If the price falls below the support level or rises above the resistance level, the respective line is deleted. This means that the market has breached the support or resistance level, making the line invalid.
When the support or resistance line is breached, alerts can be triggered to notify the trader.
Alerts:
The script provides options to set alerts when a support or resistance line is created or broken. These alerts notify the trader when the price reaches an important level.
OHLC Data:
The code allows the display of the high, low, close, and open values of the last candles across different timeframes (hourly, daily, weekly, monthly).
Settings:
Options are available to show these values for the respective timeframes.
The user can also adjust the size of the labels.
Visualization: The indicator plots lines for the high, low, and close values for each timeframe and places labels showing the respective values.
In summary, the indicator provides a detailed view of support and resistance levels, which are based on a 4-candle logic, and displays important OHLC values across different timeframes. The indicator also allows setting alerts for specific price levels, so traders can quickly react to market movements.
Custom Zig Zag with Absolute Price DifferenceThis Zig-Zag indicator visualizes the price movements of a financial instrument and highlights the relevant turning points (pivots) where the price has undergone a significant change. It uses a deviation threshold to mark only substantial movements and ignore minor fluctuations.
The input parameters allow the user to customize the indicator:
Deviation (%): Defines the minimum percentage deviation required to mark a turning point.
Depth: Specifies how many periods before and after a pivot are considered to determine whether it is a real high or low.
Line Color: Allows the user to change the color of the lines that connect the pivots.
Extend to Last Bar: If enabled, extends the last lines to the current bar.
Display Absolute Price Difference: If enabled, the indicator shows the absolute price difference between the current pivot and the previous one.
Label Size: Allows adjusting the font size of the displayed labels.
The logic of the indicator is based on calculating pivots (highs and lows) using price movements. The indicator then tracks the changes between successive pivots and represents them as lines. When the price shows a significant difference from the last pivot (measured in percentage), a line is drawn, and a label displaying the price difference is shown.
Additionally, the indicator uses the calc_dev function to compute the price deviation between the last pivot and the current price. This provides users with a clear visualization of price changes, helping to identify larger price movements.
Bearish BreakerDescription:
The Bearish Breaker is designed to detect significant bearish candles that meet specific customizable conditions, allowing traders to easily identify potential sell signals or strong downtrends. This indicator highlights bearish candles based on size, close position within the candle's range, and other specific criteria, with options to plot Fibonacci levels, a stop loss line, and dollar loss estimation.
Key Features:
1. Customizable Candle Highlighting Conditions:
Highlights candles that are bearish and whose body is greater than a user-defined multiple of the average candle body size over a specified period.
2.Checks if the candle’s close is within a customizable percentage from the bottom of the candle’s range (default is 35%).
3. Ensures the close is lower than the lows of the previous two candles.
Visual Markings:
1. A plus sign appears below large bearish candles that meet the highlighting criteria.
2. Optionally plots a line at the low of the previous candle, labeled as "FVG" (Fair Value Gap).
3. Fibonacci Levels:
Plots 61.8% and 50% Fibonacci levels from the low to high of the highlighted candle.
4. Provides options to show/hide labels and adjust line colors.
5. Shaded Area:
Fills the area between the 50% and 61.8% levels with customizable color and transparency.
Stop Loss and Dollar Calculation:
1. Calculates a stop loss level, set a user-defined number of ticks above the high of the highlighted candle.
2. Displays a label with the potential dollar loss from the "FVG" to the stop loss line, using a specified dollar value per tick.
How To Use
1. Highlight Conditions: Adjust parameters like the average body length, threshold multiplier, and close percentage to fine-tune the bearish candle detection. typically I like to use the 4-6 body length with a 1.5 multiplier
2. Visual Elements: Toggle labels, colors, and transparency of Fibonacci and FVG lines, allowing you to customize the display for clarity.
3. Risk Management: Set the dollar value per tick and stop loss distance (in ticks) to display potential risk for your specific instrument , for example dollar per tick on NQ is $5 , ES is $12.50, CL is $10
4. Alerts:
An alert can be set to trigger each time a large bearish candle forms and meets all conditions, helping you stay notified of potential bearish momentum shifts.
5. Parameters:
Threshold Multiplier: Adjusts the size threshold for highlighting a bearish candle.
Close Percent in Range: Sets how close to the bottom of the candle’s range the close must be (0-100%). I like the candle to close in the lower 75 percent of the candle.
6. Stop Loss Ticks Above High: Controls how far above the high of the highlighted candle to place the stop loss.
7. Dollar Value per Tick: Calculates potential dollar loss between the FVG level and stop loss based on the asset’s tick value.
8. To trade this setup I like to wait for the first 1-2 candles after the highlighted breaker candle to pull back into the shaded area for a short position and target the low of the breaker candle or a 2-1 risk to reward.
Ideal For:
This indicator is ideal for traders looking to identify strong bearish momentum, manage risk visually, and use Fibonacci and fair value gaps on large bearish candles as potential areas for short entries with suggested stop loss areas and target profits.
Disclaimer: This indicator is for educational and informational purposes only and should not be used as a sole trading strategy. Always perform your own analysis before making trading decisions.
[TheMandalor] Invert or Mirror Chart SUPPORT RESSISTANTThis is a new idea to find supports and resistant’s for any charts.
What is the concept of this indicator:
1. It is used close and inverted it on chart
2. When the real chart and the inverted chart is crossing together several times, this point will be important on this concept that means the price will care about this point again and again.
3. When you draw a horizontal line as support and resistance check it with this indicator too, if your support and resistance is touched with inverted chart, it will be more important than normal support/ resistance.
4. This indicator has plot candle too, it means you can compare regular chart with the inverted one at same time if you need.
Here is the steps:
1. When you add the indicator to your chart it will add your ticker as inverted.
2. Change your chart type to line chart.
3. Fix your scale in both sides left and right (the indicator's side is on the left).
4. Now you must have two type of line charts, one is yours (The blue one) and one is plotted with this indicator (The purple one).
5. Draw a horizontal line where these two lines have more crossing at the middle of chart, this line will be a powerful line later.
6. Find other more crossed points and draw horizontal line for them too.
7. Now you can see these indicator's support and resistant’s, now you can remove the indicator and watch how the price will touch, reverse, or stay on your new type of support and resistant’s lines.
PS: I have added candle plotting too if you need it.
MultiTimeframe Mediator IndicatorThis is a multitimeframe indicator where the mediators are based off different timeframes.
There are mediators defined in the indicator
1. Hourly (Green by default)
2. Daily (Blue by default)
3. Weekly (Purple by default)
4. Monthly (Orange by default)
For day trading there are 1m and 5m mediators.
How to use it :
(Identifying trends)
1. Bullish Trend : Hourly > Daily > Weekly > Monthly
2. Bearish Trend : Monthly > Weekly > Daily > Hourly
(Taking trades)
1. Long trades : when the price closes above the Hourly Mediator take an entry with SL below the Hourly Mediator. TP can be any of the mediators that is immediately on top of the Hourly Mediator. In a fully Bullish trend it can be 2x-3x from the SL.
2. Short trades : when the price closes below the Hourly Mediator take an entry with SL below the Hourly Mediator. TP can be any of othe mediators that is immediately below the Hourly Mediator. In a fully Bearish trend it can be 2x-3x from the SL.
Directional ADX with Dynamic ColorADX line change color based on its direction—green when increasing and red when decreasing.
Previous High and Low Count with Probabilities + Risk On/Off1. Purpose of the Script:
This trading script combines two important concepts:
Previous High and Low Count: It tracks whether the current price exceeds the previous day’s high or low and calculates probabilities for the next price movement (up or down).
Risk On / Risk Off Indicator: It evaluates market sentiment through various indicators (such as the Fear & Greed Index, VIX, and others) and shows whether the market is in a risk-on or risk-off state. This information impacts the probabilities of price movement.
2. How it Works:
Previous High and Low:
The script tracks how often the price exceeds the previous day’s high or low and calculates the probability of an upward or downward movement based on that. This gives you an idea of how often the market reacts at the previous day's high or low.
Risk On / Risk Off:
Based on various market factors (Fear & Greed Index, VIX, Put-Call Ratio, etc.), the script calculates the Risk On or Risk Off state.
In Risk On, the probability of an upward movement increases, and the probability of a downward movement decreases. In Risk Off, it’s the opposite.
Adjusted Probabilities:
The probabilities for an Up or Down movement are adjusted based on the current Risk On / Risk Off state. In a Risk On environment, the probability for an upward move increases, while in a Risk Off environment, the probability for a downward move increases.
3. How to Use the Script:
Add the Script in TradingView:
TradingView:
Click on "Add to Chart" to apply the script to your chart.
Manual Input of Indicators:
For the Fear & Greed Index, VIX, and other indicators, you need to manually enter the current values. You can get these values from various publicly available sources:
Fear & Greed Index: CNN Fear & Greed Index
VIX (Volatility Index): VIX Index
Other indicators like Put-Call Ratio, Bitcoin Volatility, Oil Prices, and US Dollar Index can also be manually inputted, and they can be found on finance websites like Yahoo Finance, MarketWatch, and Bloomberg.
Observe the Colors and Symbols:
If the market is in a Risk On state, the background will turn green, and a green triangle will appear below the candle.
If the market is in a Risk Off state, the background will turn red, and a red triangle will appear above the candle.
Track the Probabilities:
A label will appear on the chart showing the calculated probabilities for Up and Down movements. These probabilities are adjusted based on the current market state (Risk On/Off).
4. Meaning of the Probabilities:
Up Probability: Indicates the probability that the price will rise.
Down Probability: Indicates the probability that the price will fall.
The probabilities are dynamic and adjust based on the Risk On / Risk Off state, helping you make better decisions based on the current market conditions.
HODL Waves ApproximationHODL Waves HODL Waves göstergesi, Bitcoin'in belirli sürelerde tutulma oranlarına dayanır. Bu gösterge, Bitcoin’in hangi yaş aralıklarında tutulduğunu gösterir. Pine Script’te doğrudan HODL Waves verisi sağlanmadığı için, bu göstergenin tam olarak hesaplanması için on-chain verilere ihtiyacınız vardır. Ancak, buna benzer bir görselleştirme yapmak için belirli zaman dilimlerini kullanabilirsiniz.
BUY/SELL Timeframe ContinuityTime frame continuity refers to the alignment of price trends across multiple time frames. This means that the price movement is showing a consistent trend (either up or down) on various timeframes, like the 5-minute, 30-minute, hourly, and daily charts.
Why is it important?
Confirms Trend Strength: When multiple timeframes align, it indicates a strong and sustained trend.
Risk Management: Trading in the direction of the aligned trend can reduce risk.
This indicator checks if the current price of a selected timeframe is above or below its opening price. A buy/sell signal appears the second all bullish timeframes align (buy) or all bearish timeframes align. You can choose to paint the candles when the buy/sell conditions happen. You can select up to 10 different timeframes.
NOTE: With this indicator I prefer timeframes 15m, 30m, 1H, 4H, D, 5D, W - Together these timeframes are great for short-term trends on any stock.
MA Intersection - Buy/Sell Signals//@version=5
indicator("MA Intersection - Buy/Sell Signals", overlay=true)
// Hareketli Ortalamalar
shortMA = ta.sma(close, 50) // 50 periyotluk hareketli ortalama
longMA = ta.sma(close, 200) // 200 periyotluk hareketli ortalama
// Altın Kesişimi (Golden Cross) ve Ölüm Kesişimi (Death Cross) sinyalleri
goldenCross = ta.crossover(shortMA, longMA) // 50 MA 200 MA'yı yukarı keserse
deathCross = ta.crossunder(shortMA, longMA) // 50 MA 200 MA'yı aşağı keserse
// Alım ve Satım sinyallerini göstermek için etiketler
plotshape(goldenCross, title="Altın Kesişimi (Alım Sinyali)", location=location.belowbar, color=color.green, style=shape.labelup, text="AL", textcolor=color.white, size=size.small)
plotshape(deathCross, title="Ölüm Kesişimi (Satım Sinyali)", location=location.abovebar, color=color.red, style=shape.labeldown, text="SAT", textcolor=color.white, size=size.small)
// MA çizgilerini grafikte göstermek
plot(shortMA, color=color.blue, title="50 MA")
plot(longMA, color=color.orange, title="200 MA")
Ichimoku Cloud with Buy/Sell Signalsbuy and sell signal with ichimoku cloud based on conversion line and base line crossover
Daily Manipulation and Distribution LevelsKey Fixes:
request.security Issue:
Corrected the use of request.security to explicitly specify the timeframe and ensure proper syntax (high, low, open provided explicitly).
Dynamic Lines:
Replaced static hline with line.new, which supports dynamic values for plotting.
Line Cleanup:
Deleted old lines whenever new ones are created to prevent clutter.
Simplified Alerts:
Alerts now only trigger when the price crosses the key manipulation levels (manipulation_plus and manipulation_minus).
Usage:
Manipulation Levels:
Blue Line (Manipulation+): Watch for price crossing above this level as a potential buying opportunity.
Red Line (Manipulation-): Watch for price crossing below this level as a potential selling opportunity.
Distribution Levels:
These serve as potential take-profit zones (green for resistance, purple for support).
Let me know if any other adjustments are needed!
Roman's Ranges(GOLD FUTURES)This indicator provides the user with Gold Future's previous day’s range and how long it took for the price to reach its first extreme for the day. This information is used to predict the most probable daily direction trend and estimate how long you should expect to hold your winning trade. The distance and time are based on the market open candle (6:30 am). It measures from the retracement wick of the candle to the last 5m close of the day’s first extreme low or high point. It also includes that distance in pts.
Previous market data does not guarantee future results, however, you can leverage the knowledge of the previous day’s ranges to set reasonable take profit levels and when your target is not met automatically, you know how long it took on the previous day to reach the day’s first low/high. If you are nearing that amount of time and your trade is not as profitable as expected, it is easier to get out with less profits using this estimated time rather than hoping the market closes in your favor.
Markets go through cycles and it can be difficult to trade them all if you have a fault expectation how how far the price is expected to move. Price tends to deviate slowly from the average ranges slightly day after day, but you can expect an average range to prevail throughout the week +/- 3 points. It can be very easy to be stuck on 5-point take-profit levels that you don’t pay attention to the average range being twice or three times that distance. The same can be said for the opposite scenario with having higher profit expectations than reasonably possible.
This indicator and my statements are not financial advice. This is meant for educational purposes only.
Enhanced Fibonacci Retracement with Market Structure and FVGthis my enhanced fibonacci retracement version indicator
Specific Time Candlesbelirli saat aralığında belirli saat aralığında belirli saat aralığında belirli saat aralığında belirli saat aralığında belirli saat aralığında belirli saat aralığında belirli saat aralığında belirli saat aralığında belirli saat aralığında belirli saat aralığında
Eagle-Inspired - AYNETOverview of the Code:
Parameters for Customization:
Wing Span: Horizontal distance (in bars) of the wings.
Wing Height: Vertical height (in price units) of the wings.
Body Height: Vertical size of the central "body" rectangle.
Colors: Separate colors for wings and the body.
Center Point:
The center of the logo is dynamically tied to the current bar (bar_index) and price (close).
Design Components:
Wings: Two angled lines for the left and right wings.
Body: A rectangular shape approximated using four lines.
Dynamic Adjustments:
The size and proportions of the wings and body can be adjusted via user inputs.
Key Features:
Visual Elements: Creates a logo-like shape directly on the chart.
Customizable: Adjust the size, position, and colors of the wings and body.
Dynamic: Updates its position based on the latest bar and price.
This script provides a minimalist symbolic eagle design and can be used to visually overlay the chart with basic graphical elements. Let me know if you need further adjustments! 😊
HMM Regime IndicatorHMM Regime Indicator
Overview:
The HMM Regime Indicator is designed to help traders identify market regimes by analyzing trend strength, momentum, and price deviation. It uses a combination of the Average Directional Index (ADX), Relative Strength Index (RSI), and Commodity Channel Index (CCI) to classify market conditions into three distinct regimes: Bullish, Bearish, and Sideways.
Key Features:
ADX (Average Directional Index): Measures the strength of a trend. A high ADX value indicates a strong trend, while a low value suggests a weak or non-existent trend.
RSI (Relative Strength Index): Identifies overbought or oversold conditions. An RSI above 70 typically indicates overbought conditions, while an RSI below 30 suggests oversold conditions.
CCI (Commodity Channel Index): Evaluates the price deviation from its average. High CCI values indicate that prices are well above their average, while low values suggest prices are below their average.
Regime Detection:
Bullish Regime: Identified when the ADX indicates a strong trend, and both RSI and CCI suggest overbought conditions. This regime is marked with a green background on the chart.
Bearish Regime: Detected when the ADX shows a strong trend, and both RSI and CCI indicate oversold conditions. This regime is highlighted with a red background.
Sideways Regime: Occurs when neither bullish nor bearish conditions are met, suggesting a lack of strong directional movement. This regime is shown with a blue background.
Usage:
This indicator is useful for traders looking to understand the current market environment and adjust their strategies accordingly. By identifying the prevailing market regime, traders can make more informed decisions about entering or exiting trades.
Customization:
Users can adjust the input parameters for ADX, RSI, and CCI to better fit their trading style and the specific asset being analyzed. The default settings are optimized for general use but can be tailored to suit individual preferences.
Wick Detection (1 and 0) - AYNETDetailed Scientific Explanation
1. Wick Detection Logic
Definition of a Wick:
A wick, also known as a shadow, represents the price action outside the range of a candlestick's body (the region between open and close).
Upper Wick: Occurs when the high value exceeds the greater of open and close.
Lower Wick: Occurs when the low value is lower than the smaller of open and close.
Upper Wick Detection:
pinescript
Kodu kopyala
bool has_upper_wick = high > math.max(open, close)
This checks if the high price of the candle is greater than the maximum of the open and close prices. If true, an upper wick exists.
Lower Wick Detection:
pinescript
Kodu kopyala
bool has_lower_wick = low < math.min(open, close)
This checks if the low price of the candle is less than the minimum of the open and close prices. If true, a lower wick exists.
2. Binary Representation
The presence of a wick is encoded as a binary value for simplicity and computational analysis:
Upper Wick: Represented as 1 if present, otherwise 0.
pinescript
Kodu kopyala
float upper_wick_binary = has_upper_wick ? 1 : 0
Lower Wick: Represented as 1 if present, otherwise 0. This value is inverted (-1) for visualization purposes.
pinescript
Kodu kopyala
float lower_wick_binary = has_lower_wick ? 1 : 0
3. Visualization with Histograms
The plot function is used to create histograms for visualizing the binary wick data:
Upper Wicks: Plotted as positive values with green columns:
pinescript
Kodu kopyala
plot(upper_wick_binary, title="Upper Wick", color=color.new(color.green, 0), style=plot.style_columns, linewidth=2)
Lower Wicks: Plotted as negative values with red columns:
pinescript
Kodu kopyala
plot(lower_wick_binary * -1, title="Lower Wick", color=color.new(color.red, 0), style=plot.style_columns, linewidth=2)
Features and Applications
1. Wick Visualization:
Upper wicks are displayed as positive green columns.
Lower wicks are displayed as negative red columns.
This provides a clear visual representation of wick presence in historical data.
2. Technical Analysis:
Wick formations often indicate market sentiment:
Upper Wicks: Sellers pushed the price lower after buyers drove it higher, signaling rejection at the top.
Lower Wicks: Buyers pushed the price higher after sellers drove it lower, signaling rejection at the bottom.
3. Signal Generation:
Traders can use wick detection to build strategies, such as identifying key price levels or market reversals.
Enhancements and Future Improvements
1. Wick Length Measurement
Instead of binary detection, measure the actual length of the wick:
pinescript
Kodu kopyala
float upper_wick_length = high - math.max(open, close)
float lower_wick_length = math.min(open, close) - low
This approach allows for thresholds to identify significant wicks:
pinescript
Kodu kopyala
bool significant_upper_wick = upper_wick_length > 10 // For wicks longer than 10 units.
bool significant_lower_wick = lower_wick_length > 10
2. Alerts for Long Wicks
Trigger alerts when significant wicks are detected:
pinescript
Kodu kopyala
alertcondition(significant_upper_wick, title="Long Upper Wick", message="A significant upper wick has been detected.")
alertcondition(significant_lower_wick, title="Long Lower Wick", message="A significant lower wick has been detected.")
3. Combined Wick Analysis
Analyze both upper and lower wicks to assess volatility:
pinescript
Kodu kopyala
float total_wick_length = upper_wick_length + lower_wick_length
bool high_volatility = total_wick_length > 20 // Combined wick length exceeds 20 units.
Conclusion
This script provides a compact and computationally efficient way to detect candlestick wicks and represent them as binary data. By visualizing the data with histograms, traders can easily identify wick formations and use them for technical analysis, signal generation, and volatility assessment. The approach can be extended further to measure wick length, detect significant wicks, and integrate these insights into automated trading systems.
Day High/Low and Horizontal Lines with Custom Increments How It Works:
Day High and Day Low: The indicator tracks and displays the highest and lowest prices of the current trading day. These values are updated dynamically throughout the day.
Custom Horizontal Lines: The user specifies a starting price and an increment value. The indicator then plots multiple horizontal lines above and below the starting price, spaced at the given increment. Up to 15 lines can be drawn in both directions (above and below).
Alerts: Alerts are triggered when the price crosses any of the horizontal lines, helping traders monitor potential breakouts or reversals.
Use Case:
This indicator is useful for traders who want to:
Track the Day High/Low: Easily reference the high and low of the current day as key price levels.
Monitor Key Price Levels: Draw and observe custom horizontal levels above and below a specific price, such as support/resistance levels or price targets.
Set Alerts: Receive notifications when the price crosses these key levels, helping identify potential breakout or breakdown points in the market.
Why Use This Indicator:
Day Trading: Traders can monitor the high and low of the current trading day to see if the price breaks through key levels.
Breakout Strategy: The custom horizontal lines provide reference points for potential breakout levels, with alerts helping traders act in real-time.
Support and Resistance: The plotted lines can represent predefined support or resistance levels, allowing traders to plan their entries and exits effectively.
The indicator gives a structured way to visualize price movements, highlight important price levels, and react quickly with alerts when the price crosses those levels.
Multi-LTF Fisher Transform -AYNETJohn F. Ehlers is a renowned figure in the field of financial markets and technical analysis. With a strong background in engineering and digital signal processing (DSP), Ehlers has applied his expertise to the development of innovative technical indicators and trading systems. His work focuses on using mathematical concepts, particularly those from signal processing, to analyze financial data. THANKS.
Simple Explanation of the Code
This Pine Script code calculates and plots Fisher Transform values for up to 6 different timeframes. The user can enable or disable each timeframe, and each Fisher Transform line is displayed in a unique color. Labels at the end of the lines indicate the timeframe.
Key Components of the Code
User Inputs:
Timeframes: The user specifies up to 6 different timeframes (ltf_1, ltf_2, etc.).
Enable/Disable Options: The user can choose which timeframes to enable using checkboxes (enable_1, enable_2, etc.).
Fisher Transform Length: The number of periods (fisher_length) used to calculate the Fisher Transform.
Fisher Transform Calculation:
For each enabled timeframe, the Fisher Transform is calculated using the fisher_transform_func() function:
Lowest Low and Highest High over the given period are fetched.
The Fisher Transform formula normalizes the price and transforms it into an oscillating value.
Dynamic Plotting:
Each Fisher Transform is plotted in a unique color if the corresponding timeframe is enabled.
Labels are added at the end of the lines to indicate the timeframe (e.g., "15m", "1H").
Visual Enhancements:
Unique colors for each line (green, blue, orange, etc.).
Labels dynamically display the timeframe names.
What the Code Does
Calculates Fisher Transform:
For example, for a 15m timeframe:
Finds the lowest low and highest high over the specified period.
Applies the Fisher Transform formula to normalize and smooth the values.
Plots Active Timeframes:
Only the enabled timeframes are plotted.
Each enabled Fisher Transform is plotted as a separate line.
Adds Labels:
At the end of each plotted line, a label indicates which timeframe it represents.
How It Looks
Each active timeframe is displayed as a colored oscillating line on the chart.
Labels like "15m" or "1H" appear at the end of the lines.
Inactive timeframes are not shown.
User Interaction
Input Parameters:
Select the desired timeframes (e.g., "15m", "1H", "4H").
Enable or disable specific timeframes.
Adjust the Fisher Transform period length.
Output:
View Fisher Transform lines for active timeframes.
Use labels to identify which line corresponds to which timeframe.
Why It’s Useful
Multi-Timeframe Analysis:
Helps compare momentum across different timeframes.
Customizable:
Users can enable only the timeframes they want.
Visual Clarity:
Unique colors and labels make it easy to distinguish between timeframes.
If you need further simplifications or more details, feel free to ask! 😊