FxInside你这段代码整体逻辑是正确的,但如果**实际运行后看不到空头信号(`short_signal`)**,那大概率是因为条件太苛刻,在你当前查看的图表、时间周期和币种上**并没有符合这些严格空头条件的K线**。
---
### ✅ 逐项检查你的 `short_signal` 条件:
```pinescript
short_signal = do_tick/st >= 2 and st / (high - low ) >= 0.05 and up_tick/st <= 0.75 and close < low
```
#### 解释:
1. `do_tick / st >= 2`:前一根K线下影线明显大于实体(**下影线 >= 实体的2倍**)✅
2. `st / (high - low ) >= 0.05`:实体不能太小(至少占K线5%)✅
3. `up_tick / st <= 0.75`:上影线不能太大 ✅
4. `close < low `:当前K线收盘价要**跌破前一根K线最低价**(这可能比较苛刻❗)
---
### 🔍 为什么很少或没有出现空头信号?
通常是因为 **`close < low `** 是比较少见的情况(意味着当前K线**收盘直接创新低**),在大部分正常震荡或下跌过程中,K线更多是影线破位而不是**实体收盘破位**。
---
### ✅ 如何验证问题?
你可以临时在图表中添加一个调试输出,例如:
```pinescript
label.new(bar_index, high, text="✓", color=color.red) if short_signal
```
或者添加调试 `plot`:
```pinescript
plot(close < low ? 1 : na, title="收盘破前低", color=color.red)
```
你会发现这个条件非常少成立。
---
### ✅ 两个可选改进方式:
#### ✅ 方式1:放宽空头条件的“收盘破低”为“最低价破低”
```pinescript
short_signal = do_tick/st >= 2 and st / (high - low ) >= 0.05 and up_tick/st <= 0.75 and low < low
```
这样只要**当前K线最低价跌破前低**就算空头信号,触发率大幅提升。
---
#### ✅ 方式2:同时显示条件组件,方便你调试
```pinescript
plotshape(do_tick/st >= 2, title="下影线够长", location=location.top, color=color.blue, style=shape.circle)
plotshape(st / (high - low ) >= 0.05, title="实体不小", location=location.top, color=color.yellow, style=shape.circle)
plotshape(up_tick/st <= 0.75, title="上影线不大", location=location.top, color=color.orange, style=shape.circle)
plotshape(close < low , title="收盘破低", location=location.top, color=color.red, style=shape.triangledown)
```
这样可以清晰地看到哪一个条件没有被满足。
---
如果你愿意,我也可以根据你的交易风格(比如追空激进 or 保守),重新优化空头条件。是否要我为你设计一个更高触发率的版本?
المؤشرات والاستراتيجيات
GBPUSD V2"GBPUSD V2" is a multi-confirmation trading strategy built specifically for GBP/USD, but adaptable to other major forex pairs. It combines Heikin-Ashi candles with EMA, MACD, RSI, and ADX filters to generate high-probability long and short signals.
Key Features:
📊 Heikin-Ashi EMA Trend Filter to smooth price action and filter direction
📈 MACD Crossovers confirm momentum entry points
🔍 RSI Thresholds for overbought/oversold validation
📉 ADX Filter ensures entries only occur in strong trending conditions
🕒 Customizable Time Session and Weekday Filters – trade only during preferred hours and days
🔁 Optional Multi-Timeframe Confirmation to align lower timeframe signals with higher timeframe EMA trends
📏 ATR-Based TP/SL Calculations with optional candle quality check
✅ Backtested and optimized on the 10-minute timeframe (M10), making it well-suited for short-term intraday strategies.
This strategy is suitable for both manual and automated trading approaches, especially for intraday and swing traders who prioritize precision and signal quality.
RCI Ribbon with Cross Signals (Filtered)nothing to say just use itnothing to say just use itnothing to say just use itnothing to say just use it
RSI-GringoRSI-Gringo — Stochastic RSI with Advanced Smoothing Averages
Overview:
RSI-Gringo is an advanced technical indicator that combines the concept of the Stochastic RSI with multiple smoothing options using various moving averages. It is designed for traders seeking greater precision in momentum analysis, while offering the flexibility to select the type of moving average that best suits their trading style.
Disclaimer: This script is not investment advice. Its use is entirely at your own risk. My responsibility is to provide a fully functional indicator, but it is not my role to guide how to trade, adjust, or use this tool in any specific strategy.
The JMA (Jurik Moving Average) version used in this script is a custom implementation based on publicly shared code by TradingView users, and it is not the original licensed version from Jurik Research.
What This Indicator Does
RSI-Gringo applies the Stochastic Oscillator logic to the RSI itself (rather than price), helping to identify overbought and oversold conditions within the RSI. This often leads to more responsive and accurate momentum signals.
This indicator displays:
%K: the main Stochastic RSI line
%D: smoothed signal line of %K
Upper/Lower horizontal reference lines at 80 and 20
Features and Settings
Available smoothing methods (selectable from dropdown):
SMA — Simple Moving Average
SMMA — Smoothed Moving Average (equivalent to RMA)
EMA — Exponential Moving Average
WMA — Weighted Moving Average
HMA — Hull Moving Average (manually implemented)
JMA — Jurik Moving Average (custom approximation)
KAMA — Kaufman Adaptive Moving Average
T3 — Triple Smoothed Moving Average with adjustable hot factor
How to Adjust Advanced Averages
T3 – Triple Smoothed MA
Parameter: T3 Hot Factor
Valid range: 0.1 to 2.0
Tuning:
Lower values (e.g., 0.1) make it faster but noisier
Higher values (e.g., 2.0) make it smoother but slower
Balanced range: 0.7 to 1.0 (recommended)
JMA – Jurik Moving Average (Custom)
Parameters:
Phase: adjusts responsiveness and smoothness (-100 to 100)
Power: controls smoothing intensity (default: 1)
Tuning:
Phase = 0: neutral behavior
Phase > 0: more reactive
Phase < 0: smoother, more delayed
Power = 1: recommended default for most uses
Note: The JMA used here is not the proprietary version by Jurik Research, but an educational approximation available in the public domain on TradingView.
How to Use
Crossover Signals
Buy signal: %K crosses above %D from below the 20 line
Sell signal: %K crosses below %D from above the 80 line
Momentum Strength
%K and %D above 80: strong bullish momentum
%K and %D below 20: strong bearish momentum
With Trend Filters
Combine this indicator with trend-following tools (like moving averages on price)
Fast smoothing types (like EMA or HMA) are better for scalping and day trading
Slower types (like T3 or KAMA) are better for swing and long-term trading
Final Tips
Tweak RSI and smoothing periods depending on the time frame you're trading.
Try different combinations of moving averages to find what works best for your strategy.
This indicator is intended as a supporting tool for technical analysis — not a standalone decision-making system.
Euclidean Range [InvestorUnknown]The Euclidean Range indicator visualizes price deviation from a moving average using a geometric concept Euclidean distance. It helps traders identify trend strength, volatility shifts, and potential overextensions in price behavior.
Euclidean Distance
Euclidean distance is a fundamental concept in geometry and machine learning. It measures the "straight-line distance" between two points in space. In time series analysis, it can be used to measure how far one sequence deviates from another over a fixed window.
euclidean_distance(src, ref, len) =>
var float sum_sq_diff = na
sum_sq_diff := 0.0
for i = 0 to len - 1
diff = src - ref
sum_sq_diff += diff * diff
math.sqrt(sum_sq_diff)
In this script, we calculate the Euclidean distance between the price (source) and a smoothed average (reference) over a user-defined window. This gives us a single scalar that reflects the overall divergence between price and trend.
How It Works
Moving Average Calculation: You can choose between SMA, EMA, or HMA as your reference line. This becomes the "baseline" against which the actual price is compared.
Distance Band Construction: The Euclidean distance between the price and the reference is calculated over the Window Length. This value is then added to and subtracted from the average to form dynamic upper and lower bands, visually framing the range of deviation.
Distance Ratios and Z-Scores: Two distance ratios are computed: dist_r = distance / price (sensitivity to volatility); dist_v = price / distance (sensitivity to compression or low-volatility states)
Both ratios are normalized using a Z-score to standardize their behavior and allow for easier interpretation across different assets and timeframes.
Z-Score Plots: Z_r (white line) highlights instances of high volatility or strong price deviation; Z_v (red line) highlights low volatility or compressed price ranges.
Background Highlighting (Optional): When Z_v is dominant and increasing, the background is colored using a gradient. This signals a possible build-up in low volatility, which may precede a breakout.
Use Cases
Detect volatile expansions and calm compression zones.
Identify mean reversion setups when price returns to the average.
Anticipate breakout conditions by observing rising Z_v values.
Use dynamic distance bands as adaptive support/resistance zones.
Notes
The indicator is best used with liquid assets and medium-to-long windows.
Background coloring helps visually filter for squeeze setups.
Disclaimer
This indicator is provided for speculative analysis and educational purposes only. It is not financial advice. Always backtest and evaluate in a simulated environment before live trading.
TradeJorno - Time + Price Levels
Tired of manually drawing and updating important ICT or SMC time and price levels on your charts every day?
Here’s an indicator to draw important TIME and PRICE levels automatically.
Here’s what you can highlight in realtime on your charts:
1. Previous major highs and lows
⁃ Previous daily and weekly highs and low
- Weekly dividing lines
2. Session highs/lows
⁃ Plot the high and low of Asia and London sessions.
⁃ Customise the timeframe and appearance on the chart.
- Previous session settlement price.
3. Various price levels
⁃ Pre-market opening prices : midnight, 7:30 and 8:30
⁃ Regular market opening prices: 9:30, 10:00, 14:00
- end of session settlement prices
4. Market opening range high and low
⁃ Lines extending throughout the current session
⁃ Customise the timeframe and appearance on the chart.
5. ICT Macro times
- Draw customisable vertical lines and labels to indicate the start of each ICT macro
period.
Let us know in the comments below if there’s anything else we need to add!
Green Candle Buy Signal with Target Confirmationthis is fantastic signal for buy and sell .
simple strategy works in this market,
Scalping Edge StrategyScalping Edge Strategy
Major exchanges: OKX, KuCoin, Bybit
Trading Checklist
- Is volatility and liquidity present?
- Are indicators aligned?
- Is entry clean?
- Is SL/TP defined before entry?
Pair TradingPAIR TRADING
Description:
This indicator is a simple and intuitive tool for rotating between two assets based on their relative price ratio. By comparing the prices of Asset A and Asset B, it plots a “ratio line” (gray) with dynamic upper and lower boundaries (red and blue).
When the ratio reaches the red line, Asset A is expensive → rotate out of A and into B.
When the ratio touches the blue line, Asset A is cheap → rotate back into A.
The chart also shows:
🔹 Background highlights for visual cues
🔹 “Rotate to A” or “Rotate to B” markers for easy decisions
🔹 A live summary table with mean ratio, upper/lower boundaries, and current ratio
How to Use:
Select Asset A and Asset B in the settings.
Adjust the Lookback Period and Threshold if needed.
Watch the gray ratio line as it moves:
Above red line? → Consider rotating into B
Below blue line? → Consider rotating into A
Use the background color changes and rotation labels to spot clear rotation opportunities!
Why Pair Trading?
Pair trading is a powerful way to manage a portfolio because it neutralizes market direction risk and focuses on relative value.
By rotating between correlated assets, you can:
Smooth out returns
Avoid holding a weak asset too long
Capture reversion when assets diverge too far
This approach can enhance risk-adjusted returns and help keep your portfolio balanced and nimble!
How to Pick Pairs:
Choose assets with strong correlation or similar drivers.
Look for common trends (sector, macro).
Start with assets you know best (high-conviction ideas).
Make sure both have good liquidity for reliable trading!
TO HELP FIND CORRELATED ASSETS:
Use the Correlation Coefficient indicator in TradingView:
Click Indicators
Search for “Correlation Coefficient”
Add it to your chart
Input the symbol of the second asset (e.g., if you’re on MSTR, input TSLA).
This plots the rolling correlation coefficient — super helpful!
Pair trading can turn big swings into steady rotations and help you stay active even when the market is choppy. It’s a simple, practical approach to keep your portfolio balanced.
EMA 5 & E 20 Cross [Dr.K.C.Prakash]📊 Indicator Name:
EMA 5 & E 20 Cross
🧠 Concept:
This is a trend-following indicator built on the concept of Exponential Moving Average (EMA) crossovers, specially optimized for 1-minute intraday trading. It is designed to eliminate noise and provide accurate BUY and SELL signals during strong, sustained market trends — not during minor or choppy price moves.
⚙️ How It Works:
🔹 EMAs Used:
EMA 5: A short-term exponential moving average to quickly track price momentum.
EMA 20: A medium-term exponential moving average to act as a smoother trend anchor.
🔹 Signal Logic:
Buy Signal:
Triggered when EMA 5 stays above EMA 20 for a specified number of consecutive candles (default: 3).
This confirms a sustained bullish crossover.
A green label with "BUY" appears below the bar.
Sell Signal:
Triggered when EMA 5 stays below EMA 20 for the same number of consecutive candles.
This confirms a sustained bearish crossover.
A red label with "SELL" appears above the bar.
🧹 Noise Reduction:
Filters out fakeouts or “whipsaws” by requiring that the crossover condition persists for a number of bars (minTrendBars).
Greatly improves signal reliability, especially on 1-minute timeframes, where price action is volatile.
📈 Visual Elements:
Orange Line: EMA 5
Blue Line: EMA 20
Green “BUY” label: Below candle when bullish trend confirms
Red “SELL” label: Above candle when bearish trend confirms
✅ Ideal Use Case:
Intraday trading
1-minute timeframe
Traders who want to catch longer trends and ignore short-term fluctuations
🔧 Customizable Inputs:
Short EMA Length: Default 5 (can be changed)
Long EMA Length: Default 20 (can be changed)
Min Bars to Confirm Trend: Default 3 (defines how long crossover must persist to count as a valid signal)
🛠️ Add-On Ideas (Optional Enhancements):
Would you like to add any of the following?
📢 TradingView alerts (Buy/Sell notifications)
🔁 Re-entry signals in same trend direction
📊 Combine with Volume filter or ATR breakout confirmation
Market Pulse ProMarket Pulse Pro (Pulse‑X) — User Guide
Market Pulse Pro, also known as Pulse‑X, is an advanced momentum indicator that combines SMI, Stochastic RSI, and a smoothed signal line to identify zones of buying and selling strength in the market. It is designed to assess the balance of power between bulls and bears with clear visualizations.
How It Works
The indicator calculates three main components:
SMI (Stochastic Momentum Index) – measures price position relative to its recent range.
Stochastic RSI – captures overbought/oversold extremes of the RSI.
Smoothed Signal Line – based on closing price, smoothed using various methods (such as HMA, EMA, etc.).
Each component is normalized to create two final values:
Bull Herd (Buying Strength) – green line.
Bear Winter (Selling Strength) – red line.
Interpretation
Bull Herd (high green values): Bulls dominate the market. May indicate the start or continuation of an uptrend.
Bear Winter (high red values): Bears dominate. May indicate reversal or continuation of a downtrend.
Convergence around 50%: Market is balanced. Signals are weaker or indecisive.
Tip: Combine with price action analysis or support/resistance levels to confirm entries.
Customizable Settings
You can adjust:
SMI Period, Smooth K, and D – control the sensitivity of the SMI.
RSI Period – sets the RSI calculation window.
Signal Period – period for the price-based signal line.
Smoothing Methods – choose between HMA, EMA, WMA, JMA, SMMA, etc.
Line Width – thickness of the plotted lines.
Note: The JMA (Jurik Moving Average) used in this script is not the original proprietary version.
It is a custom public version, based on open-source code shared by the TradingView community.
The original JMA is copyrighted and owned by Jurik Research.
How to Use It in Practice
Buy Entries
When the green Bull Herd line crosses above 60 and the red Bear Winter line falls below 40.
Entry is more reliable if the green line is rising steadily.
Sell Entries
When the red Bear Winter line crosses above 60 and the green Bull Herd line falls.
Signals are stronger when there is a clear crossover and divergence between the two lines.
Avoid trading near the neutral zone (~50%), where the market shows indecision.
Additional Tips
Combine with volume analysis or reversal candlestick patterns for higher accuracy.
Test different smoothing methods: HMA is more responsive, SMMA is smoother and slower.
Liquidity Engulfing (Nephew_Sam_)🔥 Liquidity Engulfing Multi-Timeframe Detector
This indicator finds engulfing bars which have swept liquidity from its previous candle. You can use it across 6 timeframes with fibonacci entries.
⚡ Key Features
6 Customizable Timeframes - Complete market structure analysis
Smart Liquidity Detection - Finds patterns that sweep liquidity then reverse
Real-Time Status Table - Confirmed vs unconfirmed patterns with color coding
Fibonacci Integration - 5 customizable fib levels for precise entries
HTF → LTF Strategy - Spot reversals on higher timeframes, enter on lower timeframe fibs
📈 Engulfing Rules
Bullish: Current candle bullish + previous bearish + current low < previous low + current close > previous open
Bearish: Current candle bearish + previous bullish + current high > previous high + current close < previous open
Gaps cerca de cerrarseThis script identifies price gaps that are still open and highlights only those that are close to being filled — within 10% of the original gap size. It draws horizontal lines at the previous day's close (gap reference level) and labels them when the current price is approaching gap closure. Useful for gap traders who want to focus on actionable setups with high likelihood of completion.
XAU Currency Strength Indexxau CORRELTATION
Composite strength index of gold against non-USD currencies
TeeLek-HedgingRibbonIf we are DCA some assets and it happens to be in a downtrend, sitting and waiting is the best way, but it is not easy to do. There are other ways that allow us to buy DCA and keep collecting more. While the market is falling, don't be depressed. The more you buy, the more it drops. Should you continue buying? Plus, if it goes back to an uptrend, you will also get extra profit. Let's go check it out.
ถ้าเรา DCA ทรัพย์สินอะไรซักอย่างนึงอยู่ แล้วมันดันเป็นขาลงพอดี จะนั่งรอเฉยๆ เป็นวิธีที่ดีที่สุด แต่ไม่ได้ทำกันได้ง่ายๆ นะ ยังมีวิธีอื่นอีก ที่ให้เราสามารถ ซื้อ DCA เก็บของเพิ่มได้เรื่อยๆ ระหว่างที่ตลาดร่วง ไม่จิตตก ยิ่งซื้อ ยิ่งลง จะซื้อต่อดีไหม? แถมถ้า กลับมาเป็นขาขึ้น ยังมีกำไรแถมให้ด้วยนะ ไปหาดูกัน
SMA 5 & 50 Up and Down VisualisationIntroducing the TomTurboInvest TTI_SMA_5/50 Indicator – a powerful tool designed to identify short- and mid-term trends with ease. The indicator highlights upward and downward movements, visually supported by background colors for clearer trend recognition.
If both SMA5 and SMA50 are upwards the background is colored in green
If both SMA5 and SMA50 are downwards the background is colored in red
Volume Profile - EdzVolume Profile – Edz is a lightweight indicator that identifies the top high-volume price levels over a recent range of candles, using customizable price binning (priceStep) and lookback length. It highlights the top N volume clusters with horizontal lines, labels, and strength-based star ratings (★–★★★), and displays a compact summary table showing price, volume, and relative strength. Optimized for intraday and short-term trading, this tool updates only on the latest bar for maximum performance and is ideal for spotting volume-based support, resistance, and high-confluence trading zones.
Blue Whale Trade StrategyThe Blue Whale Trade Strategy indicator determines the current support/resistance levels of the parity based on candle movements and keeps them constantly updated for the last 301 candles.
Blue Whale Trade Strategyİlgili indikatör, paritenin son 301 mumunu tarar ve oluşmuş destek/direnç fiyatlarını paylaşır.
Gold $15 Trend Continuation Alert🔔 Gold $15 Trend Continuation Alert (EMA Filtered)
This script helps identify high-probability trend continuation setups on XAUUSD (Gold), using price action + EMA confluence.
🔹 Logic:
Detects a $15+ directional move in the past hour
Confirms shallow pullback (<33%)
Price must align with EMA13, EMA50, and EMA200 in the same direction
Plots a single BUY (green label) or SELL (red label) alert only once per move
Includes visual EMA overlay
✅ Buy Conditions:
Price has risen $15 from local low
Pullback is shallow
Price is above all 3 EMAs
✅ Sell Conditions:
Price has dropped $15 from local high
Pullback is shallow
Price is below all 3 EMAs
Use this with caution on volatile news days. Best suited during trending London/NY sessions.
EMA20-EMA50 DifferenceThe indicator shows whether the EMA20 is above or below the EMA50.
If the curve is above the zero line, the EMA20 is above the EMA50.
If the curve is below the zero line, the EMA20 is below the EMA50.
The greater the distance from the zero line is, the further apart the EMA20 and EMA50 are.