Sathanand crossoverThis Moving Average Crossover indicator uses two lines:
1️⃣ Short Moving Average (Short MA - Blue Line)
This is the faster moving average (default: 50-period).
It reacts quickly to price changes.
When it crosses above the Long MA → Buy Signal 📈
When it crosses below the Long MA → Sell Signal 📉
2️⃣ Long Moving Average (Long MA - Red Line)
This is the slower moving average (default: 200-period).
It smooths out long-term trends and avoids short-term fluctuations.
Acts as a trend confirmation line—staying above means an uptrend, below means a downtrend.
Buy & Sell Signals:
✅ Green "Up" Arrow (Buy Signal) → Short MA crosses above Long MA → Uptrend starts
✅ Red "Down" Arrow (Sell Signal) → Short MA crosses below Long MA → Downtrend starts
📊 In Short:
The crossover strategy helps identify trend reversals
Useful for trend-following traders
Works well in strong trending markets, but may give false signals in sideways markets
نماذج فنيه
RSI and MACD Buy/Sell Strategy with Signals//@version=5
indicator("RSI and MACD Buy/Sell Strategy with Signals", overlay=true)
// Define RSI and MACD parameters
rsiPeriod = 14
macdShort = 12
macdLong = 26
macdSignal = 9
// Calculate RSI
rsi = ta.rsi(close, rsiPeriod)
// Calculate MACD
= ta.macd(close, macdShort, macdLong, macdSignal)
macdHist = macdLine - signalLine
// Define buy and sell conditions
buyCondition = (rsi < 30) and (macdHist < -7 or macdHist < -8)
sellCondition = (rsi > 60) and (macdHist > 6)
// Plot Buy and Sell signals directly on the main price chart
plotshape(series=buyCondition, location=location.belowbar, color=color.green, style=shape.labelup, title="Buy Signal", text="BUY", textcolor=color.white, size=size.small)
plotshape(series=sellCondition, location=location.abovebar, color=color.red, style=shape.labeldown, title="Sell Signal", text="SELL", textcolor=color.white, size=size.small)
High-Leverage Futures Trading Strategy//@version=5
indicator("High-Leverage Futures Trading Strategy", shorttitle="HL Futures", overlay=true)
// Input Parameters
risk_per_trade = input.float(5, title="Risk per Trade (%)", minval=1, maxval=100)
atr_multiplier = input.float(1.5, title="ATR Stop-Loss Multiplier", minval=0.1, maxval=5)
ema_fast_length = input.int(50, title="Fast EMA Length", minval=1)
ema_slow_length = input.int(200, title="Slow EMA Length", minval=1)
rsi_length = input.int(14, title="RSI Length", minval=1)
macd_fast = input.int(12, title="MACD Fast Length", minval=1)
macd_slow = input.int(26, title="MACD Slow Length", minval=1)
macd_signal = input.int(9, title="MACD Signal Length", minval=1)
// Force 4-Hour Timeframe
is_4h = (timeframe.period == "240")
if not is_4h
label.new(bar_index, high, "Use 4H timeframe", color=color.red, textcolor=color.white, style=label.style_label_down)
// Moving Averages
ema_fast = ta.ema(close, ema_fast_length)
ema_slow = ta.ema(close, ema_slow_length)
// Trend Identification
long_condition = close > ema_fast and ema_fast > ema_slow
short_condition = close < ema_fast and ema_fast < ema_slow
// RSI
rsi = ta.rsi(close, rsi_length)
rsi_long = rsi < 30
rsi_short = rsi > 70
// MACD
= ta.macd(close, macd_fast, macd_slow, macd_signal)
macd_long = ta.crossover(macd_line, signal_line)
macd_short = ta.crossunder(macd_line, signal_line)
// ATR for Stop-Loss
atr = ta.atr(14)
stop_loss_long = close - atr * atr_multiplier
stop_loss_short = close + atr * atr_multiplier
// Volume Confirmation
volume_spike = volume > ta.sma(volume, 20) * 1.5
// Entry Signals
entry_long = long_condition and macd_long and rsi_long and volume_spike
entry_short = short_condition and macd_short and rsi_short and volume_spike
// Plot EMAs
plot(ema_fast, color=color.blue, title="50 EMA")
plot(ema_slow, color=color.red, title="200 EMA")
// Plot Buy and Sell Signals
plotshape(entry_long, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, size=size.small)
plotshape(entry_short, title="Sell Short Signal", location=location.abovebar, color=color.red, style=shape.labeldown, size=size.small)
// Alerts
alertcondition(entry_long, title="Long Entry", message="Go LONG: High-leverage entry detected.")
alertcondition(entry_short, title="Short Entry", message="Go SHORT: High-leverage entry detected.")
Bullish Candle After 20 SMA Cross Up 200 SMA PGBullish Candle After 20 SMA Cross Up 200 SMA. Indicate whether there is a possibility of a uptrend
Tight Consolidation With Contracting Volume1. Price is above EMA20 by 0-3%
2. EMA20 is above EMA50 by 1%-3%
3. Latest close is positive
4. Latest volume is lower than 20 day average by at least 30%
5. Show signal as an arrow below the candle
9-20 EMA Crossover with TP and SL9-20 EMA Crossover: This script tracks the crossover of the 9-period EMA and the 20-period EMA.
When the 9 EMA crosses above the 20 EMA, a buy signal is triggered.
When the 9 EMA crosses below the 20 EMA, a sell signal is triggered.
Take Profit and Stop Loss Levels:
The take profit for a long position is set at 3% above the entry price (close * 1.03).
The stop loss for a long position is set at 1% below the entry price (close * 0.99).
The take profit for a short position is set at 3% below the entry price (close * 0.97).
The stop loss for a short position is set at 1% above the entry price (close * 1.01).
Leverage: The strategy uses 20x leverage for both long and short positions (leverage=20).
Alerts: Alerts are set up for the buy signal when the 9 EMA crosses above the 20 EMA and the sell signal when the 9 EMA crosses below the 20 EMA. These alerts can be used with a webhook to trigger trades on Binance Futures.
Strategy:
For long trades: The strategy enters a long position and sets a take profit at 3% above the entry price and a stop loss at 1% below the entry price.
For short trades: The strategy enters a short position and sets a take profit at 3% below the entry price and a stop loss at 1% above the entry price.
RSI + MACD Strategy with Alerts//@version=5
indicator("RSI + MACD Strategy with Alerts", overlay=true)
// ตั้งค่า RSI
rsiLength = input.int(14, title="RSI Length")
rsiOverbought = input.int(70, title="RSI Overbought Level")
rsiOversold = input.int(30, title="RSI Oversold Level")
rsiValue = ta.rsi(close, rsiLength)
// ตั้งค่า MACD
fastLength = input.int(12, title="MACD Fast Length")
slowLength = input.int(26, title="MACD Slow Length")
signalLength = input.int(9, title="MACD Signal Length")
= ta.macd(close, fastLength, slowLength, signalLength)
// เงื่อนไขสัญญาณซื้อ (Buy Signal)
buyCondition = ta.crossover(macdLine, signalLine) and rsiValue < rsiOversold
// เงื่อนไขสัญญาณขาย (Sell Signal)
sellCondition = ta.crossunder(macdLine, signalLine) and rsiValue > rsiOverbought
// แสดงสัญญาณบนกราฟ
plotshape(series=buyCondition, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(series=sellCondition, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// แจ้งเตือน (Alert)
alertcondition(buyCondition, title="Buy Alert", message="Buy Signal: RSI Oversold และ MACD Bullish Crossover")
alertcondition(sellCondition, title="Sell Alert", message="Sell Signal: RSI Overbought และ MACD Bearish Crossover")
Midnight Opening Ranges [TDL]
Midnight Opening Ranges with Standard Deviations as taught by Micheal J. Huddleston
- Custom colors
- Up to 10 Std dev levels
- Midnight opening price
- Current and previous ranges with dates and midpoints
Market Sessions and OverlapsMarket Sessions and Overlaps Indicator
This script, titled " Market Sessions and Overlaps ," provides a detailed visualization of major global trading sessions—Asia, Europe, and New York—along with the periods where these sessions overlap. It is designed to assist traders in understanding session timings and overlaps in their local time zone. Key features include:
Session Visualization: Highlights the Asia, Europe, and New York trading sessions directly on the chart with customizable colors and transparency for better clarity.
Overlap Identification: Marks the overlapping periods between Asia-Europe and Europe-New York sessions, where market activity often intensifies, with distinct candle colors.
Time Zone Support: The script allows users to select their local time zone, ensuring all session times are displayed accurately, no matter the user’s location.
Alerts for Key Events: Includes optional alerts to notify users of session openings, closings, and the start or end of overlap periods.
This indicator serves as a visual tool for tracking session-specific activity and liquidity. It is configurable to match individual preferences, enabling better alignment with trading strategies.
Disclaimer: This script is for informational purposes only and does not provide financial advice. Please consult a licensed financial advisor for personalized trading guidance.
CryptoMitchX Memecoin ShorterUpdate for "CryptoMitchX Memecoin Shorter" Indicator
New Features & Improvements:
Conditional Hiding of Recommendations:
SHORT Recommendations: These are now hidden when the RSI (Relative Strength Index) falls below 30, preventing signals during potentially oversold conditions.
Take Profit Recommendations: Hidden when the RSI goes above 60, avoiding signals in potentially overbought market conditions.
Refined Alert System:
Alerts for both SHORT and Take Profit signals now only trigger when the RSI conditions are met, ensuring more targeted notifications.
Code Optimization:
The script has been updated to address scope-related errors, improving its reliability and performance on the TradingView platform.
Technical Details:
RSI Implementation: The RSI is calculated with a 14-period length to determine market momentum.
Conditional Plotting: Instead of using direct conditional statements inside plotting functions, we now use boolean variables to control which signals are plotted, avoiding local scope issues.
Signal Tracking: Continues to track consecutive signals, but now with the added condition of RSI thresholds for more nuanced trading signals.
Usage:
Users will see a cleaner chart with signals only appearing when they are most relevant according to RSI levels, reducing false signals and improving the overall trading strategy experience.
I nstallation:
Simply update or replace the existing indicator script with this new version in your TradingView Pine Script editor.
Known Issues & Limitations:
This update does not include real sentiment analysis due to the limitations of Pine Script in accessing external data. The sentiment is simulated based on price volatility and direction.
Feedback:
We're eager to hear your feedback on these changes. If you encounter any issues or have suggestions for further improvements, please let us know.
SQZMOM_LB StrategyUtiliza el indicador sqzmom, abriendo operaciones cuando el indicador cambia al color 3 y cerrandolas cuando cambia al color 1
Price Action + Support/Resistance with LabelsEntry Conditions:
Long Entry (BUY): Based on the bullish engulfing pattern and price being above the resistance level.
Short Entry (SELL): For demonstration, the short entry condition is set as price being below the support level and a bullish candle in the previous bar. You can modify this logic for your own use case.
Stop Loss and Take Profit:
Stoploss is plotted at the calculated stop loss level.
Target is plotted at the calculated take profit level.
Labels:
For long trades, labels are added with "BUY", "STOPLOSS", and "TARGET".
For short trades (if enabled), labels are added with "SELL", "STOPLOSS", and "TARGET".
Labels are placed using label.new at specific locations on the chart (above or below bars).
Alert Conditions:
Alerts are created for both long and short entry signals so you can get notified when the entry conditions are met.
How it works:
BUY label will appear below the bar when a long entry condition is met.
SELL label will appear above the bar when a short entry condition is met.
STOPLOSS and TARGET labels will appear at their respective levels when an entry signal is triggered.
The labels will appear on the chart to give you a clear visual cue of the entry, stop loss, and take profit levels.
How to Use:
Copy the script into your Pine Editor on TradingView and apply it to your chart.
Observe the labels that show up on the chart:
"BUY" will appear below the bar when long conditions are met.
"SELL" will appear above the bar when short conditions are met (if using short logic).
"STOPLOSS" will be plotted at the stop loss level.
"TARGET" will be plotted at the take profit level.
Optional Customization:
You can modify the short entry condition based on your preferred method.
You can adjust the length for the support/resistance calculation, the stopLossRR, and other parameters to fine-tune the strategy for Nifty 50 or any other asset.
Let me know if you have any further questions or need additional modifications!
RSI + Auto Support + SMC + MA 20/50+volumCombining Smart Money Concepts (SMC), volume analysis, moving averages, automatic support/resistance detection, and RSI high signals can create a powerful TradingView script for technical analysis and decision-making. Here's an outline of how you can integrate these elements into a Pine Script strategy or indicator:
Smart Money Concepts (SMC):
Identify market structure: Higher highs (HH), higher lows (HL), lower highs (LH), and lower lows (LL).
Highlight key order blocks and liquidity zones.
Volume Analysis:
Use volume as a confirmation tool for breakouts or reversals.
Display relative volume levels to spot unusual activity.
Moving Averages:
Include popular moving averages (e.g., SMA, EMA) for trend detection.
Use crossovers for entry/exit signals.
Auto Support/Resistance:
Automatically plot support and resistance zones based on pivot highs/lows.
Highlight areas of confluence with SMC or volume zones.
RSI High Signals:
Identify overbought/oversold levels on the RSI.
Mark divergence areas for potential reversals.
Here’s a simplified Pine Script to start with:
This script integrates SMC (HH/LL), volume, moving averages, RSI, and auto support/resistance into a single indicator. You can modify it to suit your trading style by adjusting lengths or adding alerts for specific conditions. Let me know if you’d like to refine or expand any part!
Super Trader by CryptoMitchXDocumentation for "Super Trader by CryptoMitchX"
This indicator combines two powerful trading tools: a swing trading system and a liquidity level detector. Below are strategies, optimization tips, and best practices for using this script effectively on TradingView.
Key Features:
Swing Trader:
Moving averages (MA50 and MA100) to identify trends.
Heiken Ashi style bars for smoothing price action.
SuperTrend indicator for generating delayed buy/sell signals to reduce noise and false signals.
Liquidity Levels:
Detects and visualizes bullish and bearish liquidity zones.
Allows users to choose between "Wicks Only," "Breaks & Retests," or a combined mode.
Configurable zone extension to see how long a zone remains valid.
Strategies for Use:
Trend Following:
Use the MA50 and MA100 to determine the overall trend direction.
Uptrend: MA50 is above MA100.
Downtrend: MA50 is below MA100.
Enter trades in the direction of the trend when buy/sell signals align with liquidity levels.
Liquidity Zone Interaction:
Watch for price interactions with identified liquidity zones.
Bullish Zone: Look for buy signals near bullish zones.
Bearish Zone: Look for sell signals near bearish zones.
Combine this with Heiken Ashi bars to confirm strong momentum before entering trades.
SuperTrend Signals:
Delayed buy/sell signals reduce overtrading and help capture stronger market moves.
Use these signals as confirmation rather than standalone triggers.
Optimization Ideas:
Adjust Swing Sensitivity:
The default swing length is set to 5. Increase it (e.g., to 7-10) for higher timeframes to focus on major price pivots.
Customize Zone Behavior:
Use the "Extend Zones" option to track long-lasting zones and assess market structure.
Adjust the "Maximum Zone Bars" parameter to manage clutter and maintain relevance.
Fine-Tune SuperTrend:
Modify the ATR Period and Factor settings to suit your preferred trading timeframe.
Lower ATR: More reactive to price changes.
Higher Factor: Reduces noise and false signals.
Use Volume Data:
Pay attention to the volume histogram. Zones with high-volume interactions are more significant and likely to hold as support or resistance.
Tips for Buying and Selling:
Buying:
Look for buy signals when price interacts with bullish liquidity zones and the MA50 is above MA100.
Confirm upward momentum with Heiken Ashi candles and high volume.
Use the delayed buy signal to ensure the market has committed to the move.
Selling:
Look for sell signals when price interacts with bearish liquidity zones and the MA50 is below MA100.
Confirm downward momentum with Heiken Ashi candles and increasing volume.
Wait for delayed sell signals to reduce false exits in a volatile market.
Additional Notes:
This indicator is best used on higher timeframes (e.g., 1H, 4H, or Daily) to reduce noise.
Combine with other indicators (e.g., RSI or MACD) for additional confirmation.
Always test and refine settings using the "Replay" mode on TradingView to optimize for your trading style.
Trend Retest Strategy1. The Two Lines: Support & Resistance Levels
Red Line (recentHigh):
Plots the highest price level over the last 7 days (42 bars on the 4-hour timeframe). This acts as a dynamic resistance level.
Example: If price approaches this line and reverses, it signals a potential resistance retest.
Green Line (recentLow):
Plots the lowest price level over the last 7 days (42 bars on 4H). This acts as a dynamic support level.
Example: If price bounces off this line, it signals a support retest.
These lines update automatically as new price data forms.
Why 42 bars?
4-hour chart = 6 bars per day (24 hours / 4 = 6).
6 bars/day × 7 days = 42 bars.
2. Entry Signals (Arrows)
The arrows appear when all your strategy’s conditions align:
For Long Entries (▲ Green Triangle Below Bar):
Daily Trend: Daily RSI ≥ 50 (bullish).
MA Crossover: 20-period SMA crosses above 50-period SMA on the 4H chart.
RSI Confirmation: 4H RSI is ≥ 50 and rising (bullish momentum).
Retest: Price is within 0.5% of either the recentHigh (resistance) or recentLow (support).
Volume: Current volume > 20-period average volume.
Candle Confirmation: A bullish candle closes above the open.
For Short Entries (▼ Red Triangle Above Bar):
Daily Trend: Daily RSI < 50 (bearish).
MA Crossover: 20-period SMA crosses below 50-period SMA on the 4H chart.
RSI Confirmation: 4H RSI is ≤ 50 and falling (bearish momentum).
Retest: Price is near recentHigh or recentLow (same 0.5% threshold).
Volume: Volume exceeds its 20-period average.
Candle Confirmation: A bearish candle closes below the open.
3. How It All Fits Together
Step 1: The indicator checks the daily RSI to confirm the broader trend.
Step 2: On the 4H chart, it tracks the moving averages (MA20 and MA50) and RSI for momentum.
Step 3: When price retests the dynamic support/resistance lines (red/green), it waits for volume and candle confirmation to validate the retest.
Step 4: If all rules align, an arrow appears (long or short).
Example Scenario (Long Entry):
Daily Chart: RSI = 60 (bullish).
4H Chart:
MA20 crosses above MA50.
RSI = 55 and rising.
Price dips to the green support line (within 0.5%).
Volume spikes above average.
A bullish candle closes higher.
Result: A green ▲ appears below the bar.
Simple Swing Trader by CryptoMitchX How to Use the Simple Swing Trader by CryptoMitchX
How to Use:
The Simple Swing Trader indicator combines multiple tools to help you identify potential trading opportunities:
Moving Averages (MA 50 & MA 100): These are plotted as yellow and purple lines on the chart. Use these to determine trend direction and crossovers for potential trend changes.
Heiken Ashi Bars: Displayed with volume-based coloring for smoother visualization of trends. Look for changes in bar colors to identify potential shifts in momentum.
SuperTrend Buy/Sell Signals: Labels are placed on the chart to indicate "BUY" or "SELL" opportunities based on the SuperTrend calculation. Green labels signify potential buy zones, and red labels signify potential sell zones.
Volume Histogram: Shown in a separate pane, this provides an adjustable view of market activity. Use the "Volume Histogram Base Multiplier" input to customize its display.
Customization: All elements are editable for your trading preferences. Adjust colors, timeframes, and parameters as needed.
Features:
Multi-Tool Integration:
Combines trend-following, momentum-based, and volume-focused tools in one indicator.
SuperTrend Signals: Generates clear "BUY" and "SELL" labels to assist decision-making.
Heiken Ashi Visualization: Reduces noise and smoothens price data for better clarity.
Customizable Settings: Fully adjustable parameters to suit different trading styles and assets.
Volume Insights: An adaptable histogram that reflects market participation and activity.
Suggested Modifications
Alert Integration: Add alert conditions for BUY and SELL signals to receive real-time notifications.
Dynamic Color Customization: Enable dynamic coloring based on additional indicators, like RSI or MACD.
Optimization for Specific Assets: Fine-tune ATR and factor settings to align with the behavior of specific markets (e.g., crypto, forex, stocks).
Additional Indicators: Consider incorporating a momentum oscillator to enhance confirmation of trade setups.
This indicator is designed to work on any timeframe and asset. Experiment with different settings to optimize it for your trading strategy.
The Code
//@version=6
indicator("Simple Swing Trader by CryptoMitchX", overlay=true)
// Define moving averages
length50 = 50
length100 = 100
ma50 = ta.sma(close, length50)
ma100 = ta.sma(close, length100)
// Plot moving averages with specified colors and thickness
plot(ma50, title="MA 50", color=color.new(color.yellow, 0), linewidth=2)
plot(ma100, title="MA 100", color=color.new(color.purple, 0), linewidth=8)
// Moving Average Crosses
var float last_ma50 = na
var float last_ma100 = na
if (not na(ma50) and not na(ma100))
last_ma50 := ma50
last_ma100 := ma100
// Heiken Ashi style bars with volume-based coloring
ha_open = request.security(syminfo.tickerid, timeframe.period, math.avg(close , open ))
ha_close = math.avg(close, open, high, low)
ha_high = math.max(high, ha_open, ha_close)
ha_low = math.min(low, ha_open, ha_close)
var float last_volume = na
current_volume = volume
// Using plot for bar color indication without specifying color
plot(ha_close, title="HA Close", color=color.new(color.blue, 0), display=display.all, editable=true)
last_volume := current_volume
// Super Trend calculations for labels (but not plotting the line)
atrPeriod = 10
factor = 3.0
src = close
atr = ta.atr(atrPeriod)
upperband = src - (factor * atr)
lowerband = src + (factor * atr)
supertrend = na(upperband) ? na : upperband
supertrend := close > nz(supertrend ) ? math.max(upperband, nz(supertrend )) : math.min(lowerband, nz(supertrend ))
// Buy/Sell signals for SuperTrend with color (labels without plotting the line)
if (supertrend < nz(supertrend ))
label.new(bar_index, low, "BUY", color=color.new(color.green, 0), textcolor=color.new(color.black, 0), size=size.small)
if (supertrend > nz(supertrend ))
label.new(bar_index, high, "SELL", color=color.new(color.red, 0), textcolor=color.new(color.black, 0), size=size.small)
// Define histbase as an input
histbase_value = input.float(0.1, title="Volume Histogram Base Multiplier", minval=0.01, maxval=1, step=0.01)
// Display volume in a separate pane with modifications
plot(volume * histbase_value, title="Volume", color=color.new(color.white, 0), style=plot.style_histogram, linewidth=3, histbase=0, display=display.all)
Multi-Stock Cross SignalsBased on the high probability of future trading, use premium and discount to increase accuracy.
pinstraticoestrategia de compra y venta
................
.............
..........
........
.....
...
..
New intraday high with weak barStrategy Logic:
The strategy checks if the current bar’s high is the highest high of the last 10 bar and if internal bar strength is less than 0.15.
Position is closed when close is greater than the previous bar’s high.
When a position is open, the script applies a light green background on the chart to signal that you are in a trade.
Institutional Momentum IndicatorThe Institutional Momentum Indicator is a simple yet powerful tool designed for traders seeking clarity and precision in their trading decisions. This indicator combines key technical analysis elements to deliver actionable buy and sell signals:
Buy and Sell Signals: Clearly marked on the chart when the price crosses above or below the Exponential Moving Average (EMA), signaling potential upward or downward momentum.
Volume Spike Detection: Enhances reliability by considering high-volume activity, often indicative of institutional participation.
EMA Trend Analysis: Tracks price momentum with a customizable EMA length.
Visual Highlights: Background colors (green for buy and red for sell) make it easy to identify trading opportunities at a glance.
Alerts Ready: Stay informed with built-in alerts for both buy and sell signals.
This indicator is optimized for traders looking to capitalize on momentum-based strategies while simplifying decision-making. Perfect for intraday and swing trading across various markets.