Indicatori e strategie
Options Trading ConfirmationPine Script strategy for TradingView that helps confirm long and short entries for options trading. It uses moving averages, RSI, and volume confirmation to generate signals. The script highlights potential buy (long) and sell (short) opportunities with visual markers on the chart.
This script is written in Pine Script v5 and includes adjustable settings for customization.
Motivational Text TableRelease Notes - Motivational Text Table Indicator v1.0
Standalone Indicator:
A new, standalone Pine Script v6 indicator that displays a motivational text table directly on the chart.
Customizable Text:
Users can set their own motivational message through the "Custom Motivational Text" input.
Configurable Appearance:
Change the text color and background color of the table.
Adjust the text size by choosing from "tiny", "small", "normal", "large", or "huge".
Select the table’s position on the chart from multiple preset locations (e.g., top_left, middle_center, bottom_right, etc.).
Static Display:
The table is drawn on the last bar, ensuring that the motivational text remains static during realtime updates.
User-Friendly Design:
The interface is simple and easy to customize, making it perfect for users who need a daily dose of motivation directly on their TradingView charts.
Enjoy your motivational boost on every chart!
Multi-Timeframe Optimized MACD [ClémentCrypto]An optimized MACD with specific parameters for each timeframe, based on extensive market analysis.
Key Features:
• Optimized presets for 1H, 4H, 1D, 1W, 2W
• Customizable mode with adjustable parameters
• Clear visual signals with modern color scheme
• Trading options: Long Only, Short Only, Both Directions
• Integrated alert system for each timeframe
• User-friendly interface with dashboard
Optimized Parameters by Timeframe:
1H: 11/38/27
4H: 9/98/27
1D: 45/90/29
1W: 9/16/3
2W: 5/20/5
🎯 Recommended Usage:
• Select your preferred timeframe
• Choose your trading direction
• Enable alerts according to your needs
• Monitor MACD/Signal crossovers
⚠️ Note: This indicator should be used with other analysis tools for better results.
Happy Trading! 📈
Market Reverse//@version=6
strategy("Custom Algo with SMA Distance Condition", overlay=true)
// Input parameters
sma_20 = ta.sma(close, 20)
sma_200 = ta.sma(close, 200)
// Calculate distances
price_to_sma20 = close - sma_20
sma20_to_sma200 = sma_20 - sma_200
// Green Signal Condition: Price is 3x to 5x ABOVE 20 SMA vs. 200 SMA
green_signal = price_to_sma20 >= (3 * math.abs(sma20_to_sma200)) and price_to_sma20 <= (5 * math.abs(sma20_to_sma200))
// Red Signal Condition: Price is 3x to 5x BELOW 20 SMA vs. 200 SMA
red_signal = price_to_sma20 <= (-3 * math.abs(sma20_to_sma200)) and price_to_sma20 >= (-5 * math.abs(sma20_to_sma200))
// Plot Green and Red Signals
plotshape(series=green_signal, location=location.abovebar, color=color.green, style=shape.triangleup, title="Green Signal")
plotshape(series=red_signal, location=location.belowbar, color=color.red, style=shape.triangledown, title="Red Signal")
Quantum Precision Forex Strategy//@version=5
strategy("Quantum Precision Forex Strategy", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=10)
// Input parameters
atrLength = input(14, "ATR Length")
atrMultiplier = input(2.0, "ATR Multiplier")
riskRewardRatio = input(3, "Risk-Reward Ratio")
confirmationLength = input(10, "Confirmation Period")
// ATR Calculation
aTR = ta.atr(atrLength)
stopLoss = atrMultiplier * aTR
takeProfit = stopLoss * riskRewardRatio
// Custom Quantum Confirmation Indicator
momentum = ta.mom(close, confirmationLength)
volatility = ta.stdev(close, 20) > ta.sma(ta.stdev(close, 20), 50)
trendStrength = ta.ema(close, 20) > ta.ema(close, 50)
confirmationSignal = momentum > 0 and volatility and trendStrength
// Entry Conditions
longCondition = confirmationSignal and ta.crossover(ta.ema(close, 10), ta.ema(close, 30))
shortCondition = not confirmationSignal and ta.crossunder(ta.ema(close, 10), ta.ema(close, 30))
if (longCondition)
strategy.entry("Quantum Long", strategy.long)
strategy.exit("Quantum Exit Long", from_entry="Quantum Long", stop=close - stopLoss, limit=close + takeProfit)
if (shortCondition)
strategy.entry("Quantum Short", strategy.short)
strategy.exit("Quantum Exit Short", from_entry="Quantum Short", stop=close + stopLoss, limit=close - takeProfit)
// Neural Adaptive Trendlines
trendlineShort = ta.linreg(close, 10, 0)
trendlineLong = ta.linreg(close, 50, 0)
plot(trendlineShort, title="Short-Term Trendline", color=color.blue, linewidth=2)
plot(trendlineLong, title="Long-Term Trendline", color=color.red, linewidth=2)
// AI-Inspired Market Sentiment Indicator
marketSentiment = ta.correlation(ta.ema(close, 10), ta.ema(close, 50), 20)
plot(marketSentiment, title="Market Sentiment", color=color.green)
TIS 1. atlest 35% up from their low
2. going up with volume
3. correct a bit but without volume
4. small consolidation near the high
Weekly Stochastic RSI Trend Reversal with PriceSmall script to indicate trend reversals in the weekly stoch RSI, with added price indication.
BTC 4H 综合策略趋势过滤:
仅当MA金叉(20周期上穿60周期)且MACD柱状图转正时,才考虑多头信号
反向逻辑用于空头信号
震荡信号增强:
在趋势信号基础上,要求价格触及布林带下轨(超卖)且RSI<30才会触发买入
同理,价格触及布林带上轨(超买)且RSI>70触发卖出
动态风险管理:
使用ATR计算动态止损(1.5倍ATR)
止盈设置为固定3倍ATR(可改为移动止盈)
Dérivée seconde + cadran (pour l'inflation)Dérivée seconde + cadran (pour l'inflation)
En ce qui concerne l'inflation ce qui compte pour les marchés financiers ce n'est pas l'inflation moyenne c'est les variations de cette inflation ; ce qui l'intéresse est donc la dérivée seconde. (La variation du taux d'inflation).
Ensuite on prend une formule mathématique ou il compare l'inflation sur les deux dernières années à l'inflation sur les dix dernières années. Si l’inflation accélère de deux ans sur dix ans alors nous sommes dans les deux cadrans du haut.
POC-Candle - EMA -ATR - Long Shadow - 50per Candle* For those who have paid for Soli trader Strategies
- Display the POC of each candle
- EMA indicator
- Donchian Channel indicator
- Identify 50% candles
- Identify candles with long shadows
- Candles with high volume compared to the past candles
- Display spike movement candles (ATR)
tg : @mk8813
Strategy: Daily MAs + OBVEssa minha estrategia envolve use de medias moveis de 9, 20, 200 e o On balance Volume, tudo para teste.
Muito obrigado!
PRC-ALMA | QuantEdgeBIntroducing PRC-ALMA by QuantEdgeB
Overview
The PRC-ALMA (Percentile Adaptive ALMA) is an advanced dynamic trend and volatility filtering indicator that leverages the Arnaud Legoux Moving Average (ALMA) combined with Percentile Rank Filtering and Median Absolute Deviation (MAD) Bands. It is designed to enhance market structure clarity, detect breakout zones, and provide trade signals by dynamically adjusting its filtering based on recent price action.
____
Key Features
1. 📈 Adaptive ALMA Smoothing:
- Uses ALMA for smoothing price action while reducing lag.
- Provides a more responsive moving average than traditional EMAs and SMAs.
2. 📊 Percentile Rank-Based Thresholds:
- Determines upper and lower regions using 75th and 25th percentile ranks.
- Allows for adaptive thresholding based on historical price movements.
3. 🎯 Median Absolute Deviation (MAD) Volatility Filtering:
- Filters out noise using robust statistical deviation measures.
- MAD Bands dynamically adjust based on volatility expansion and contraction.
4. 🔄 Dynamic Trade Signals:
- Generates long signals when price exceeds the upper threshold.
- Generates short signals when price drops below the lower threshold.
5. 🎨 Customizable Color Modes & Visual Enhancements:
- Choose between multiple color schemes to match trading preferences.
- Optional candlestick coloring to indicate market sentiment shifts.
____
How It Works
1. ALMA Calculation:
- The indicator starts by computing the ALMA (Arnaud Legoux Moving Average) with a customizable length, offset, and sigma.
2. Percentile Rank Filtering:
- It then calculates the 75th and 25th percentile ranks over a selected period, determining dynamic levels for trend identification.
3. Volatility Adjustment Using Median Absolute Deviation (MAD):
- MAD is applied to filter noise and adapt the upper/lower bands based on market volatility.
- The higher the MAD multiplier, the wider the bands, allowing more price fluctuations before a signal triggers.
4. Entry & Exit Conditions:
- Long Entry: When price crosses above the upper percentile band + MAD filter.
- Short Entry: When price crosses below the lower percentile band - MAD filter.
5. Visual Enhancements:
- Dynamic band plotting with shading between percentile ranks.
- Candlestick coloring to visually indicate long/short sentiment shifts.
____
Practical Applications
✅ Trend Following & Momentum Trading – Uses ALMA for trend smoothing and percentile-based breakouts.
✅ Mean Reversion Strategies – Adaptive MAD filtering ensures only significant deviations trigger signals.
✅ Multi-Timeframe Trading – Works on intraday, daily, and weekly timeframes based on user customization.
✅ Noise Reduction – Eliminates minor fluctuations while capturing meaningful market moves.
____
🛠 Settings
-ALMA Length: 24 – Defines the smoothing period for the Arnaud Legoux Moving Average.
-ALMA Offset: 0.7 – Adjusts the shift factor, controlling responsiveness.
-ALMA Sigma: 4 – Determines the smoothing strength, balancing trend-following and noise reduction.
-Percentile Length: 21 – Lookback period for calculating percentile rank levels.
-Median Period: 21 – The period used for the Median Absolute Deviation (MAD) filter.
-Median Multiplier: 1.8 – Adjusts the sensitivity of the MAD filter, impacting how signals are generated.
-Color Mode: Strategy – Various visual themes available for better chart readability.
-Signal Label: Off - If turned off the indicator produced a Long or Cash signal when the trend changes.
📌 Conclusion
The PRC-ALMA | QuantEdgeB is an advanced valuation and signal generation tool that dynamically adjusts based on market conditions. By combining ALMA for trend smoothing, percentile rank thresholds, and MAD-based volatility filtering, it provides traders with a versatile indicator for momentum, breakout, and mean reversion strategies.
Key Takeaways:
✔ Smooth & Adaptive – ALMA ensures minimal lag while maintaining trend responsiveness.
✔ Dynamic Overbought/Oversold Zones – Adjusts to real-time market conditions using percentile-based bands.
✔ Volatility-Aware Filtering – Uses MAD to eliminate market noise, making signals more reliable.
✔ Customizable & Multi-Timeframe Ready – Works on various asset classes and timeframes with adjustable settings.
🔹 Disclaimer: Past performance is not indicative of future results. No trading strategy can guarantee success in financial markets.
🔹 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
Toby's Key LevelsAn Indicator that helps determine Key Areas on the chart. You set the values you want the horizontal lines to update. They horizontal lines will be used for exits and entries of trade. My recommendation for these Key Areas are as follows ( These recommendations are mostly for day trading and swing trading ):
XAU: Value distance of 50 ex. XAUUSD.
NAS: Value distance of 250 ex. NAS100/USTEC.
ETH: Value distance of 100 ex. ETHUSD.
AUD pairs: Value distance of 0.0200 ex. GBPAUD, EURAUD.
CAD pairs: Value distance of 0.0100 ex. NZDCAD, EURCAD.
CHF pairs: Value distance of 0.0100 ex. CADCHF, GBPCHF.
GBP pairs: Value distance of 0.00350 ex. EURGBP.
JPY pairs: Value distance of 2.00 ex. EURJPY, GBPJPY.
NZD pairs: Value distance of 0.015 ex. GBPNZD, AUDNZD.
Note:
These are subject to change and you can alter the lines anyhow you want to suit your trading style. These are what I recommend. Remember, Market is King.
Safe Trading!
1-min Buy/Sell SignalsBuy signal: RSI below 30 and a bullish EMA crossover (short EMA crosses above long EMA).
Sell signal: RSI above 70 and a bearish EMA crossover (short EMA crosses below long EMA).
Adjustable RSI and EMA periods for adaptation to different market conditions.
Visual signals (arrows and background color) to clearly indicate buy and sell signals.
Price Gap IndicatorJump Candle Indicator (Price Gap Only)
📌 Version: Pine Script v6
📌 Purpose: Detects significant price gaps between consecutive candles to identify potential trading opportunities.
📖 Overview
The Jump Candle Indicator highlights moments when the market experiences a sudden price jump, either up or down, due to overnight moves, news releases, or increased volatility.
It works by detecting candles where the opening price differs significantly from the previous closing price by a set threshold.
Unlike traditional momentum indicators, this script focuses purely on price gaps, making it ideal for traders who want to identify potential breakout zones or market inefficiencies.
⚙️ How It Works
User-Defined Threshold – Set a minimum price gap (default: $0.50).
Gap Up Condition – A candle is considered bullish if:
The current open is higher than the previous close by the defined threshold.
The candle closes higher than it opens (bullish candle).
Gap Down Condition – A candle is considered bearish if:
The current open is lower than the previous close by the defined threshold.
The candle closes lower than it opens (bearish candle).
Large Arrow Alerts –
Green Upward Triangle (📈) appears below bullish jump candles.
Red Downward Triangle (📉) appears above bearish jump candles.
🛠️ Customization
Price Gap Threshold ($): Adjust the gap size to detect smaller or larger jumps.
Visual Signals: Large green and red triangles for clear trade signals.
🎯 How to Use
✅ Breakout Traders – Spot potential trend continuations after a gap.
✅ Mean Reversion Traders – Identify overextended price movements that may revert.
✅ News/Event Traders – Track market reactions after earnings, reports, or major news.
🚨 Note: This indicator is best used with additional confirmation signals (volume, support/resistance levels, or trend analysis).
RSI & MACD Combinado NGonzEste indicador en Pine Script v6 para TradingView combina el RSI y el MACD en un solo panel. El RSI muestra el momentum con una línea púrpura, bandas de 70 (sobrecompra) y 30 (sobreventa) en gris, y un área sombreada. El MACD incluye una línea azul, una línea de señal naranja, y un histograma colorido (verde/rojo) para momentum, con línea cero en gris, escalado por 1000 para mayor visibilidad. Ambos son altamente personalizables y perfectos para analizar tendencias y momentum en trading.
Liquidation Cascade Strategy by billyLes liquidations extrêmes sur Bitcoin sont des moments rares où le marché révèle ses excès. AegisTide Pro est le premier algorithme qui capture scientifiquement ces paniques pour en faire votre allié, tout en protégeant vos gains avec une stratégie de sortie intelligente.
Bitcoin Halving Dates by cryptanski//@version=5
indicator("Bitcoin Halving Dates", overlay=true)
// Даты халвингов
halving_dates = array.new_int()
array.push(halving_dates, timestamp(2012, 11, 28, 0, 0))
array.push(halving_dates, timestamp(2016, 7, 9, 0, 0))
array.push(halving_dates, timestamp(2020, 5, 11, 0, 0))
array.push(halving_dates, timestamp(2024, 4, 20, 0, 0)) // будущий халвинг
// Отображение линий
for i = 0 to array.size(halving_dates) - 1
line.new(x1=array.get(halving_dates, i), y1=high, x2=array.get(halving_dates, i), y2=low, width=2, color=color.blue, style=line.style_dashed)
label.new(array.get(halving_dates, i), high, "Halving", color=color.white, size=size.small, textcolor=color.blue, style=label.style_label_down)
Merged Normal & Smoothed Heikin Ashi CandleI want to show normal candle stick work with smoothed heikiashi candle work together to under stand in trading situation how entery can be identified .
Dee Scalping Strategy for SPY with VWAPThe script you have is already designed to work on any timeframe, including the 1-minute timeframe, as the indicator functions (like EMA, RSI, and VWAP) will adjust to the 1-minute chart data.
However, if you want to ensure the script runs optimally for 1-minute scalping, I’ll make sure it explicitly focuses on 1-minute operations and clarify some small adjustments for better 1-minute scalping performance:
Timeframe Consideration: Since it's for scalping, the strategy should respond quickly to price movements and should not have delays from the calculations.
Remove Unnecessary Long-Term Inputs: The script is designed for short-term (1-minute) trades, so we'll keep things minimal and adjust the inputs for the most efficient 1-minute timeframe trading.
Marubozu & Engulfing Analyzer with History//@version=5
indicator("Marubozu & Engulfing Analyzer with History", overlay=true, shorttitle="ME-History", precision=2)
// ———— 1. Inputs ————
int lookbackPeriod = input.int(50, "Historical Analysis Period", minval=20)
int trendPeriod = input.int(200, "Trend EMA Period", minval=50)
float volumeMultiplier = input.float(1.5, "Volume Threshold", step=0.1)
// ———— 2. Historical Context Variables ————
var float bullishSuccessRate = na
var float bearishSuccessRate = na
var int marubozuCount = 0
var int engulfingCount = 0
// ———— 3. Core Pattern Detection ————
// Marubozu (100% body, no wicks)
bullishMarubozu = (high == close) and (low == open) and (close > open)
bearishMarubozu = (high == open) and (low == close) and (close < open)
// Engulfing (daily resolution for accuracy)
prevOpen = request.security(syminfo.tickerid, "D", open )
prevClose = request.security(syminfo.tickerid, "D", close )
bullishEngulfing = (close > open) and (prevClose < prevOpen) and
(open < prevClose) and (close > prevOpen) and
(volume > ta.sma(volume, 20) * volumeMultiplier)
bearishEngulfing = (close < open) and (prevClose > prevOpen) and
(open > prevClose) and (close < prevOpen) and
(volume > ta.sma(volume, 20) * volumeMultiplier)
// ———— 4. Trend & Historical Analysis ————
trendEMA = ta.ema(close, trendPeriod)
isUptrend = close > trendEMA
// Analyze past pattern performance
if bullishMarubozu or bullishEngulfing
marubozuCount += 1
success = close > close ? 1 : 0 // Check if price rose within 5 bars
bullishSuccessRate := (na(bullishSuccessRate) ? success : (bullishSuccessRate*0.9 + success*0.1))
if bearishMarubozu or bearishEngulfing
engulfingCount += 1
success = close < close ? 1 : 0 // Check if price fell within 5 bars
bearishSuccessRate := (na(bearishSuccessRate) ? success : (bearishSuccessRate*0.9 + success*0.1))
// ———— 5. Generate Filtered Signals ————
buySignal = (bullishMarubozu or bullishEngulfing) and isUptrend and (bullishSuccessRate > 0.65)
sellSignal = (bearishMarubozu or bearishEngulfing) and not isUptrend and (bearishSuccessRate > 0.65)
// ———— 6. Visual Output (Fixed Style Parameters) ————
plotshape(buySignal, title="Buy", location=location.belowbar,
color=color.green, style=shape.triangleup, size=size.small) // ✅ Valid style: triangleup
plotshape(sellSignal, title="Sell", location=location.abovebar,
color=color.red, style=shape.triangledown, size=size.small) // ✅ Valid style: triangledown
// ... (rest of the code remains unchanged)
Liquidity Grab and Order Block StrategyHi this is good and better stretegy try once and share your reviews