7–9 Day Swing Trading//@version=5
strategy("7–9 Day Swing Trading", overlay=true)
// Input Parameters
maLength = input.int(9, "Moving Average Length") // Short-term moving average for trend
rsiLength = input.int(7, "RSI Length") // RSI to capture short-term momentum
rsiOverbought = input.float(70, "RSI Overbought Level") // Overbought level for RSI
rsiOversold = input.float(30, "RSI Oversold Level") // Oversold level for RSI
volumeMultiplier = input.float(1.5, "Volume Multiplier") // Volume threshold multiplier
// Indicators
sma = ta.sma(close, maLength) // Simple Moving Average
rsi = ta.rsi(close, rsiLength) // Relative Strength Index
averageVolume = ta.sma(volume, 14) // 14-period average volume
// Conditions for Entry
longCondition = close > sma and rsi < rsiOversold and volume > (averageVolume * volumeMultiplier)
shortCondition = close < sma and rsi > rsiOverbought and volume > (averageVolume * volumeMultiplier)
// Strategy Logic
if (longCondition)
strategy.entry("Long", strategy.long)
if (shortCondition)
strategy.entry("Short", strategy.short)
// Exit Logic
exitConditionLong = rsi > rsiOverbought or close < sma
exitConditionShort = rsi < rsiOversold or close > sma
if (exitConditionLong)
strategy.close("Long")
if (exitConditionShort)
strategy.close("Short")
// Plot Indicators
plot(sma, color=color.blue, linewidth=2, title="SMA")
hline(rsiOverbought, "Overbought", color=color.red, linestyle=hline.style_dotted)
hline(rsiOversold, "Oversold", color=color.green, linestyle=hline.style_dotted)
Chỉ báo và chiến lược
7–9 Day Swing Trading//@version=5
strategy("7–9 Day Swing Trading", overlay=true)
// Input Parameters
maLength = input.int(9, "Moving Average Length") // Short-term moving average for trend
rsiLength = input.int(7, "RSI Length") // RSI to capture short-term momentum
rsiOverbought = input.float(70, "RSI Overbought Level") // Overbought level for RSI
rsiOversold = input.float(30, "RSI Oversold Level") // Oversold level for RSI
volumeMultiplier = input.float(1.5, "Volume Multiplier") // Volume threshold multiplier
// Indicators
sma = ta.sma(close, maLength) // Simple Moving Average
rsi = ta.rsi(close, rsiLength) // Relative Strength Index
averageVolume = ta.sma(volume, 14) // 14-period average volume
// Conditions for Entry
longCondition = close > sma and rsi < rsiOversold and volume > (averageVolume * volumeMultiplier)
shortCondition = close < sma and rsi > rsiOverbought and volume > (averageVolume * volumeMultiplier)
// Strategy Logic
if (longCondition)
strategy.entry("Long", strategy.long)
if (shortCondition)
strategy.entry("Short", strategy.short)
// Exit Logic
exitConditionLong = rsi > rsiOverbought or close < sma
exitConditionShort = rsi < rsiOversold or close > sma
if (exitConditionLong)
strategy.close("Long")
if (exitConditionShort)
strategy.close("Short")
// Plot Indicators
plot(sma, color=color.blue, linewidth=2, title="SMA")
hline(rsiOverbought, "Overbought", color=color.red, linestyle=hline.style_dotted)
hline(rsiOversold, "Oversold", color=color.green, linestyle=hline.style_dotted)
TWO EMA CROSSThis script uses Pine Script version 5 and is designed for a 5-minute time frame. The script plots the EMA 7, EMA 21, and ZLMA, and generates buy and sell signals one candle before the crossover of EMA 7 and EMA 21.
rohith buying multi-timeframe EMA AlertsThis indicator makes use of EMA and Bollinger Bands along with CCI and mul;ti timeframe EMAs to handle scalping or option buying trades on Indian indices.
Nate's Key Level Break & EMA Conditions Avoid chop and clarify trend direction!
The Premarket & EMA Condition Arrows indicator is a custom tool designed to help traders identify key price action signals during market hours. It combines the analysis of the premarket session, Exponential Moving Averages (EMA), and VWAP (Volume-Weighted Average Price) to generate buy and sell signals in real-time.
Key Features:
Premarket Session Analysis: The indicator tracks the highest and lowest price during the premarket session (from 4:00 AM to 9:30 AM) and compares the current price to these levels.
Previous Day's High/Low: It incorporates the previous day's high and low for additional context, allowing traders to identify breakouts or breakdowns relative to prior price action.
EMA and VWAP Conditions: The indicator checks if the price is above or below the 8-period and 20-period EMAs as well as the VWAP, helping to filter signals based on trend strength and volume-weighted price action.
Green Signal (Bullish): A green dot is plotted when the price is above either the premarket high or the previous day's high, and it is also above both the 8 EMA, 20 EMA, and VWAP. This suggests a bullish trend.
Red Signal (Bearish): A red dot is plotted when the price is below both the premarket high and previous day's high, as well as below both the 8 EMA, 20 EMA, and VWAP. This indicates a bearish trend.
Market Hours Filtering: Signals are only displayed during market hours (9:30 AM to 4:00 PM), ensuring that they are relevant to active trading periods.
Alert Conditions: The indicator includes customizable alerts for both green and red dot conditions, allowing traders to be notified when these key levels are met.
This tool is ideal for traders who focus on price action and trend-following strategies, combining the influence of premarket levels, EMAs, and VWAP to make informed trading decisions.
HTF Hi-Lo Zones [CHE]HTF Hi-Lo Zones Indicator
The HTF Hi-Lo Zones Indicator is a Pine Script tool designed to highlight important high and low values from a selected higher timeframe. It provides traders with clear visual zones where price activity has reached significant points, helping in decision-making by identifying potential support and resistance levels. This indicator is customizable, allowing users to select the resolution type, control the visualization of session ranges, and even display detailed information about the chosen timeframe.
Key Functionalities
1. Timeframe Resolution Selection:
- The indicator offers three modes to determine the resolution:
- Automatic: Dynamically calculates the higher timeframe based on the current chart's resolution.
- Multiplier: Allows users to apply a multiplier to the current chart's timeframe.
- Manual: Enables manual input for custom resolution settings.
- Each resolution type ensures flexibility to suit different trading styles and strategies.
2. Data Fetching for High and Low Values:
- The indicator retrieves the current high and low values for the selected higher timeframe using `request.security`.
- It also calculates the lowest and highest values over a configurable lookback period, providing insights into significant price movements within the chosen timeframe.
3. Session High and Low Detection:
- The indicator detects whether the current value represents a new session high or low by comparing the highest and lowest values with the current data.
- This is crucial for identifying breakouts or significant turning points during a session.
4. Visual Representation:
- When a new session high or low is detected:
- Range Zones: A colored box marks the session's high-to-low range.
- Labels: Optional labels indicate "New High" or "New Low" for clarity.
- Users can customize colors, transparency, and whether range outlines or labels should be displayed.
5. Information Box:
- An optional dashboard displays details about the chosen timeframe resolution and current session activity.
- The box's size, position, and colors are fully customizable.
6. Session Tracking:
- Tracks session boundaries, updating the visualization dynamically as the session progresses.
- Displays session-specific maximum and minimum values if enabled.
7. Additional Features:
- Configurable dividers for session or daily boundaries.
- Transparency and styling options for the displayed zones.
- A dashboard for advanced visualization and information overlay.
Key Code Sections Explained
1. Resolution Determination:
- Depending on the user's input (Auto, Multiplier, or Manual), the script determines the appropriate timeframe resolution for higher timeframe analysis.
- The resolution adapts dynamically based on intraday, daily, or higher-period charts.
2. Fetching Security Data:
- Using the `getSecurityDataFunction`, the script fetches high and low values for the chosen timeframe, including historical and real-time data management to avoid repainting issues.
3. Session High/Low Logic:
- By comparing the highest and lowest values over a lookback period, the script identifies whether the current value is a new session high or low, updating session boundaries and initiating visual indicators.
4. Visualization:
- The script creates visual representations using `box.new` for range zones and `label.new` for session labels.
- These elements update dynamically to reflect the most recent data.
5. Customization Options:
- Users can configure the appearance, behavior, and displayed data through multiple input options, ensuring adaptability to individual trading preferences.
This indicator is a robust tool for tracking higher timeframe activity, offering a blend of automation, customization, and visual clarity to enhance trading strategies.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Best regards and happy trading
Chervolino
Premarket/Previous Day Level Break & EMA Condition DotsThis indicator helps prevent chop and clarifies trend direction.
I prefer on 10 min chart, Indicator will show up only after price has broken previous day levels or pre-market levels, this avoids chop, once green shows for calls, or red for puts, wait for a retest of one of the daily levels, the first 5 min ORB levels, OR a retest off the 8 or 20 EMA when price is overextended.
Conditions for Green Dot: The green dot appears when the price is above either the premarket high or previous day's high, and also above both the 8 EMA, 20 EMA, and VWAP.
Conditions for Red Dot: The red dot appears when the price is below the premarket high or previous day's high, below both the 8 EMA, 20 EMA, and VWAP.
JaiAmbe - Price Range CheckerShows Upside signal if price above 10/20 ema
Shows circle signal if price between10/20 ema
Shows below signal if price below 20 ema
This indicator is helpful in filtering an existing watchlist where we have many stocks and we are only interest which are 10ema .
Go to pin screena nd select that watchlist and select "JaiAmbe - Price Range Checker" and select "Price 10/20 EMA" to TRUE and do scan.
It will filter the watchlist.
in.tradingview.com
Markttechnik Strategie mit Pyramiding und Drawdown-Limit >60% Trades due Markttechnik which is widely used by financial institutions in germany.
Parameter settings are essential for success . > 60% successfull
[blackcat] L2 Waveband Trading█ OVERVIEW
The Waveband Trading script calculates trading signals based on a modified Relative Strength Index (RSI)-like system combined with specific price action criteria. It plots two lines representing different smoothed RSI-like indicators and marks potential buying opportunities labeled as "S" for stronger trends and "B" for weaker but still favorable ones.
█ LOGICAL FRAMEWORK
The script begins by defining the waveband_trading_signals function which computes RSI-like metrics and determines buy signals under certain conditions. The main sections include input parameter definitions, function calls, data processing within the function, and plot commands for visual representation. Data flows from historical OHLCV data to various technical computations like EMAs and SMAs before being evaluated against user-defined thresholds to generate trade signals.
█ CUSTOM FUNCTIONS
Waveband Trading Signals:
• Purpose: Computes waveband trading signals using a customized version of the RSI indicator.
• Parameters:
— overboughtLevel: Threshold level indicating market overbought condition.
— oversoldLevel: Threshold level indicating market oversold condition.
— strongHoldLevel: Strong hold condition threshold between neutral and overbought states.
— moderateHoldLevel: Moderate hold condition threshold below strong hold level.
• [b>Returns: A tuple containing:
— k: Smoothed RSI-like metric.
— d: Further smoothed version of 'k'.
— buySignalStrong: Boolean indicating a strong trend buy signal.
— buySignalWeak: Boolean indicating a weak but promising buy signal.
█ KEY POINTS AND TECHNIQUES
• Utilizes EMA and SMA functions to smooth out price variations effectively.
• Employs crossover logic between fast ('k') and slow ('d') indicators to identify entry points.
• Incorporates volume checks ensuring increasing interest in trades aligns with upwards momentum.
• Leverages predefined threshold levels allowing flexibility to adapt to varying market conditions.
• Uses the new labeling feature ( label.new ) introduced in Pine Script v5 for marking significant chart events visually.
█ EXTENDED KNOWLEDGE AND APPLICATIONS
Potential enhancements could involve incorporating additional filters such as MACD crossovers or Fibonacci retracement levels alongside optimizing current conditions via backtesting. This technique might also prove useful in other strategies requiring robust confirmation methods beyond simple price action; alternatively, adapting it into a more automated form for execution on exchanges offering API access. Understanding key functionalities like relative strength assessment, smoothed averaging techniques, and conditional buy/sell rules enriches one’s toolkit when developing complex trading algorithms tailored specifically toward personal investment philosophies.
Candlestick Pattern DetectorFeatures
Reversal Patterns:
Bullish Patterns:
Bullish Engulfing: A strong reversal signal when a bullish candle completely engulfs the previous bearish candle.
Hammer: Indicates a potential bottom reversal with a small body and a long lower wick.
Morning Star: A three-candle pattern signaling a transition from a downtrend to an uptrend.
Bearish Patterns:
Bearish Engulfing: A bearish candle fully engulfs the prior bullish candle, indicating a potential downtrend.
Shooting Star: A potential top reversal with a small body and a long upper wick.
Evening Star: A three-candle pattern signaling a shift from an uptrend to a downtrend.
Continuation Patterns:
Bullish Continuation:
Rising Three Methods: A consolidation pattern within an uptrend, indicating the trend is likely to continue.
Bearish Continuation:
Falling Three Methods: A consolidation pattern within a downtrend, suggesting further downside movement.
Visual Highlights:
Bullish Reversal Patterns: Labeled below candles with a green "Bullish" marker.
Bearish Reversal Patterns: Labeled above candles with a red "Bearish" marker.
Bullish Continuation Patterns: Displayed as blue triangles pointing upward.
Bearish Continuation Patterns: Displayed as orange triangles pointing downward.
Real-Time Alerts:
Get notified when a specific candlestick pattern is detected, enabling you to act quickly in dynamic market conditions.
Marubozu White with ATR-based SL and TPMarubozu White with ATR-based SL and TP
***ช่วงการซื้อขาย: 2023-01-01 19:00 - 2025-01-07 09:00, ***ช่วงการทดสอบย้อนหลัง: 2023-01-01 07:00 ถึง 2025-01-07 09:00
***สัญลักษณ์: BINANCE:BTCUSD.P ไทนเฟรม: 2 ข้าโมง,
***Risk/Reward Ratio: 2, ATR Length: 1, ATR Multiplier for SL: 9.5
VST: Daily Close Crossing Weekly HMA & Daily WMAVST: Daily Close Crossing Weekly HMA & Daily WMA, may change its direction upwards and vis a versa
SZN TrendThis indicator showcases various trends.
Local Trend - 13, 21, 34 EMA
Daily Trend - H4 100 and 200 EMA
Weekly Trend - Daily 100 and 200 EMA.
Courtesy of Docxbt.
Close Difference of rolling candleThis is a modified version of FTFC concept.
FTFC concept look at HTF candle's direction, green or red.
This indicator calculate the closing price difference in a rolling base. For example, if now it is 3:05pm, it will show the price difference at closing between 3:05pm and 2:04pm if you use 60 mins as the setting. The moment it turn or green, it means in the last 1 hour, the candle is green. It is not tied to a time point of the HTF clock.
Monthly Drawdowns and Moves UP This script allows users to analyze the performance of a specific month across multiple years, focusing on maximum drawdowns and maximum upward moves within the selected month. The script offers the following features:
Dynamic Month Selection : Choose any month to analyze using an intuitive dropdown menu.
Maximum Drawdown and Upward Move Calculations :
Calculate the largest percentage drop (drawdown) and rise (move up) for the selected month each year.
Visual Highlights :
The selected month is visually highlighted on the chart with a semi-transparent overlay.
Dynamic Labels:
Labels display the maximum drawdown and upward move directly on the chart for better visualization.
Comprehensive Table Summary:
A table provides a year-by-year summary of the maximum drawdowns and upward moves for the selected month, making it easy to spot trends over time.
Customizable Display Options:
Toggle the visibility of drawdown labels, move-up labels, and the summary table for a clutter-free experience.
This tool is perfect for traders and analysts looking to identify seasonal patterns, assess risk and opportunity, and gain deeper insights into monthly performance metrics across years. Customize, explore, and make informed decisions with this powerful Pine Script indicator.
Closing Price Difference-FTFC concept-reset at each HTFPlease read FTFC concept first.
This indicator track the current time frame (HTF) closing price difference.
If you select 1 hour, you got to see the current closing price go back to the exact 1 hour time frame when it starts. For example, if now it is 3:05pm, the candle is green, that means, the one hour candle from 3:00pm to the current moment is green. So the chart reset at the time frame of your choice. I will create an non-reset version later. There is a threshold filter you can choose.
FTFC concept tell us to trade in the same direction of the HTF moving direction. This indicator help you see the FTFC trend at the time frame of your choice. Try 30m or 1H above
Master Bitcoin & Litecoin Stock To Flow (S2F) ModelMaster Bitcoin & Litecoin Stock-to-Flow (S2F) Model
This indicator visualizes the Stock-to-Flow (S2F) models for Bitcoin (BTC) and Litecoin (LTC) based on Plan B's methodology. It calculates S2F and projects price models for both assets, incorporating daily changes in circulating supply. The script is designed exclusively for daily timeframes.
Features:
LTC & BTC S2F Models:
Calculates Stock-to-Flow values for both assets using daily new supply and circulating supply data.
Models S2F values with a customizable multiplier for precise adjustments.
500-Day Moving Average Models:
Smoothens the S2F model by applying a 500-day (18-month) moving average, providing a long-term trend perspective.
Customizable Inputs:
Adjust LTC and BTC multipliers to fine-tune the models.
Alert for Timeframe:
Alerts users to switch to the daily timeframe if another period is selected.
Plots:
LTC S2F Model: Blue line representing Litecoin’s calculated S2F-based price model.
BTC S2F Model: Orange line representing Bitcoin’s calculated S2F-based price model.
500-Day Avg Models: Smoothened S2F models for both LTC and BTC.
Notes:
Requires daily timeframe (1D) for accurate calculations.
Supply data is sourced from GLASSNODE:LTC_SUPPLY and GLASSNODE:BTC_SUPPLY.
Disclaimer:
This model is derived from Plan B's S2F methodology and is intended for educational and entertainment purposes only. It does not reflect official predictions or financial advice. Always conduct your own research before making investment decisions.
Multi-ticker Daily Pivot AlertDescription:
The Big Tech Daily Pivot Alert is a powerful TradingView indicator designed to monitor daily pivot points for major tech and market-leading tickers. It provides real-time alerts when prices approach their daily pivot levels, helping traders identify potential trading opportunities during the U.S. market hours.
Key Features:
Multi-Ticker Monitoring: Tracks the daily pivot points for top tech and market tickers, including NVDA, TSLA, AMZN, NFLX, SPY, QQQ, GOOGL, MSFT, META, and AAPL.
Daily Pivot Calculations: Uses yesterday's high, low, and close prices to calculate the pivot point for each ticker.
Real-Time Alerts: Sends instant alerts when the open, high, low, or current price is near the pivot point (within 0.25% tolerance).
Time-Sensitive Alerts: Operates exclusively during U.S. market hours (6:00 AM to 1:00 PM PST) on weekdays (Monday to Friday).
Customizable Alert Format: Alerts are sent as JSON payloads for seamless integration with platforms like Discord or other webhook-supported systems.
How It Works:
The indicator calculates the daily pivot point for each ticker using the formula:
Pivot Point = (High + Low + Close) / 3
It continuously monitors the open, high, low, and current prices of each ticker on a 1-minute timeframe.
If any value approaches the pivot point within a configurable threshold (default: 0.25%), it triggers an alert with detailed information for all tickers meeting the criteria.
Who Should Use It:
Day Traders: Spot potential price reversal or breakout levels based on pivot point testing.
Swing Traders: Identify key levels of support and resistance to inform trading decisions.
Tech and Market Enthusiasts: Stay updated on critical price levels for major tech and market tickers.
Instructions:
Add the indicator to your chart.
Configure your webhook endpoint to receive alerts (e.g., Discord or Slack).
Monitor alerts for actionable opportunities when prices test pivot points.
Buy the Close, Sell the OpenScript de prueba para la estrategia de "Buy the Close, Sell the Open" sugerida por el master HC.