Patrones de gráficos
PriorRange v0.3 [OmarxQQQ/dc_77]PriorRangeLevels is a versatile indicator that plots key price levels based on prior period ranges across multiple timeframes. This tool helps traders identify potential support, resistance, and breakout zones by displaying the High, Low, 75%, 50% (EQ), and 25% levels from the previous period.
Key Features:
- Multi-timeframe analysis from 1-minute to Monthly charts
- Time zone flexibility with options for major global markets (NYC, London, Tokyo, etc.)
- Customizable display for each level (High, Low, 75%, EQ, 25%, Open)
- Clean, organized settings interface with grouped options
- Anchor line marking the start of prior periods
- Current period open price reference
How It Works:
The indicator detects new periods based on your selected timeframe and calculates the range of the previous period. It then plots horizontal lines at the High, Low, and three internal levels (75%, 50%, 25%) extending forward by your specified number of bars. These levels serve as potential support/resistance zones and decision points for your trading strategy.
Trading Applications:
- Use High/Low levels as potential breakout targets or reversal zones
- Monitor price reaction to the EQ (50%) level to gauge trend strength
- Identify intraday support/resistance based on previous period ranges
- Plan entries and exits around established market structure
Each component can be individually customized with different line styles, colors, and widths to match your chart preferences and analytical needs.
Originally created by @dc_77 with enhanced organization, multi-timeframe capabilities, and improved user interface. As Requested by many people.
populi a populo pro populo
GLGT
Scalping Strategy//@version=5
strategy("Scalping Strategy", overlay=true)
// Indicators
ma50 = ta.sma(close, 50)
ema20 = ta.ema(close, 20)
ema200 = ta.ema(close, 200)
rsi = ta.rsi(close, 14)
osc = ta.stoch(close, high, low, 14)
vol = volume
// Trend Confirmation
bullishTrend = ema20 > ema200 and close > ma50
bearishTrend = ema20 < ema200 and close < ma50
// RSI Divergence Detection
rsiOverbought = rsi > 70
rsiOversold = rsi < 30
// Oscillator Confirmation
oscBull = osc < 20
oscBear = osc > 80
// Volume Confirmation
highVolume = vol > ta.sma(vol, 20)
// Entry Conditions
buySignal = bullishTrend and rsiOversold and oscBull and highVolume
sellSignal = bearishTrend and rsiOverbought and oscBear and highVolume
// Execute Trades
if buySignal
strategy.entry("Buy", strategy.long)
if sellSignal
strategy.entry("Sell", strategy.short)
// Plot indicators
plot(ma50, color=color.blue, title="MA 50")
plot(ema20, color=color.green, title="EMA 20")
plot(ema200, color=color.red, title="EMA 200")
Merged Trading Script [BigBeluga]Merger Of two pole oscillator and Volumatic variable dynamic average to create perfect sell and buy signals
Ultimate Gold Trading StrategyAdaptive ATR-based Stop-Loss & Take-Profit
✔ Fair Value Gap (FVG) detection for Smart Money trading
✔ 200 EMA Trend Filter to avoid counter-trend trades
✔ Exit trades when SuperTrend flips direction
✔ Multi-Timeframe (4H) SuperTrend confirmation
🔥 These refinements will make your indicator even more powerful and reduce false signals!
Would you like me to implement these changes in your script? 🚀
You said:
ok add all
ChatGPT said:
Edited
✅ Ultimate Gold Trading Strategy Fully Optimized! 🚀🔥
🎯 New Enhancements Added:
1️⃣ ✅ ATR-Based Adaptive Stop-Loss & Take-Profit
Dynamic SL/TP adjusts to market volatility instead of a fixed percentage.
2️⃣ 📈 Fair Value Gap (FVG) Detection
Detects Smart Money price inefficiencies for better trade accuracy.
3️⃣ 📊 200 EMA Trend Filter
Prevents counter-trend trades, ensuring higher probability trades.
4️⃣ ⏳ Multi-Timeframe SuperTrend Confirmation (4H)
Aligns lower timeframe trades with a higher timeframe trend.
5️⃣ 🔄 Exit Trade on Trend Reversal
Closes position if SuperTrend flips, locking in profits before reversals.
✅ Final Strategy Flow:
✔ Buy Conditions:
SuperTrend is bullish
MACD crosses up
Order Block confirmation
RSI is oversold (<30)
Volume above SMA
Price above 200 EMA
Fair Value Gap confirmation
Higher timeframe (4H) SuperTrend is bullish
✔ Sell Conditions:
SuperTrend is bearish
MACD crosses down
Order Block confirmation
RSI is overbought (>70)
Volume above SMA
Price below 200 EMA
Fair Value Gap confirmation
Higher timeframe (4H) SuperTrend is bearish
✔ Exit Strategy:
When the trend reverses (SuperTrend flips direction).
📌 How to Use in TradingView
Copy & Paste this script into Pine Editor.
Click Add to Chart.
Enable Buy/Sell Alerts for auto notifications.
🚀 This strategy is now optimized for HIGH ACCURACY and SMART MONEY TRADING! 🔥
Would you like any further modifications or improvements? 💡
You said:
Invalid assignment. Cannot assign a tuple to a variable 'htfSuperTrend'. error comes
ChatGPT said:
Edited
I've fixed the invalid assignment issue by correctly extracting the SuperTrend and direction from the higher timeframe (4H) request.
🔧 Fix Implemented:
Changed:
pinescript
Copy
htfSuperTrend = request.security(syminfo.tickerid, "4H", ta.supertrend(multiplier, atrLength))
(which caused an error)
To:
pinescript
Copy
= request.security(syminfo.tickerid, "4H", ta.supertrend(multiplier, atrLength))
htfTrend = htfDirection == 1
(which properly extracts both values from the function)
This should now work without errors. ✅
Let me know if you need further modifications! 🚀🔥
Daily Weekly Monthly Yearly Opens/Highs/LowsCredit to @sbtnc , I just added highs and lows to his script from here:
Range Filter Buy and Sell 5minstudy("폴MACD", overlay=false)
// 폴MACD
lengthMA_MACD = input(34, title="폴MACD Length") // 변수명 변경
lengthSignal = input(9, title="폴MACD Signal Length")
calc_smma(src, len) =>
smma=na(smma ) ? sma(src, len) : (smma * (len - 1) + src) / len
smma
calc_zlema(src, length) =>
ema1=ema(src, length)
ema2=ema(ema1, length)
d=ema1-ema2
ema1+d
src=hlc3
hi=calc_smma(high, lengthMA_MACD) // 수정된 변수명 적용
lo=calc_smma(low, lengthMA_MACD) // 수정된 변수명 적용
mi=calc_zlema(src, lengthMA_MACD) // 수정된 변수명 적용
md=(mi>hi)? (mi-hi) : (mimi?src>hi?blue:blue:src ema(s,l)
wa=sma(src-ma(src, alength), lengthMA_Trend) // 수정된 변수명 적용
wb=sma(src-ma(src, blength), lengthMA_Trend) // 수정된 변수명 적용
wc=sma(src-ma(src, clength), lengthMA_Trend) // 수정된 변수명 적용
wcf=(wb != 0) ? (wc/wb > cutoff) : false
wbf=(wa != 0) ? (wb/wa > cutoff) : false
// 컬럼 색상 변경: 0선 위 파랑, 0선 아래 빨강
plot(wc, color=wc > 0 ? aqua : red, style=columns, linewidth=3, title="WaveC", transp=80)
plot(mse and wcf?wc:na, color=fuchsia, style=columns, linewidth=3, title="Wave Trend", transp=70)
plot(wb, color=wb > 0 ? black : black, style=columns, linewidth=3, title="WaveB", transp=90)
plot(mse and wbf?wb:na, color=fuchsia, style=columns, linewidth=3, title="WaveB Trend", transp=70)
plot(wa, color=wa > 0 ? black : black, style=columns, linewidth=3, title="WaveA", transp=90
Machine Learning + Geometric Moving Average 250/500Indicator Description - Machine Learning + Geometric Moving Average 250/500
This indicator combines password-protected market analysis levels with two powerful Geometric Moving Averages (GMA 250 & GMA 500).
🔒 Password-Protected Custom Levels
Access pre-defined long and short price levels for select assets (crypto, stocks, and more) by entering the correct password in the indicator settings.
Once the correct password is entered, the indicator automatically displays:
Green horizontal lines for long entry zones.
Red horizontal lines for short entry zones.
If the password is incorrect, a warning label will appear on the chart.
📈 Geometric Moving Averages (GMA)
This indicator calculates GMA 250 and GMA 500, two long-term trend-following tools.
Unlike traditional moving averages, GMAs use logarithmic smoothing to better handle exponential price growth, making them especially useful for assets with strong trends (e.g., crypto and tech stocks).
GMA 250 (white line) tracks the medium-term trend.
GMA 500 (gold line) tracks the long-term trend.
⚙️ Customizable & Flexible
Works on multiple assets, including cryptocurrencies, equities, and more.
Adaptable to different timeframes and trading styles — ideal for both swing traders and long-term investors.
This indicator is ideal for traders who want to blend custom support/resistance levels with advanced geometric trend analysis to better navigate both volatile and trending markets.
1-3-1 Detector with LevelsWhen you apply this script to your chart you must do the following to get alerts.
1. Apply to chart
2. Make sure you are on the 12HR time frame on the stock you want to detect the setup
3. Go to alerts and make a new alert with this script and the specific stock. (it will not work with watchlist because the watchlist feature is bugged, so it has to be a specific stock)
4. On the alert UI make sure you click
Condition - 1-3-1 Levels
(under that you will click 1-3-1 setup alert)
Trigger - Once per bar close
Expiration - open ended
5. Make sure not to touch anything else, the code will automatically detect the stock its tracking.
6. Change notifications to what you prefer.
7. Enjoy, at 8pm EST if there is a valid 1 in a 1-3-1 setup it will notify you and give you the levels you need to chart.
Triple EMA with LabelsThis indicator "Triple EMA with Labels", is designed to plot the 8, 21, and 50 period Exponential Moving Averages (EMAs) on the chart. By default, the labels display "8 EMA", "21 EMA", and "50 EMA", positioned slightly above their respective lines for better visibility. Users can customize or remove the label text through the indicator settings, allowing flexibility to suit individual preferences.
Triple Moving Average with LabelsThis indicator "Triple Moving Average with Labels", overlays the 50, 100, and 200 period Simple Moving Averages (SMAs) on the chart and provides customizable floating labels for each line. By default, the labels display "50 MA", "100 MA", and "200 MA", but users can modify or remove the text entirely through the indicator settings. The moving average periods (50, 100, or 200) are also adjustable. The labels are positioned slightly above and to the right of their respective lines for clear visibility.
Forex Power Indicator [FindBetterTrades]The Forex Power Indicator is designed to help traders quickly assess the relative strength and weakness of key forex pairs over a set period.
This tool calculates the percentage change in price over the last 5 days and highlights the strongest and weakest performing pairs in a simple table format.
Features:
Scans 10 major forex pairs (EURUSD, GBPUSD, USDJPY, AUDUSD, NZDUSD, USDCAD, CHFJPY, EURGBP, EURJPY, GBPJPY).
Calculates the percentage change over the last 5 days.
Identifies and labels the strongest and weakest pair based on performance.
Displays results in a customizable table, allowing traders to quickly interpret market trends.
How to Use:
The strongest pair (🟢) indicates the currency with the highest performance in the selected period.
The weakest pair (🔴) shows the currency that has lost the most value.
Alerts feature:
Once you add the script to your chart, go to "Create Alert"
Under "Condition", select "Forex Power Indicator ".
The system will use the messages set in the alert() function.
When triggered, the alert will display the message like:
"New strongest currency pair: USDJPY"
"New weakest currency pair: AUDUSD"
Use this information to spot momentum opportunities, potential reversals, or trend continuations in forex trading.
This indicator is for informational purposes only and should be used alongside other technical analysis tools to support trading decisions.
Xtudo CCAIndicador com 5 ma, 5 ema, banda de Bollinger, nuvens Ichimoku, SuperTrend, vwma, ADX, MFI, RSI, MACD
Engulfing Sweeps - Milana TradesEngulfing Sweeps
The Engulfing Sweeps Candle is a candlestick pattern that:
1)Takes liquidity from the previous candle’s high or low.
2)Fully engulfs previous candles upon closing.
3)Indicates strong buying or selling pressure.
4)Helps determine the bias of the next candle.
Logic Behind Engulfing Sweeps
If you analyze this candle on a lower timeframe, you’ll often see popular models like PO3 (Power of Three) or AMD (Accumulation – Manipulation – Distribution).
Once the candle closes, the goal is to enter a position on the retracement of the distribution phase.
How to Use Engulfing Sweeps?
Recommended Timeframes:
4H, Daily, Weekly – these levels hold significant liquidity.
Personally, I prefer 4H, as it provides a solid view of mid-term market moves.
Step1 - Identify Engulfing Sweep Candle
Step 2-Switch to a lower timeframe (15m or 5m).And you task identify optimal trade entry
Look for an entry pattern based on:
FVG (Fair Value Gap)
OB (Order Block)
FIB levels (0/0.25/0.5/ 0.75/ 1)
Wait for confirmation and take the trade.
Automating with TradingView Alerts
To avoid missing the pattern, you can set up alerts using a custom script. Once the pattern forms, TradingView will notify you so you can analyze the chart and take action. This approch helps me be more freedom
ICT PO3 Indicator This indicator hels to understand the Po3 Strategy. Never rely on it 100%. It is just an indicator.
Hourly Candle ShadingShades the first 15m of the hourly candle and then the second half of it (30-16m). Colors are adjustable.