Volatility Crypto Trading Strategy//@version=5
indicator("Volatility Crypto Trading Strategy", overlay=true)
// Input parameters for Bollinger Bands and MACD
bb_length = input.int(20, title="Bollinger Band Length")
bb_std_dev = input.float(2.0, title="Bollinger Band Standard Deviation")
macd_fast = input.int(12, title="MACD Fast Length")
macd_slow = input.int(26, title="MACD Slow Length")
macd_signal = input.int(9, title="MACD Signal Length")
// Input for higher timeframe
htf = input.timeframe("30", title="Higher Timeframe")
// Bollinger Bands calculation
bb_basis = ta.sma(close, bb_length)
bb_upper = bb_basis + bb_std_dev * ta.stdev(close, bb_length)
bb_lower = bb_basis - bb_std_dev * ta.stdev(close, bb_length)
// MACD calculation
= ta.macd(close, macd_fast, macd_slow, macd_signal)
// Higher timeframe trend confirmation
htf_close = request.security(syminfo.tickerid, htf, close)
htf_trend = ta.sma(htf_close, bb_length)
higher_trend_up = htf_close > htf_trend
higher_trend_down = htf_close < htf_trend
// Entry conditions
long_condition = close < bb_lower and macd_line > signal_line and higher_trend_up
short_condition = close > bb_upper and macd_line < signal_line and higher_trend_down
// Exit conditions
long_exit_condition = close >= bb_basis * 1.1
short_exit_condition = close <= bb_basis * 0.9
// Plot Bollinger Bands
plot(bb_upper, color=color.red, title="Upper Bollinger Band")
plot(bb_lower, color=color.green, title="Lower Bollinger Band")
plot(bb_basis, color=color.blue, title="Bollinger Band Basis")
// Plot Buy/Sell signals
plotshape(series=long_condition, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(series=short_condition, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// Alerts
alertcondition(long_condition, title="Long Entry", message="Buy Signal")
alertcondition(short_condition, title="Short Entry", message="Sell Signal")
alertcondition(long_exit_condition, title="Long Exit", message="Exit Long")
alertcondition(short_exit_condition, title="Short Exit", message="Exit Short")
차트 패턴
Fibonacci RepulseFibonacci Repulse with Trend Table 📉📈
Description: The "Fibonacci Repulse" indicator for TradingView combines Fibonacci retracement levels with dynamic support/resistance detection, providing real-time price action insights. 🔄 This powerful tool plots critical Fibonacci retracement levels (23.6%, 38.2%, and 50%) based on the highest and lowest swing points over a user-defined lookback period. The indicator automatically detects bullish retests, alerting you when the price touches and closes above any of the Fibonacci levels, indicating potential upward momentum. 🚀
Key Features:
Fibonacci Retracement Levels 📊: Plots key levels (23.6%, 38.2%, 50%) dynamically based on the highest and lowest price swings over a customizable lookback period.
Bullish Retests Alerts ⚡: Identifies and marks bullish retests when the price touches the Fibonacci levels and closes above them, signaling potential upward movement.
Real-Time Trend Detection 🔍: Displays the current market trend as "Bullish," "Bearish," or "Sideways" in a clear, easy-to-read table in the bottom right corner of the chart. This is determined based on the price's position relative to the Fibonacci levels.
Customizable Settings ⚙️: Adjust the lookback period and label offsets for optimal visual customization.
How It Works:
The indicator calculates the Fibonacci retracement levels between the highest high and the lowest low within a user-defined period. 🧮
It draws extended lines at the 23.6%, 38.2%, and 50% retracement levels, updating them as the chart moves. 📉
When the price touches a Fibonacci level and closes above it, a "Bullish Retest" label appears, signaling a potential buy opportunity. 💡
A real-time trend status table updates automatically in the chart's bottom-right corner, helping traders quickly assess the market's trend direction: Bullish, Bearish, or Sideways. 🔄
Why Use It: This indicator is perfect for traders looking for a clear and visual way to incorporate Fibonacci levels into their trading strategies, with real-time feedback on trend direction and price action signals. Whether you are a novice or an experienced trader, "Fibonacci Repulse" provides a powerful tool for identifying potential reversal points and confirming trends, enhancing your trading strategy. 📈💪
Logarithmic IndicatorThis logarithmic indicator does the following:
It calculates the logarithm of the chosen price (default is close price) using a user-defined base (default is 10).
It then calculates a Simple Moving Average (SMA) of the logarithmic values.
Both the logarithmic value and its SMA are plotted on the chart.
To improve visibility, it also plots an upper and lower band based on the highest and lowest values over the last 100 periods.
To use this indicator:
Open the TradingView Pine Editor.
Paste the code into the editor.
Click "Add to Chart" or "Save" to apply the indicator to your chart.
Adjust the input parameters in the indicator settings as needed.
You can customize this indicator further by:
Changing the color scheme
Adding more moving averages or other technical indicators
Implementing alerts based on crossovers or other conditions
Remember, logarithmic scales are often used in finance to visualize data that spans several orders of magnitude, making it easier to see percentage changes over time.
Previous 4-Hour High/Low Indicator Name: Previous 4-Hour High/Low Lines
Description:
This indicator highlights the high and low levels of the previous candle from a user-defined timeframe (default: 4 hours) and extends these levels both to the left and right across the chart. It allows traders to visualize key support and resistance levels from higher timeframes while analyzing lower timeframe charts.
Key Features:
• Customizable Timeframe: Select any timeframe (e.g., 4-hour, daily) to track the high and low of the previous candle.
• Dynamic Updates: The high and low levels update automatically with each new candle.
• Extended Levels: Lines extend both left and right, providing a clear reference for past and future price action.
• Overlay on Chart: The indicator works seamlessly on any timeframe, making it ideal for multi-timeframe analysis.
Use Case:
This tool is perfect for traders who rely on higher timeframe levels for setting entry/exit points, identifying potential breakout zones, or managing risk. By visualizing these levels directly on lower timeframe charts, traders can make informed decisions without switching between charts.
BTC Trendline Patterns with Signals BTC Trendline Patterns with Signals
This custom Pine Script indicator automatically detects key pivot points in Bitcoin price action and draws support and resistance trendlines. The indicator provides buy (long) and sell (short) signals when these trendlines are broken. This can help traders identify potential breakout opportunities and trend reversals based on established price levels.
Features:
Pivot Point Detection: Automatically identifies pivot highs and lows in the price chart, based on customizable parameters (Pivot Left and Pivot Right).
Support and Resistance Trendlines: Draws trendlines based on the identified pivot points. These lines represent significant price levels where price may experience support or resistance.
Breakout Signals: Provides buy (long) and sell (short) signals when the price breaks above the resistance trendline (for buy signals) or below the support trendline (for sell signals).
Customizable Pivot Lengths: Adjust the number of bars considered for determining pivot points using the Pivot Left and Pivot Right input parameters.
How it Works:
Pivot Detection: The script identifies the highest high (pivotHigh) and the lowest low (pivotLow) within a specific range of bars (defined by Pivot Left and Pivot Right).
Trendline Plotting: Once pivots are detected, the script draws resistance (red) and support (green) trendlines connecting the most recent pivots. These trendlines act as dynamic support and resistance levels.
Breakout Signals: The script generates signals:
BUY (Long): Triggered when the price breaks above the most recent resistance trendline.
SELL (Short): Triggered when the price breaks below the most recent support trendline.
Parameters:
Pivot Left: Number of bars to the left of the pivot point to consider.
Pivot Right: Number of bars to the right of the pivot point to consider.
Line Width: Customizable line width for drawing trendlines.
Ideal Use:
Timeframes: This indicator works well on timeframes ranging from 1-minute to daily charts. For best results, use it on 1-hour, 4-hour, or daily charts.
Strategy: Ideal for breakout traders or trend-following strategies. Use it to identify potential entry points when price breaks key levels of support or resistance.
Example Use Case:
Swing Traders: Traders looking for potential breakouts can use this script to identify key levels in the market and wait for the price to break through resistance for a long trade or support for a short trade.
Day Traders: For those looking to enter and exit trades in a single day, this indicator can help pinpoint areas of support and resistance, and provide actionable signals when price breaks those levels.
Disclaimer:
This script is not a guarantee of success and should be used in conjunction with other technical analysis tools. Always perform additional research and backtesting before live trading.
Important Notes:
The pivot points and trendlines may adjust dynamically as the price evolves. Adjust the pivot settings to suit the volatility and timeframe of the market you're trading.
This indicator works best when combined with other indicators such as volume, RSI, or MACD for confirmation.
How to Use:
Add the indicator to your chart.
Adjust the Pivot Left and Pivot Right parameters to fine-tune the pivot point detection.
Monitor for trendline breakouts. When the price breaks above the resistance line, a BUY signal will appear. When the price breaks below the support line, a SELL signal will appear.
Use the signals to enter trades at the right moment.
Final Notes:
If you're submitting to TradingView for publishing, keep your description clear and informative, but also concise. Traders need to quickly understand how your indicator works, what parameters they can adjust, and how it might fit into their trading strategy.
Pro Stock Scanner + MACD# Pro Stock Scanner - Advanced Trading System
### Professional Scanning System Combining MACD, Momentum & Technical Analysis
## 🎯 Indicator Purpose
This indicator was developed to identify high-quality trading opportunities by combining:
- Strong positive momentum
- Clear technical trend
- Significant trading volume
- Precise MACD signals
## 💡 Core Mechanics
The indicator is based on three core components:
### 1. Advanced MACD Analysis (40%)
- MACD line crossover tracking
- Momentum strength measurement
- Positive/negative divergence detection
- Score range: 0-40 points
### 2. Trend Analysis (40%)
- Moving average relationships (MA20, MA50)
- Primary trend direction
- Current trend strength
- Score range: 0-40 points
### 3. Volume Analysis (20%)
- Comparison with 20-day average volume
- Volume breakout detection
- Score range: 0-20 points
## 📊 Scoring System
Total score (0-100) composition:
```
Total Score = MACD Score (40%) + Trend Score (40%) + Volume Score (20%)
```
### Score Interpretation:
- 80-100: Strong Buy Signal 🔥
- 65-79: Developing Bullish Trend ⬆️
- 50-64: Neutral ↔️
- 0-49: Technical Weakness ⬇️
## 📈 Chart Markers
1. **Large Blue Triangle**
- High score (80+)
- Positive MACD
- Bullish MACD crossover
2. **Small Triangles**
- Green: Bullish MACD crossover
- Red: Bearish MACD crossover
## 🎛️ Customizable Parameters
```
MACD Settings:
- Fast Length: 12
- Slow Length: 26
- Signal Length: 9
- Strength Threshold: 0.2%
Volume Settings:
- Threshold: 1.5x average
```
## 📱 Information Panel
Real-time display of:
1. Total Score
2. MACD Score
3. MACD Strength
4. Volume Score
5. Summary Signal
## ⚙️ Optimization Guidelines
Recommended adjustments:
1. **Bull Market**
- Decrease MACD sensitivity
- Increase volume threshold
- Focus on trend strength
2. **Bear Market**
- Increase MACD sensitivity
- Stricter trend conditions
- Higher score requirements
## 🎯 Recommended Trading Strategy
### Phase 1: Initial Scan
1. Look for 80+ total score
2. Verify sufficient trading volume
3. Confirm bullish MACD crossover
### Phase 2: Validation
1. Check long-term trend
2. Identify nearby resistance levels
3. Review earnings calendar
### Phase 3: Position Management
1. Set clear stop-loss
2. Define realistic profit targets
3. Monitor score changes
## ⚠️ Important Notes
1. This indicator is a supplementary tool
2. Combine with fundamental analysis
3. Strict risk management is essential
4. Not recommended for automated trading
## 📈 Usage Examples
Examples included:
1. Successful buy signal
2. Trend reversal identification
3. False signal analysis and lessons learned
## 🔄 Future Updates
1. RSI integration
2. Advanced alerts
3. Auto-optimization features
## 🎯 Key Benefits
1. Clear scoring system
2. Multiple confirmation layers
3. Real-time market feedback
4. Customizable parameters
## 🚀 Getting Started
1. Add indicator to chart
2. Adjust parameters if needed
3. Monitor information panel
4. Wait for strong signals (80+ score)
## 📊 Performance Metrics
- Success rate: Monitor and track
- Best performing in trending markets
- Optimal for swing trading
- Most effective on daily timeframe
## 🛠️ Technical Details
```pine
// Core components
1. MACD calculation
2. Volume analysis
3. Trend confirmation
4. Score computation
```
## 💡 Pro Tips
1. Use multiple timeframes
2. Combine with support/resistance
3. Monitor sector trends
4. Consider market conditions
## 🤝 Support
Feedback and improvement suggestions welcome!
## 📜 License
MIT License - Free to use and modify
## 📚 Additional Resources
- Recommended timeframes: Daily, 4H
- Best performing markets: Stocks, ETFs
- Optimal market conditions: Trending markets
- Risk management guidelines included
## 🔍 Final Notes
Remember:
- No indicator is 100% accurate
- Always use proper position sizing
- Combine with other analysis tools
- Practice proper risk management
// @version=5
// @description Pro Stock Scanner - Advanced trading system combining MACD, momentum and volume analysis
// @author AviPro
// @license MIT
//
// This indicator helps identify high-quality trading opportunities by analyzing:
// 1. MACD momentum and crossovers
// 2. Trend strength and direction
// 3. Volume patterns and breakouts
//
// The system provides:
// - Total score (0-100)
// - Visual signals on chart
// - Information panel with key metrics
// - Customizable parameters
//
// IMPORTANT: This indicator is for educational and informational purposes only.
// Always conduct your own analysis and use proper risk management.
//
// If you find this indicator helpful, please consider leaving a like and comment!
// Feedback and suggestions for improvement are always welcome.
Daytrading ES Wick Length StrategyThis Pine Script strategy calculates the combined length of upper and lower wicks of candlesticks and uses a customizable moving average (MA) to identify potential long entry points. The strategy compares the total wick length to the MA with an added offset. If the wick length exceeds the offset-adjusted MA, the strategy enters a long position. The position is automatically closed after a user-defined holding period.
Key Features:
1. Calculates the sum of upper and lower wicks for each candlestick.
2. Offers four types of moving averages (SMA, EMA, WMA, VWMA) for analysis.
3. Allows the user to set a customizable MA length and an offset to shift the MA.
4. Automatically exits positions after a specified number of bars.
5. Visualizes the wick length as a histogram and the offset-adjusted MA as a line.
References:
• Candlestick wick analysis: Nison, S. (1991). Japanese Candlestick Charting Techniques.
• Moving averages: Brock, W., Lakonishok, J., & LeBaron, B. (1992). “Simple Technical Trading Rules and the Stochastic Properties of Stock Returns”. Journal of Finance.
This strategy is suitable for identifying candlesticks with significant volatility and long wicks, which can indicate potential trend reversals or continuations.
Swing & Day Trading Strategy dddddThis TradingView Pine Script is designed for swing and day trading, incorporating multiple technical indicators and tools to enhance decision-making. It calculates and plots exponential moving averages (EMAs) for 5, 9, 21, 50, and 200 periods to identify trends and crossovers. The Relative Strength Index (RSI) and Moving Average Convergence Divergence (MACD) provide momentum and overbought/oversold signals. The script dynamically identifies and marks support and resistance levels based on recent highs and lows, while also detecting and labeling key candlestick patterns such as bullish and bearish engulfing, doji, and hammer candles. Bullish and bearish signals are highlighted on the chart with green and red backgrounds, respectively, and alerts are generated to notify traders of these conditions. All visualizations, including EMAs, support/resistance lines, and candlestick labels, are overlaid directly on the stock chart for easy interpretation. This comprehensive approach assists traders in spotting potential trading opportunities effectively.
Parabolic SAR This script provides an enhanced implementation of the Parabolic SAR (Stop and Reverse) indicator, a popular tool for identifying potential trend reversals in financial markets. The script incorporates additional features for improved usability and trading decision-making:
Key Features:
Customizable Parameters:
Initial Acceleration Factor: Start value for the SAR calculation.
Increment: Step value that increases the SAR during a trend.
Maximum Acceleration Factor: Cap for the SAR to prevent over-adjustment.
Buy & Sell Signals:
Buy Signal: Triggered when the price crosses above the SAR.
Sell Signal: Triggered when the price crosses below the SAR.
Signals are displayed as visually intuitive labels ("Buy" and "Sell") on the chart.
Alerts Integration:
Configurable alerts for buy and sell signals, allowing users to stay informed without actively monitoring the chart.
Dynamic Candle Coloring:
Candlesticks are dynamically colored based on the most recent signal:
Green: Buy signal (bullish trend).
Red: Sell signal (bearish trend).
Elegant SAR Plot:
The SAR is plotted as cross-style markers with a visually appealing magenta color.
How to Use:
Adjust the Initial Acceleration Factor, Increment, and Maximum Acceleration Factor in the input settings to match your trading style.
Enable alerts to receive notifications when buy or sell signals are generated.
Use the colored candlesticks as an additional confirmation tool to visualize market trends directly on the chart.
Up Gap Strategy with DelayThis strategy, titled “Up Gap Strategy with Delay,” is based on identifying up gaps in the price action of an asset. A gap is defined as the percentage difference between the current bar’s open price and the previous bar’s close price. The strategy triggers a long position if the gap exceeds a user-defined threshold and includes a delay period before entering the position. After entering, the position is held for a set number of periods before being closed.
Key Features:
1. Gap Threshold: The strategy defines an up gap when the gap size exceeds a specified threshold (in percentage terms). The gap threshold is an input parameter that allows customization based on the user’s preference.
2. Delay Period: After the gap occurs, the strategy waits for a delay period before initiating a long position. This delay can help mitigate any short-term volatility that might occur immediately after the gap.
3. Holding Period: Once the position is entered, it is held for a user-defined number of periods (holdingPeriods). This is to capture the potential post-gap trend continuation, as gaps often indicate strong directional momentum.
4. Gap Plotting: The strategy visually plots up gaps on the chart by placing a green label beneath the bar where the gap condition is met. Additionally, the background color turns green to highlight up-gap occurrences.
5. Exit Condition: The position is exited after the defined holding period. The strategy ensures that the position is closed after this time, regardless of whether the price is in profit or loss.
Scientific Background:
The gap theory has been widely studied in financial literature and is based on the premise that gaps in price often represent areas of significant support or resistance. According to research by Kaufman (2002), gaps in price action can be indicators of future price direction, particularly when they occur after a period of consolidation or a trend reversal. Moreover, Gaps and their Implications in Technical Analysis (Murphy, 1999) highlights that gaps can reflect imbalances between supply and demand, leading to high momentum and potential price continuation or reversal.
In trading strategies, utilizing gaps with specific conditions, such as delay and holding periods, can enhance the ability to capture significant price moves. The strategy’s delay period helps avoid potential market noise immediately after the gap, while the holding period seeks to capitalize on the price continuation that often follows gap formation.
This methodology aligns with momentum-based strategies, which rely on the persistence of trends in financial markets. Several studies, including Jegadeesh & Titman (1993), have documented the existence of momentum effects in stock prices, where past price movements can be predictive of future returns.
Conclusion:
This strategy incorporates gap detection and momentum principles, supported by empirical research in technical analysis, to attempt to capitalize on price movements following significant gaps. By waiting for a delay period and holding the position for a specified time, it aims to mitigate the risk associated with early volatility while maximizing the potential for sustained price moves.
Nimu Market on DemandNimu Market On Demand is an innovative tool designed to provide a visual representation of market demand levels on a scale of 1 to 100. This scale is displayed at specific intervals , making it easy for users to understand market demand fluctuations in real time.
To enhance analysis, Nimu Market On Demand also incorporates the Relative Strength Index (RSI) with key thresholds at . RSI is a widely-used technical indicator that measures market strength and momentum, offering insights into overbought (excessive buying) or oversold (excessive selling) conditions.
The combination of the Demand graph and RSI enables users to:
Identify the right time to buy when the RSI falls below 30, signaling an oversold condition.
Determine the optimal time to sell when the RSI rises above 70, indicating an overbought condition.
With an integrated visualization, users can effortlessly observe demand patterns and combine them with RSI signals to make smarter and more strategic trading decisions. This tool is designed to help traders and investors maximize opportunities in a dynamic market environment.
Edufx AMD~Accumulation, Manipulation, DistributionEdufx AMD Indicator
This indicator visualizes the market cycles using distinct phases: Accumulation, Manipulation, Distribution, and Reversal. It is designed to assist traders in identifying potential entry points and understanding price behavior during these phases.
Key Features:
1. Phases and Logic:
-Accumulation Phase: Highlights the price range where market accumulation occurs.
-Manipulation Phase:
- If the price sweeps below the accumulation low, it signals a potential "Buy Zone."
- If the price sweeps above the accumulation high, it signals a potential "Sell Zone."
-Distribution Phase: Highlights where price is expected to expand and establish trends.
-Reversal Phase: Marks areas where the price may either continue or reverse.
2. Weekly and Daily Cycles:
- Toggle the visibility of Weekly Cycles and Daily Cycles independently through the settings.
- These cycles are predefined with precise timings for each phase, based on your selected on UTC-5 timezone.
3. Customizable Appearance:
- Adjust the colors for each phase directly in the settings to suit your preferences.
- The indicator uses semi-transparent boxes to represent the phases, allowing easy visualization without obstructing the chart.
4. Static Boxes:
- Boxes representing the phases are drawn only once for the visible chart range and do not dynamically delete, ensuring important consistent reference points.
SMA Trend Spectrum [InvestorUnknown]The SMA Trend Spectrum indicator is designed to visually represent market trends and momentum by using a series of Simple Moving Averages (SMAs) to create a color-coded spectrum or heatmap. This tool helps traders identify the strength and direction of market trends across various time frames within one chart.
Functionality:
SMA Calculation: The indicator calculates multiple SMAs starting from a user-defined base period (Starting Period) and increasing by a specified increment (Period Increment). This creates a sequence of moving averages that span from short-term to long-term perspectives.
Trend Analysis: Each segment of the spectrum compares three SMAs to determine the market's trend strength: Bullish (color-coded green) when the current price is above all three SMAs. Neutral (color-coded purple) when the price is above some but not all SMAs. Bearish (color-coded red) when the price is below all three SMAs.
f_col(x1, x2, x3) =>
min = ta.sma(src, x1)
mid = ta.sma(src, x2)
max = ta.sma(src, x3)
c = src > min and src > mid and src > max ? bull : src > min or src > mid or src > max ? ncol : bear
Heatmap Visualization: The indicator plots these trends as a vertical spectrum where each row represents a different set of SMAs, forming a heatmap-like display. The color of each segment in the heatmap directly correlates with market conditions, providing an intuitive view of market sentiment.
Signal Smoothing: Users can choose to smooth the trend signal using either a Simple Moving Average (SMA), Exponential Moving Average (EMA), or leave it as raw data (Signal Smoothing). The length of smoothing can be adjusted (Smoothing Length). The signal is displayed in a scaled way to automatically adjust for the best visual experience, ensuring that the trend is clear and easily interpretable across different chart scales and time frames
Additional Features:
Plot Signal: Optionally plots a line representing the average trend across all calculated SMAs. This line helps in identifying the overall market direction based on the spectrum data.
Bar Coloring: Bars on the chart can be colored according to the average trend strength, providing a quick visual cue of market conditions.
Usage:
Trend Identification: Use the heatmap to quickly assess if the market is trending strongly in one direction or if it's in a consolidation phase.
Entry/Exit Points: Look for shifts in color patterns to anticipate potential trend changes or confirmations for entry or exit points.
Momentum Analysis: The gradient from bearish to bullish across the spectrum can be used to gauge momentum and potentially forecast future price movements.
Notes:
The effectiveness of this indicator can vary based on market conditions, asset volatility, and the chosen SMA periods and increments.
It's advisable to combine this tool with other technical indicators or fundamental analysis for more robust trading decisions.
Disclaimer: Past performance does not guarantee future results. Always use this indicator as part of a broader trading strategy.
BARTU V1 MACD-RSI//@version=6
indicator('MACD ve RSI', overlay = false)
// MACD hesaplama
= ta.macd(close, 12, 26, 9)
macdHist = macdLine - signalLine
// RSI hesaplama
rsiLength = 14
rsiValue = ta.rsi(close, rsiLength)
// MACD çizimleri
hline(0, 'Sıfır Çizgisi', color = color.gray)
plot(macdLine, color = color.blue, title = 'MACD Hattı')
plot(signalLine, color = color.red, title = 'Sinyal Hattı')
plot(macdHist, color = color.green, style = plot.style_histogram, title = 'MACD Histogramı')
// RSI çizimleri
rsiOverbought = 70
rsiOversold = 30
hline(rsiOverbought, 'Aşırı Alım', color = color.red)
hline(rsiOversold, 'Aşırı Satım', color = color.green)
plot(rsiValue, color = color.orange, title = 'RSI')
// Arka Plan Renkleri
bgcolor(rsiValue > rsiOverbought ? color.new(color.red, 90) : na)
bgcolor(rsiValue < rsiOversold ? color.new(color.green, 90) : na)
MACD,RSI,EM9,WMA45 (Scale -100 đến 100)include: MACD,RSI,EM9,WMA45.
All indicators are fixed from -100 to 100.
Momentum Setup - Ankush Bajaj Momentum Investing SetupMomentum Setup - Ankush Bajaj Momentum Investing Setup
Momentum Setup - Ankush Bajaj Momentum Investing SetupMomentum Setup - Ankush Bajaj Momentum Investing Setup
EMA Crossover with RSI and DistanceEMA Crossover with RSI and Distance Strategy
This strategy combines Exponential Moving Averages (EMA) with Relative Strength Index (RSI) and distance-based conditions to generate buy, sell, and neutral signals. It is designed to help traders identify entry and exit points based on multiple technical indicators.
Key Components:
Exponential Moving Averages (EMA):
The strategy uses four EMAs: EMA 5, EMA 13, EMA 40, and EMA 55.
A buy signal (long) is triggered when EMA 5 crosses above EMA 13 and EMA 40 crosses above EMA 55.
A sell signal (short) is generated when EMA 55 crosses above EMA 40.
The distance between EMAs (5 and 13) is also important. If the current distance between EMA 5 and EMA 13 is smaller than the average distance over the last 5 candles, a neutral condition is triggered, preventing a signal even if all other conditions are met.
Relative Strength Index (RSI):
The 14-period RSI is used to determine market strength and direction.
The strategy requires RSI to be above 50 and greater than the average RSI (over the past 14 periods) for a buy signal.
If the RSI is above 60, a green signal is given, indicating a strong bullish condition, even if the EMA conditions are not fully met.
If the RSI is below 40, a red signal is given, indicating a strong bearish condition, regardless of the EMA crossover.
Distance Conditions:
The strategy calculates the distance between EMA 5 and EMA 13 on each candle and compares it to the average distance of the last 5 candles.
If the current distance between EMA 5 and EMA 13 is lower than the average of the last 5 candles, a neutral signal is triggered. This helps avoid entering a trade when the market is losing momentum.
Additionally, if the distance between EMA 40 and EMA 13 is greater than the previous distance, the previous signal is kept intact, ensuring that the trend is still strong enough for the signal to remain valid.
Signal Persistence:
Once a buy (green) or sell (red) signal is triggered, it remains intact as long as the price is closing above EMA 5 for long trades or below EMA 55 for short trades.
If the price moves below EMA 5 for long trades or above EMA 55 for short trades, the signal is recalculated based on the most recent conditions.
Signal Display:
Green Signals: Represent a strong buy signal and are shown below the candle when the RSI is above 60.
Red Signals: Represent a strong sell signal and are shown above the candle when the RSI is below 40.
Neutral Signals: Displayed when the conditions for entry are not met, specifically when the EMA distance condition is violated.
Long and Short Signals: Additional signals are shown based on the EMA crossovers and RSI conditions. These signals are plotted below the candle for long positions and above the candle for short positions.
Trade Logic:
Long Entry: Enter a long trade when EMA 5 crosses above EMA 13, EMA 40 crosses above EMA 55, and the RSI is above 50 and greater than the average RSI. Additionally, the current distance between EMA 5 and EMA 13 should be larger than the average distance of the last 5 candles.
Short Entry: Enter a short trade when EMA 55 crosses above EMA 40 and the RSI is below 40.
Neutral Condition: If the distance between EMA 5 and EMA 13 is smaller than the average distance over the last 5 candles, the strategy will not trigger a signal, even if other conditions are met.
EMA + Stochastic Strategy (day trading)Setup Instructions
Exponential Moving Averages (EMA):
Use two EMAs:
50-period EMA for the overall trend.
20-period EMA for shorter-term movements.
Trend Confirmation:
If the 20 EMA is above the 50 EMA, focus on buy opportunities.
If the 20 EMA is below the 50 EMA, focus on sell opportunities.
Stochastic Oscillator:
Set Stochastic to a 14, 3, 3 period (default).
Overbought level = 80; Oversold level = 20.
Look for crossovers:
Buy: Stochastic %K crosses above %D in the oversold zone (below 20).
Sell: Stochastic %K crosses below %D in the overbought zone (above 80).
Entry and Exit Rules
Buy Signal:
The 20 EMA is above the 50 EMA, confirming an uptrend.
The Stochastic Oscillator is in the oversold zone (below 20), and %K crosses above %D.
Enter when the price retraces to and bounces off the 20 EMA in the direction of the trend.
Sell Signal:
The 20 EMA is below the 50 EMA, confirming a downtrend.
The Stochastic Oscillator is in the overbought zone (above 80), and %K crosses below %D.
Enter when the price retraces to and rejects off the 20 EMA in the direction of the trend.
Stop Loss and Take Profit
Stop Loss:
For buy trades: Place the stop loss below the recent swing low.
For sell trades: Place the stop loss above the recent swing high.
Take Profit:
Use a risk-to-reward ratio of 1:2 or higher.
Alternatively, exit the trade when Stochastic reaches the opposite extreme (80 for buys, 20 for sells).
Example
Scenario: GBP/USD on a 15-minute chart.
The 20 EMA is above the 50 EMA, indicating an uptrend.
The Stochastic Oscillator dips below 20, and %K crosses above %D.
Enter a buy trade when the price bounces off the 20 EMA.
Place a stop loss below the nearest swing low and a take profit at twice the risk.
Tips for Success
Avoid Choppy Markets: Ensure the EMAs are diverging, and there’s a clear trend.
Use Stochastic for Confirmation: Only take trades when the Stochastic Oscillator aligns with the EMA trend.
Combine with Price Action:
Watch for candlestick patterns (e.g., pin bars, engulfing candles) near the 20 EMA for additional confirmation.
Practice Discipline: Stick to your stop-loss and take-profit rules.
HOD/LOD/PMH/PML/PDH/PDL Strategy by @tradingbauhaus This script is a trading strategy @tradingbauhaus designed to trade based on key price levels, such as the High of Day (HOD), Low of Day (LOD), Premarket High (PMH), Premarket Low (PML), Previous Day High (PDH), and Previous Day Low (PDL). Below, I’ll explain in detail what the script does:
Core Functionality of the Script:
Calculates Key Price Levels:
HOD (High of Day): The highest price of the current day.
LOD (Low of Day): The lowest price of the current day.
PMH (Premarket High): The highest price during the premarket session (before the market opens).
PML (Premarket Low): The lowest price during the premarket session.
PDH (Previous Day High): The highest price of the previous day.
PDL (Previous Day Low): The lowest price of the previous day.
Draws Horizontal Lines on the Chart:
Plots horizontal lines on the chart for each key level (HOD, LOD, PMH, PML, PDH, PDL) with specific colors for easy visual identification.
Defines Entry and Exit Rules:
Long Entry (Buy): If the price crosses above the PMH (Premarket High) or the PDH (Previous Day High).
Short Entry (Sell): If the price crosses below the PML (Premarket Low) or the PDL (Previous Day Low).
Long Exit: If the price reaches the HOD (High of Day) during a long position.
Short Exit: If the price reaches the LOD (Low of Day) during a short position.
How the Script Works Step by Step:
Calculates Key Levels:
Uses the request.security function to fetch the HOD and LOD of the current day, as well as the highs and lows of the previous day (PDH and PDL).
Calculates the PMH and PML during the premarket session (before 9:30 AM).
Plots Levels on the Chart:
Uses the plot function to draw horizontal lines on the chart representing the key levels (HOD, LOD, PMH, PML, PDH, PDL).
Each level has a specific color for easy identification:
HOD: White.
LOD: Purple.
PDH: Orange.
PDL: Blue.
PMH: Green.
PML: Red.
Defines Trading Rules:
Uses conditions with ta.crossover and ta.crossunder to detect when the price crosses key levels.
Long Entry: If the price crosses above the PMH or PDH, a long position (buy) is opened.
Short Entry: If the price crosses below the PML or PDL, a short position (sell) is opened.
Long Exit: If the price reaches the HOD during a long position, the position is closed.
Short Exit: If the price reaches the LOD during a short position, the position is closed.
Executes Orders Automatically:
Uses the strategy.entry and strategy.close functions to open and close positions automatically based on the defined rules.
Advantages of This Strategy:
Based on Key Levels: Uses important price levels that often act as support and resistance.
Easy to Visualize: Horizontal lines on the chart make it easy to identify levels.
Automated: Entries and exits are executed automatically based on the defined rules.
Limitations of This Strategy:
Dependent on Volatility: Works best in markets with significant price movements.
False Crosses: There may be false crosses that generate incorrect signals.
No Advanced Risk Management: Does not include dynamic stop-loss or take-profit mechanisms.
How to Improve the Strategy:
Add Stop-Loss and Take-Profit: To limit losses and lock in profits.
Filter Signals with Indicators: Use RSI, MACD, or other indicators to confirm signals.
Optimize Levels: Adjust key levels based on the asset’s behavior.
In summary, this script is a trading strategy that operates based on key price levels, such as HOD, LOD, PMH, PML, PDH, and PDL. It is useful for traders who want to trade based on significant support and resistance levels.
Ultra TrendlinesThis indicator automatically draws trendlines based on every pivot point, helping traders visualize key support and resistance levels. It dynamically adjusts as new pivots are detected and validates the trendlines against price movement.
Introduction
The Ultra Trendlines indicator is designed to help traders identify and track significant trendlines on their charts. By automatically detecting pivot points (both highs and lows), it draws trendlines that highlight key market movements. These trendlines are valuable for understanding the broader trend and for making informed trading decisions.
Detailed Description
The indicator analyzes price data to find pivot points highs and lows over a user-defined lookback period. Once a pivot is detected, it draws trendlines between the pivot points.
.........
Accuracy
To ensure accuracy, the indicator only keeps trendlines that are confirmed by price action. It checks if the price crosses the trendline and deletes invalid lines.
Additionally, it checks if the trendlines stay within predefined price thresholds, filtering out irrelevant lines that are too far from current price action.
The indicator also has an option to only show "rising lows" and "falling highs" trendlines, offering further precision in trend direction.
As new pivots are detected, older trendlines that fall outside the lookback period are removed, ensuring the chart remains clean.
.....
Style
The trendlines can extend forward (infinite and userdefined), backward, both or none. The lines are drawn with a customizable style (solid, dotted, or dashed), color, and width.
.........
Summary of Key Points
The indicator automatically detects pivot points (highs and lows) and draws trendlines based on them. It allows you to customize the style, color, and width of the trendlines. The indicator filters out invalid trendlines by checking if they are still relevant based on price action and price thresholds. Additionally, you can choose to only display rising lows and falling highs for more accurate trend analysis. It also removes outdated trendlines to keep the chart clean.
Entry-Exit pointThis indicator combines Bollinger Bands and RSI (Relative Strength Index) to generate entry and exit signals based on price movements and trend conditions.
### Key Features:
- **Bollinger Bands**: The indicator uses Bollinger Bands to assess volatility, with the upper and lower bands plotted around a simple moving average (SMA) of the price. The bands expand and contract based on the standard deviation, providing insights into potential overbought or oversold conditions.
- **RSI**: The RSI is used to determine if the price is overbought or oversold. In this case, it highlights conditions when the RSI is below 40 (oversold) for bullish signals and above 65 (overbought) for bearish signals.
- **Trend Analysis**: The indicator analyzes the previous high and low values to determine the market trend. It identifies uptrend and downtrend conditions based on recent price action.
- **Entry Signals**:
- **Bullish Entry (Green Arrows)**: A signal is generated when the price touches or dips below the lower Bollinger Band, the RSI is under 40, and the current candle shows a downtrend (lower high and low).
- **Bearish Entry (Red Arrows)**: A signal is triggered when the price touches or rises above the upper Bollinger Band, the RSI is above 65, and the current candle shows an uptrend (higher high and low).
### Visuals:
- **Green Up Arrows**: Indicate a potential bullish entry point, plotted below the bar.
- **Red Down Arrows**: Indicate a potential bearish entry point, plotted above the bar.
- **Bollinger Bands**: The upper and lower bands are shown in red and green, with the basis (SMA) in blue.
This indicator provides a clear, rule-based system for detecting potential price reversals based on both volatility (Bollinger Bands) and momentum (RSI), making it useful for traders looking to enter positions during strong trend reversals.
by Frank R.
Abraço primo Lucas Rodrigues