介休
//@version=5
strategy("Wyckoff BTC Strategy v3", overlay=true, margin_long=100, margin_short=100)
// —— 正确定义全局变量 ——
var bool springCondition = false // 初始化为布尔类型
var bool volumeCondition = false
var bool divergenceCondition = false
// —— 指标计算 ——
volumeMA20 = ta.sma(volume, 20)
dailyClose = request.security(syminfo.tickerid, "D", close)
dailyMA50 = ta.sma(dailyClose, 50)
currentRSI = ta.rsi(close, 14)
currentATR = ta.atr(14)
// —— 信号计算 ——
springLow = ta.lowest(low, 10)
springCondition := low < springLow and close > springLow and volume > volumeMA20
volumeCondition :=
volume > 1.5 * volumeMA20 and
volume < 0.7 * volumeMA20
priceHigh = ta.highest(high, 10)
rsiHigh = ta.highest(currentRSI, 10)
divergenceCondition := high >= priceHigh and currentRSI < rsiHigh
// —— 可视化 ——
plotshape(longCondition, style=shape.triangleup, color=color.green, location=location.belowbar)
plotshape(exitCondition, style=shape.triangledown, color=color.red, location=location.abovebar)
Indikator dan strategi
144 EMA Dynamic Support/Resistance ZonesHow to Use:
Adding the Indicator:
Open TradingView and navigate to your chart.
Click on the "Pine Editor" tab at the bottom.
Paste the above code into the editor.
Click "Add to Chart" to apply the indicator.
Configuring Settings:
EMA Length: Set the period for the main EMA (default is 144).
Zone Type: Choose between "Percentage" or "ATR Multiplier" to define the width of the support/resistance zones.
Zone Value: Specify the percentage or ATR multiplier for the zones.
Use Trend Confirmation: Enable or disable the secondary trend confirmation using a shorter EMA.
Trend EMA Length: Set the period for the trend confirmation EMA (default is 21).
Interpreting Signals:
Buy Signal: A "Buy" label appears when the price crosses above the upper zone, indicating potential upward momentum.
Sell Signal: A "Sell" label appears when the price crosses below the lower zone, indicating potential downward momentum.
Note: This indicator is designed to assist in identifying dynamic support and resistance levels and potential entry points. It's recommended to use it in conjunction with other analysis tools and risk management practices.
Feel free to customize the parameters to suit your trading style and preferences. If you have any specific features or modifications in mind, please let me know, and I can adjust the code accordingly.
Breakout Strategy with Support/ResistanceBreakout with support and resistance levels either up or down
Long Lower Shadow ScreenerTo show "long lower shadow" = on a trade day, the lowest price is lower than the close/open rice 5%
Candlesticks Not Touching EMA 3 & EMA 5 ScannerCandlesticks Not Touching EMA 3 & EMA 5 Scanner
Short Title: EMA Scanner
Overview
This indicator scans for candlesticks that do not touch the EMA 3 and EMA 5, highlighting potential trading opportunities where price action is significantly distanced from these moving averages. It identifies momentum-based entries and helps traders spot strong trends.
How It Works
It checks if the candle's high and low are completely above or below both EMAs (3 & 5).
It ensures that the distance between the candle and EMA 5 is at least a user-defined multiple of the candle range.
When a valid candle is detected, a triangle marker appears below (for long trades) or above (for short trades).
Trade Execution Strategy
Entry:
Long Entry → Break of the candle’s high
Short Entry → Break of the candle’s low
Stop Loss:
Long SL → Low of the same candle
Short SL → High of the same candle
Target: EMA 5
Additional Features
✅ Plots EMA 3 (Blue) and EMA 5 (Red) for reference
✅ Marks potential long and short trades with arrows
✅ Detects & plots when Target or Stop Loss is hit
✅ Alerts for valid signals, target hits, and stop loss hits
Best Use Cases
🔹 Suitable for intraday & swing traders looking for momentum-based trades
🔹 Works well in trending markets
🔹 Helps identify mean-reversion & breakout opportunities
🚀 Use this indicator to refine your trading setups & boost your market edge! 🚀
RSI Double Timeframe [4H & 1D < 30] Script pour TradingView qui affiche les RSI 4H et 1D et signale quand les deux sont en dessous de 30
Bollinger Bands Strategy with SL/TPTitle: Bollinger Bands Strategy with Stop Loss/Take Profit
Description:
This strategy implements a classic Bollinger Bands trading system with integrated Stop Loss (SL) and Take Profit (TP) levels. It identifies potential entry points based on price crossing the upper or lower Bollinger Bands and automatically sets SL/TP orders to manage risk and secure profits.
Key Features:
Bollinger Bands Calculation: Calculates the upper and lower Bollinger Bands using a Simple Moving Average (SMA) of the price and a standard deviation multiplier.
Customizable Parameters:
Source: Price source to use for calculations (default: close price).
Length: SMA period for the Bollinger Bands (default: 20).
Mult: Standard deviation multiplier for the Bollinger Bands (default: 2.0).
Strategy Direction: Specifies the trading direction:
-1: Short only.
0: Long and Short (both directions).
1: Long only.
Stop Loss (pips): Stop Loss distance from entry price in pips (default: 10).
Take Profit (pips): Take Profit distance from entry price in pips (default: 20).
Entry Logic:
Long Entry: Enters a long position when the price crosses above the lower Bollinger Band.
Short Entry: Enters a short position when the price crosses below the upper Bollinger Band.
Exit Logic (Stop Loss/Take Profit):
Automatically places Stop Loss and Take Profit orders upon entry.
SL/TP levels are calculated based on the user-defined sl_pips and tp_pips from the entry price.
Uses strategy.exit with stop and limit parameters to define the SL/TP levels.
Order Cancellation:
Uses oca_type=strategy.oca.cancel to ensure that if one entry order is filled, the other is automatically cancelled. This avoids unwanted positions.
Pip to Price Conversion:
The f_pips_to_price function converts the pip value to the corresponding price change for the specific instrument, ensuring accurate SL/TP placement.
Strategy Direction Control:
The direction input allows users to specify whether the strategy should trade long, short, or both directions. This is helpful for adapting the strategy to different market conditions or biases.
How to Use:
Add the strategy to your TradingView chart.
Adjust the input parameters (Length, Mult, SL pips, TP pips, direction) to suit your trading style and the specific market you are trading.
Backtest the strategy on historical data to evaluate its performance.
Use the strategy with caution and always manage your risk appropriately.
Disclaimer:
This strategy is for educational and informational purposes only. Past performance is not indicative of future results. Trading involves risk, and you should only trade with capital you can afford to lose. Always conduct thorough research and due diligence before making any trading decisions. The user assumes all responsibility for any gains or losses incurred using this strategy.
Fib Speed Resistance Fan"Fib Speed Resistance Fan," automatically draws Fibonacci Speed Resistance Fan lines based on the first and third candles of the trading session. Here’s a breakdown of its functionality:
Functionality
Session Start Time Identification
The script identifies the first candle at 9:15 AM using timestamp(), which ensures it captures the market's opening candle.
Candle Indexing
It determines the index of the first candle (firstCandleIndex) using ta.barssince(time >= sessionStart).
The third candle is found by adding two bars to the first candle's index (thirdCandleIndex = firstCandleIndex + 2).
Ensuring Single Execution
A boolean flag hasDrawn ensures that the lines are drawn only once and do not update on future candles.
Validating Data
It checks if the firstCandleIndex and thirdCandleIndex are valid (validSession).
If conditions are met, it extracts the highs and lows of the first and third candles.
Fibonacci Calculation
The script calculates a 0.75 level price between the first candle high/low and third candle low/high.
This level helps in drawing intermediate Fibonacci fan lines.
Drawing the Fibonacci Speed Resistance Fan
If conditions are valid and hasDrawn is false, the script draws:
Main fan lines from:
First candle high → Third candle low (Blue line)
First candle low → Third candle high (Blue line)
Candle Range ColumnsRange of each candle plotted as a column, with an adjustable moving average to show the average range of the last x days.
Stock Screener - Strong Trend & Momentum📌 Overview
This Stock Screener Indicator helps traders identify high-momentum stocks with a strong uptrend, high liquidity, and low volatility near their 52-week highs. The screener is automated and displays the results in a table on the right-hand side of the chart, making it easy to find breakout candidates.
🔍 How This Screener Works
It filters stocks that meet the following conditions:
✔ High Volume (Liquidity Check) → Current volume > 100K shares
✔ Trend Confirmation (Golden Trend Setup):
5-Day SMA > 20-Day SMA
20-Day SMA > 50-Day SMA
50-Day SMA > 150-Day SMA
150-Day SMA > 200-Day SMA
✔ Momentum Strength (Overbought Indicator) → RSI (14) > 70
✔ Additional Strength Confirmation → RSI (14) > 55
✔ Price Near 52-Week High → Stock must be within 10% of its 52-week high
✔ Avoid Overextended Stocks → Price should not be >25% above 50-day SMA
🛠️ Features
✅ Trend & Momentum Based Screener – Filters only the strongest stocks in an uptrend
✅ Right-Hand Side Table Display – Displays a table with real-time updates
✅ Automatic Alerts – Alerts when stocks match all conditions
✅ Helps Identify Breakout Stocks – Works for swing traders, trend followers, and position traders
✅ Zero Clutter on the Main Chart – Displays in a separate panel below RSI
📢 How to Use This Indicator
1️⃣ Apply This Indicator to a Chart (Works best with Daily timeframe 📅)
2️⃣ Look for stocks marked as "✅ Yes" in the Table
3️⃣ Set Alerts to automatically notify you when a stock meets all conditions
4️⃣ Confirm Entry Based on Price Action – Ideal for breakout trading 📈
🚀 Who Can Use This?
🔥 Swing Traders – Catch strong stocks before they break out
🔥 Trend Followers – Identify stocks in a confirmed uptrend
🔥 Momentum Traders – Focus on stocks with high RSI & strength
🔥 Investors – Find fundamentally strong stocks with technical confirmation
⚠️ Disclaimer
This indicator does not provide buy/sell signals. It is a screening tool to filter stocks based on strong momentum and trend-following conditions. Please do your own research and use proper risk management before taking any trade.
ATR Trailing Stop Loss & Bollinger band_10 FEbThis strategy combines ATR trailing stop loss along with BB and give long/ short entry exit signals.
Happy trading
Fixed Gap Price LevelsIndicator Description:
The Fixed Gap Price Levels indicator draws horizontal price levels at user-defined intervals on the chart.
Users can select a starting price level (e.g., 71 or 2.1).
Lines are drawn at fixed gaps (e.g., if 71 is chosen, lines appear at 71, 142, 213, etc.).
An optional midpoint line can be enabled to appear halfway between the main levels.
Customizable colors for both main and midpoint lines.
Lines extend across the entire screen for easy visualization of price levels.
This tool helps traders quickly identify key price levels based on predefined spacing, aiding in technical analysis.
End-of-Session ProbabilityThis indicator estimates the probability that the market will finish the session above a specified target price. It blends a statistical probability model with directional bias and optional morning momentum weighting to help traders gauge end-of-day market expectations.
Key Features:
• Statistical Probability Model:
Uses a normal distribution (with a custom normal CDF approximation) scaled by the square-root-of-time rule. The indicator dynamically adjusts the standard deviation for the remaining session time to compute a z‑score and ultimately the probability that the session close exceeds the target.
• Directional Bias via Daily HullMA (Exponential):
A daily Hull Moving Average (calculated using an exponential method) is used as a big-picture trend indicator. The model allows you to select your bias method—either by comparing the current price to the daily HullMA (Price method) or by using the HullMA’s slope (Slope method). A drift multiplier scales this bias, which then shifts the mean used in the probability calculations.
• Optional Morning Momentum Weight:
For traders who believe that early session moves provide useful clues about the day’s momentum, you can enable an optional weighting. The indicator captures the percentage change from the morning open (within a user-defined time window) and adjusts the expected move accordingly. A multiplier lets you control the strength of this adjustment.
• Visual Outputs:
The indicator plots quantile lines (approximately the 25%, 50%, and 75% levels) for the expected price distribution at session end. An abbreviated on-chart label displays key information:
• Target: The target price (current price plus a user-defined offset)
• Prob Above: The probability (in percentage) that the session close will exceed the target price
• Time: The time remaining in the session (in minutes)
How to Use:
1. Set Your Parameters:
• Expected Session Move: Input your estimated standard deviation for the full-session move in price units.
• Daily Hull MA Settings: Adjust the period for the daily HullMA and choose the bias method (Price or Slope). Modify the drift multiplier to tune the strength of the directional bias.
• Target Offset: Specify an offset from the current price to set your target level.
• Morning Momentum (Optional): Enable the morning momentum weight if you want the indicator to adjust the expected move based on early session price changes. Define the morning session window and set the momentum multiplier.
2. Interpret the Output:
• Quantile Lines: These represent the range of possible end-of-session prices based on your model.
• Abbreviated Label: Provides a quick snapshot of the target price, probability of finishing above that target, and time remaining in the session.
3. Trading Application:
Use the probability output as a guide to assess if the market is likely to continue in the current direction or reverse by session close. The indicator can help you decide on trade entries, exits, or adjustments based on your overall strategy and risk management approach.
This tool is designed to offer a dynamic, statistically driven snapshot of the market’s expected end-of-day behavior, combining both longer-term trend bias and short-term momentum cues.
Morning Star Detector🛠 Features:
✅ Detects Morning Star patterns
✅ Marks the pattern with a green label
✅ Highlights the background when detected
✅ Triggers an alert when a Morning Star appears
ELITE QUADRO STOCH RSIIt shows 4 different Stochastic RSI and when all of them are oversold / overbought it gives buy (blue) or sell (pink) signals.
This way by multipling basic periods you can monitor another timeframes.
For Example:
15 minutes - 14 (as a basic period)
1 hour - 14 x 4 = 56
4 hour - 14 x 4 x 4 = 224
1 day - 14 x 4 x 4 x 8 = 1792
But i recommend use it for close timeframe:
5M , 15M, 30M and 1H (to trade on 5M);
or 15M, 30M, 1H and 4H (to trade on 15M)
Ultimate Volatility Scanner by NHBprod - Requested by Client!Hey Everyone!
I created another script to add to my growing library of strategies and indicators that I use for automated crypto and stock trading! This strategy is for BITCOIN but can be used on any stock or crypto. This was requested by a client so I thought I should create it and hopefully build off of it and build variants!
This script gets and compares the 14-day volatility using the ATR percentage for a list of cryptocurrencies and stocks. Cryptocurrencies are preloaded into the script, and the script will show you the TOP 5 coins in terms of volatility, and then compares it to the Bitcoin volatility as a reference. It updates these values once per day using daily timeframe data from TradingView. The coins are then sorted in descending order by their volatility.
If you don't want to use the preloaded set of coins, you have the option of inputting your own coins AND/OR stocks!
Let me know your thoughts.
Combined CALL & PUT Candles / Pair TradingThis script plots Combined candles for two instruments (e.g., a Nifty Call and a Nifty Put option) and calculates their combined Candle / HA candle in a separate pane. It also includes an Exponential Moving Average (EMA) of 11 periods that changes color based on the trend.
This indicator can be used for Pair Trading as well
The user can:
Choose between normal candles or Heikin Ashi candles.
Select which instruments (Call or Put) to display.
See a combined HA candle, which takes an average of the selected instruments.
View a trend-based EMA (11-period) that turns green for uptrends and red for downtrends.
Pros (Advantages)
✅ Clear Trend Visualization – Heikin Ashi candles smooth price action and help filter out noise.
✅ Dual Instrument Analysis – Users can compare Call and Put options together.
✅ Customizability – Options to enable/disable individual instruments and choose candle types.
✅ Trend Indication – The EMA provides a quick visual cue on the trend direction.
✅ Better Decision-Making – Helps traders analyze combined movement instead of just one instrument.
Cons (Limitations)
❌ Lagging Indicator – HA candles and EMA introduce lag since they are calculated using past data.
❌ No Wick Visibility – Only the candle bodies are plotted, which may hide key price action details.
❌ Limited Use in Fast Markets – The smoothing effect may cause delays in reflecting sudden price movements.
❌ No Volume Consideration – The script does not factor in trading volume, which can be crucial in options trading.
Who Can Use This?
🔹 Options Traders – Those analyzing Call and Put movement together.
🔹 Trend Followers – Traders looking for smooth price action and clear trend signals.
🔹 Algorithmic Traders – Those who want a simplified trend view for strategy development.
Alienist Top Gold Tradea combination of technical indicators to identify trends and potential entry points. Here's how it works:
Indicators Used:
EMA (Exponential Moving Averages): A fast EMA (short-term) and a slow EMA (long-term) are used to identify trends. When the fast EMA crosses above the slow EMA, it signals a potential uptrend, and when it crosses below, it signals a potential downtrend.
RSI (Relative Strength Index): This measures whether the asset is overbought or oversold. The strategy uses RSI thresholds (70 for overbought and 30 for oversold) to confirm entry signals.
Bollinger Bands: These help identify volatility and potential breakout points. The strategy looks for prices breaking above the upper band for long entries or below the lower band for short entries.
Entry Conditions:
Long Entry: The strategy enters a long position when:
The fast EMA crosses above the slow EMA (uptrend signal).
The RSI is below 30 (oversold condition).
The price closes above the upper Bollinger Band (breakout signal).
Short Entry: The strategy enters a short position when:
The fast EMA crosses below the slow EMA (downtrend signal).
The RSI is above 70 (overbought condition).
The price closes below the lower Bollinger Band (breakdown signal).
Risk Management:
The strategy calculates stop-loss and take-profit levels based on a user-defined risk percentage and reward-to-risk ratio. For example, if the risk per trade is 1% of the account equity and the reward-to-risk ratio is 2, the take-profit level will be twice the distance of the stop-loss level.
Visualization:
The script plots the fast EMA, slow EMA, and Bollinger Bands on the chart to help visualize the indicators and signals.
In summary, this strategy combines trend-following (EMA), momentum (RSI), and volatility (Bollinger Bands) to identify high-probability trades while managing risk through stop-loss and take-profit levels. It’s designed for trading XAUUSD but can be adapted for other assets
Bitcoin Liquidity Breakout with ICT StrategiesBitcoin Liquidity Breakout with ICT Strategies
a one of many scripts developed by our engineers .
Check the results for yourself
Market Sentiment - Historic Movement & Pending Orders The "Market Sentiment Osc" is a custom trading indicator designed to assess market sentiment based on bid-ask and tick-based data. This oscillator aggregates data from two key sources:
It measures the balance between market upticks, market downticks, cumulative bids and cumulative asks. By doing this we are attempting to guage sentiment by combining the actions that have happened in the past as well as the pending actions the market is willing to make.
The indicator combines these two components to form a composite oscillator that highlights shifts in market sentiment. When the composite value is positive, it suggests a bullish trend, while a negative value indicates bearish sentiment.
The Hoodie Market Trend is plotted as a histogram, with color coding:
Green: Bullish momentum (positive values).
Red: Bearish momentum (negative values).
Additionally, the user can toggle the histogram visibility with the provided input option.
This oscillator can be applied across various timeframes and stock symbols without allowing for symbol customization, making it a simple yet effective tool for market trend analysis. The zero line (purple) serves as a reference point to gauge whether the market is in a bullish or bearish phase.
Stink BidsThis strategy puts "stink bids" at a fixed percentage below last candle close, and close the position on the candle close.
This works because in crypto coin are quite volatile and liquidations/capitulations make great wicks.
Holding period is just one candle because you don't expect trend reversal, just a local pullback after liquidations or fat fingers.