我的脚本//DeMark_9_Indicator_Wealth_Insider study("DeMark9 Indicator",overlay=true) TD = close > close ?nz(TD )+1:0 TS = close < close ?nz(TS )+1:0 TDUp = TD - valuewhen(TD < TD , TD , 1 ) TDDn = TS - valuewhen(TS < TS , TS , 1 ) plotshape(TDUp==9?true:na,style=shape.triangledown,text="有点危险",color=green,location=location.abovebar) plotshape(TDDn==9?true:na,style=shape.triangleup,text="机会来了",color=red,location=location.belowbar)
Candlestick analysis
EMA Crossover Strategy for XAUUSD (5m)Script Explanation:
Moving Averages:
MA 5: Uses 5 periods for a short moving average.
MA 10: Uses period 10 for intermediate moving average.
MA 20: Uses 20 period for long moving average.
BUY Signal Conditions:
MA 5 crosses MA 10 from bottom to top (ta.crossover(ma1, ma2)).
MA sequence after the crossover: MA 5 > MA 10 > MA 20 (confirmation of uptrend).
SELL Signal Conditions:
MA 5 crosses MA 10 from top to bottom (ta.crossunder(ma1, ma2)).
MA sequence after the crossover: MA 5 < MA 10 < MA 20 (confirmation of downtrend).
Visualization:
MA 5 (Red): The most responsive line.
MA 10 (Blue): Middle line.
MA 20 (Green): The slowest line.
Green Arrow (BUY): Appears below the candle when the BUY condition is met.
Red Arrow (SELL): Appears above the candle when the SELL condition is met.
Alerts:
Notifications are sent whenever a BUY or SELL signal is detected.
How to use:
Copy this script into the Pine Script Editor in TradingView.
Save and add to your chart.
Pay attention to signals:
BUY Signal: Appears when MA 5 cuts MA 10 from bottom to top, in the order MA 5 > MA 10 > MA 20.
SELL Signal: Appears when MA 5 cuts MA 10 from top to bottom, in the order MA 5 < MA 10 < MA 20.
Average Candle RangeThis indicator calculates and displays the average trading range of candles over a specified period, helping traders identify volatility patterns and potential trading opportunities.
Features:
- Customizable lookback period (1-500 bars)
- Clean visual display in a top-right table overlay
- High-precision calculation showing 10 decimal places
- Real-time updates with each new bar
How it Works:
The indicator calculates the range of each candle (High - Low) and then computes the Simple Moving Average (SMA) of these ranges over your specified lookback period. The result is displayed in an easy-to-read table overlay.
Use Cases:
- Volatility Analysis: Monitor market volatility trends
- Position Sizing: Help determine position sizes based on average price movements
- Trading Strategy Development: Use as a reference for setting stop losses and take profits
- Market Phase Identification: Help identify high vs low volatility market phases
Settings:
- Lookback Period: Default is 140 bars, adjustable from 1 to 500
Note:
The indicator displays values with 10 decimal places for high-precision analysis, particularly useful in markets with small price movements.
Swing Trading CriteriaMy Script that I am still playing with don't know if it is good yet, Still in the testing stages
Bullish Doji Star and TristarThis command will detect the Doji candlestick on your chart.
The purpose of this code is to automatically identify two popular bullish reversal patterns in price charts:
Bullish Doji Star: A candlestick pattern that can appear after a downtrend and signals a bullish reversal.
Bullish Tristar: A pattern formed by three consecutive doji candlesticks, indicating a potential trend change.
These patterns are used in technical analysis to identify potential trend reversal points.
This code is ideal for technical analysts and traders looking to identify trend reversals in the markets.
It is especially effective on daily or 4-hour charts.
Alerts:
Bullish Doji Confirmed: Sends an alert when the pattern is confirmed.
Bullish Doji Failed: Sends an alert to indicate that the pattern is invalid.
Turkish
Bu komut, grafiğinizdeki Doji mum çubuğunu tespit edecektir.
Kodun amacı, fiyat grafiklerinde iki popüler boğa dönüş formasyonunu otomatik olarak tanımlamaktır:
Bullish Doji Star (Boğa Doji Yıldızı): Düşüş trendinin ardından görülebilen ve yükseliş dönüşü sinyali veren bir mum çubuğu formasyonu.
Bullish Tristar (Boğa Üçlü Yıldız): Arka arkaya üç doji mum çubuğunun görüldüğü ve trend değişimini işaret eden bir formasyon.
Bu formasyonlar, potansiyel trend dönüş noktalarını belirlemek için teknik analizde kullanılır.
Kod, piyasalardaki trend dönüşlerini tespit etmek isteyen teknik analistler ve traderlar için idealdir.
Özellikle günlük veya 4 saatlik grafiklerde etkili sonuçlar verir.
Uyarılar (Alerts):
Bullish Doji Confirmed: Formasyon doğrulandığında bir alarm gönderir.
Bullish Doji Failed: Formasyonun geçersiz olduğunu belirten bir alarm gönderir.
BOS with Order Flow, EMA Trend Filter, and High Win Ratecreated hans hoolash to improve on HTF used chat gpt
RM EMA/SMA Crossover IndicatorOffers a simple indicator above the relevant candle when your chosen EMAs or SMAs cross.
Candle Prediction//@version=5
indicator("Candle Prediction", overlay=true)
// تنظیمات اندیکاتورها
lengthRSI = input(14, title="RSI Length")
lengthEMA = input(9, title="EMA Length")
// محاسبه اندیکاتورها
rsi = ta.rsi(close, lengthRSI)
ema = ta.ema(close, lengthEMA)
// شرایط پیشبینی کندل بعدی
bullishSignal = close > ema and rsi < 30
bearishSignal = close < ema and rsi > 70
// رسم سیگنالها روی چارت
plotshape(bullishSignal, style=shape.labelup, location=location.belowbar, color=color.green, size=size.small, title="Bullish Signal", text="Bullish")
plotshape(bearishSignal, style=shape.labeldown, location=location.abovebar, color=color.red, size=size.small, title="Bearish Signal", text="Bearish")
A.C Signals & OverlaysA.C Signals & Overlays Indicator
Beschreibung
Der A.C Signals & Overlays Indikator ist ein vielseitiges Trading-Tool, das verschiedene Signale und Overlays auf dem Chart anzeigt, um Tradern dabei zu helfen, Trends und potenzielle Umkehrpunkte zu identifizieren. Das Skript bietet Funktionen wie Kerzenfärbung, Reversal Zones, gleitende Durchschnitte und eine Trendlinie, die die allgemeine Marktrichtung anzeigt.
Funktionen
Kerzenfärbung:
Färbt die Kerzen basierend auf ihrer Position relativ zu einem gleitenden Durchschnitt (SMA).
Grün: Der Schlusskurs liegt über dem SMA.
Rot: Der Schlusskurs liegt unter dem SMA.
Lila: Der Schlusskurs liegt nahe dem SMA.
Reversal Zones:
Zeigt potenzielle Umkehrzonen basierend auf einem gleitenden Durchschnitt mit einer längeren Periode.
Diese Zonen können als Unterstützungs- und Widerstandsniveaus dienen.
Gleitender Durchschnitt (SMA):
Zeigt einen einfachen gleitenden Durchschnitt, der die allgemeine Marktrichtung anzeigt.
Die Länge des gleitenden Durchschnitts kann angepasst werden.
Trendlinie:
Berechnet eine Trendlinie basierend auf den letzten 100 Balken.
Die Farbe der Trendlinie ändert sich basierend auf der Trendrichtung (grün für bullisch, rot für bärisch).
Dashboard:
Zeigt die aktuelle Trendrichtung in einem Kästchen an.
Die Schriftgröße und die Größe des Kästchens können angepasst werden.
Alarme:
Erstellt eine Alarmbedingung, wenn der Preis die Signallinie kreuzt.
Eingabeparameter
Show Candle Coloring: Schaltet die Kerzenfärbung ein oder aus.
Show Reversal Zones: Schaltet die Anzeige der Reversal Zones ein oder aus.
Sensitivity: Legt die Empfindlichkeit der Signale fest.
Moving Average Length: Legt die Länge des gleitenden Durchschnitts fest.
Font Size: Wählt die Schriftgröße für das Dashboard (Optionen: "tiny", "small", "normal", "large", "huge").
Box Width: Legt die Breite des Kästchens im Dashboard fest.
Box Height: Legt die Höhe des Kästchens im Dashboard fest.
Verwendung
Kerzenfärbung:
Aktivieren Sie die Kerzenfärbung, um visuelle Hinweise auf die Marktrichtung zu erhalten.
Reversal Zones:
Aktivieren Sie die Reversal Zones, um potenzielle Umkehrpunkte zu identifizieren.
Gleitender Durchschnitt:
Passen Sie die Länge des gleitenden Durchschnitts an, um die Empfindlichkeit der Trendanzeige zu steuern.
Trendlinie:
Verwenden Sie die Trendlinie, um die allgemeine Marktrichtung zu visualisieren.
Dashboard:
Passen Sie die Schriftgröße und die Größe des Kästchens an, um die Trendrichtung klar und deutlich anzuzeigen.
Alarme:
Nutzen Sie die Alarmbedingung, um benachrichtigt zu werden, wenn der Preis die Signallinie kreuzt.
Smoothed MACDMACD Line Calculation: The MACD is calculated as the difference between the fast and slow exponential moving averages (EMAs).
Smoothed MACD: The regular MACD line is smoothed using a simple moving average (SMA).
Signal Line: The signal line is calculated using the smoothed MACD, with its own smoothing factor.
Histogram: The histogram is plotted as the difference between the smoothed MACD and the signal line, to visualize momentum.
Triple Confluence Strategy-nishant200 EMA: A yellow line showing the 200-period Exponential Moving Average.
VWAP: A blue line showing the Volume Weighted Average Price.
Pivot Points: A purple line for the pivot point, red lines for support levels, and green lines for resistance levels.
Buy/Sell Markers: Green labels below the bars for Buy signals and Red labels above the bars for Sell signals.
Confluence Zone Highlights: Background color changes to green for Buy and red for Sell signals.
Tiger Cobra 005+1d dddndd
dndbdbd
dndndnbd
snddbdsk;NASLSVNL"Ndsblnlb'ndllbNLBNLdbnsl'bndlbnl'bnadbldnbldn a;vnknbkaLBN
sl;snvksns l'nvksnvsv
svlsnlsvns'lvnsv
sslvnslvns
' sklnl;sknlsn
lnlnlnsslfmslsmlfsmflsmfs
Heikin Ashi Buy/Sell Indicator w/TP✨ "Heikin Ashi Buy/Sell Indicator w/TP 📊🔥 - Your Ultimate Trading Tool!" ✨
🚀 Unleash the Power of Heikin Ashi Candles!
Simplify your trading decisions with precise Buy and Sell signals designed to help you navigate trends effortlessly. Whether you're new to trading or a seasoned pro, this indicator gives you the clarity you need to stay ahead.
🎯 Take Profit (TP) Made Easy!
Integrated TP Levels remove the guesswork from your exits, ensuring you capture profits like a pro. Say goodbye to emotional trading and hello to calculated, confident strategies!
💡 Why Heikin Ashi?
Heikin Ashi candles smooth out market noise, providing a cleaner, more reliable picture of price trends. With this indicator, you'll enjoy:
✅ Clear trend signals for optimal entry and exit points.
✅ Better performance in volatile markets.
✅ A stress-free, systematic approach to trading.
⚡ Features You’ll Love:
Actionable Buy/Sell Alerts: Never miss an opportunity!
Customizable TP Levels: Tailor your strategy for maximum gains.
Beginner-Friendly Interface: Easy to use, even for first-time traders.
🔥 Why Wait?
Transform the way you trade with this game-changing indicator! Master the markets with confidence, precision, and ease.
👉 Level Up Your Trading Now! Make smarter, smoother decisions and start maximizing your potential today. 💹📈💥
💼 Perfect for Day Traders, Swing Traders, and Trend Followers Alike! 💼
BENSIG//@version=5
indicator("Swing High/Low Entry Strategy with SL/TP", overlay=true)
// Input for the time range (10:30am to 16:45pm UTC-5)
startTime = timestamp("GMT-5", year, month, dayofmonth, 10, 30)
endTime = timestamp("GMT-5", year, month, dayofmonth, 16, 45)
// Variables to store the highest and lowest swing points within a specific time range
var float swingHigh = na
var float swingLow = na
// Lookback period for calculating swing high and low
lookbackPeriod = 10
// Calculate swing high and low between the specified time period
if (time >= startTime and time <= endTime)
swingHigh := na
swingLow := na
else
swingHigh := ta.highest(high, lookbackPeriod) // Highest high in the last 10 bars
swingLow := ta.lowest(low, lookbackPeriod) // Lowest low in the last 10 bars
// Detect when swing high is broken (swept)
sweepHigh = not na(swingHigh) and high > swingHigh
// Bearish Order Block Detection (simple method using previous bearish candle)
bearishOrderBlock = close > open and close < open
// Buy and Sell logic based on swing high being swept and a bearish order block detected
buyCondition = sweepHigh and bearishOrderBlock
sellCondition = sweepHigh and bearishOrderBlock
// Stop loss and take profit logic
SL_buy = swingHigh
SL_sell = swingLow
TP_buy = swingLow
TP_sell = swingHigh
// Plot Buy and Sell Signals with labels and lines for SL and TP
if (buyCondition)
label.new(bar_index, low, text="BUY", style=label.style_label_up, color=color.green, textcolor=color.white, size=size.small)
line.new(x1=bar_index, y1=SL_buy, x2=bar_index + 10, y2=SL_buy, color=color.red, width=2, extend=extend.right)
line.new(x1=bar_index, y1=TP_buy, x2=bar_index + 10, y2=TP_buy, color=color.green, width=2, extend=extend.right)
if (sellCondition)
label.new(bar_index, high, text="SELL", style=label.style_label_down, color=color.red, textcolor=color.white, size=size.small)
line.new(x1=bar_index, y1=SL_sell, x2=bar_index + 10, y2=SL_sell, color=color.green, width=2, extend=extend.right)
line.new(x1=bar_index, y1=TP_sell, x2=bar_index + 10, y2=TP_sell, color=color.red, width=2, extend=extend.right)
// Alerts
alertcondition(buyCondition, title="Buy Signal", message="Buy signal triggered")
alertcondition(sellCondition, title="Sell Signal", message="Sell signal triggered")
My Strategy11111//@version=5
strategy("My Strategy", overlay=true)
// Input parameters
smaPeriod = input(50, title="SMA Period")
rsiPeriod = input(14, title="RSI Period")
overbought = input(70, title="Overbought Level")
oversold = input(30, title="Oversold Level")
stopLossPct = input(1, title="Stop Loss (%)") / 100
takeProfitPct = input(2, title="Take Profit (%)") / 100
// Indicators
sma = ta.sma(close, smaPeriod)
rsi = ta.rsi(close, rsiPeriod)
= ta.macd(close, 12, 26, 9)
// Plot indicators on the chart
plot(sma, color=color.blue, title="SMA")
hline(overbought, "Overbought", color=color.red)
hline(oversold, "Oversold", color=color.green)
// Calculate Stop Loss and Take Profit levels
longStopLoss = close * (1 - stopLossPct)
longTakeProfit = close * (1 + takeProfitPct)
shortStopLoss = close * (1 + stopLossPct)
shortTakeProfit = close * (1 - takeProfitPct)
// Buy Condition
longCondition = ta.crossover(close, sma) and rsi < oversold and macdLine > signalLine
if longCondition
strategy.entry("Long", strategy.long, stop=longStopLoss, limit=longTakeProfit)
// Sell Condition
shortCondition = ta.crossunder(close, sma) and rsi > overbought and macdLine < signalLine
if shortCondition
strategy.entry("Short", strategy.short, stop=shortStopLoss, limit=shortTakeProfit)
RSI and MA Custom ScreenerZNKcust1 - testing for screener
Write the Pine Script for the custom condition:
For this example, we will check for:
RSI (14) > 50
50-day SMA > 200-day SMA
Multi-Feature Trading Indicator SANRRHere is a detailed description of the script:
1. Indicator Setup
The script is a custom Pine Script indicator designed for use in TradingView.
The indicator is named "Multi-Feature Trading Indicator", and it overlays its outputs on the price chart.
The script allows for customization through inputs, where you can choose which features to show on the chart, such as Relative Volume (RVOL), Liquidity, VCP patterns, Monthly Gains, New Highs, EMA Alerts, and more.
2. Inputs
The script allows users to toggle on/off several features, such as:
Relative Volume (RVOL)
Liquidity
Volume and Price Contraction (VCP)
Monthly Gains
NR4/NR7 Patterns
ADR (Average Daily Range) and Up/Down Volume Ratio
New Highs
Significant Volume Events
Pocket Pivots
EMA Alerts
RS Score (the new feature added)
3. Feature Calculations
Relative Volume (RVOL)
RVOL is calculated by dividing the current volume by the 50-period simple moving average (SMA) of volume. If RVOL is enabled, it is plotted as a line on the chart.
Liquidity
Liquidity is calculated by multiplying the closing price by the 50-period SMA of volume.
A label is displayed showing the liquidity, and it's formatted in millions (if applicable).
Volume and Price Contraction (VCP)
VCP identifies contraction in both price (narrowing of the price range) and volume (declining volume).
If the price range (high - low) and volume are both below their 50-period averages (within a given threshold), a triangle is plotted below the bar.
Monthly Gains
This section calculates percentage gains over the last 1-month and 3-month periods, comparing the current close with the previous month's/quarter's close.
A label is shown on the chart indicating the percentage gains for both the 1-month and 3-month periods.
NR4/NR7 Patterns
The script identifies NR4 (narrowest range in the last 4 bars) and NR7 (narrowest range in the last 7 bars) patterns.
Inside bars (bars where the high is lower than the previous bar’s high and the low is higher than the previous bar’s low) are also detected.
Different shapes (circle, diamond) are plotted above or below the bars to indicate these patterns.
Average Daily Range (ADR) and Up/Down Volume Ratio
ADR is calculated as the difference between the highest and lowest prices over the last 14 bars, divided by the close price and multiplied by 100 to get the percentage.
The Up/Down Volume Ratio is calculated by summing the volume of bars where the price closed up (bullish) and down (bearish) over the last 14 bars.
New Highs
The script identifies new highs on different timeframes (52-week high, 3-month high, and 6-month high).
Triangles are plotted above the bars to mark these new highs, and labels are included to display the timeframe of the new high.
Significant Volume Events
Highest Ever Volume, Highest Year Volume, and Highest Quarter Volume are identified and plotted using labels above the bars.
Pocket Pivots
Pocket Pivots occur when the current bar’s volume is greater than the lowest volume over the last 10 bars for a down bar (a bar where the close is lower than the previous close).
A label is plotted below the bar when a Pocket Pivot is detected.
EMA Alerts
EMA Alerts are generated based on whether the price is above any of the following EMAs: 10-period, 20-period, 50-period, or 200-period.
A triangle is plotted above the bar if the price is above one of these EMAs.
4. RS Score Calculation
RS Score is calculated based on the relative performance over different periods: 3 months, 6 months, 9 months, and 12 months.
The formula for each score is:
𝑟
𝑠
_
𝑠
𝑐
𝑜
𝑟
𝑒
=
current close
−
lowest low over the period
lowest low over the period
×
100
rs_score=
lowest low over the period
current close−lowest low over the period
×100
Each score (3-month, 6-month, 9-month, 12-month) is then weighted:
3-month score × 0.4
6-month score × 0.2
9-month score × 0.2
12-month score × 0.2
The final RS Score is the weighted sum of these individual scores, scaled by 100.
The RS Score is then displayed as a label on the chart, showing the combined relative strength score based on the calculated gains over the different periods.
5. Visual Representation
For each of the features mentioned, shapes (triangles, circles, diamonds, labels, etc.) are plotted on the chart to visually represent specific patterns, volume events, price movements, or technical conditions.
Labels are used to display values like liquidity, ADR, new highs, and RS Score.
Summary
This Pine Script indicator provides a wide range of technical analysis tools, including:
Volume-based indicators (like RVOL, Liquidity, Volume Events)
Pattern recognition (NR4, NR7, Inside Bars, Pocket Pivots)
Performance indicators (like Monthly Gains, ADR, RS Score)
Trend-following indicators (EMA alerts, New Highs)
SufinBDThis TradingView script combines RSI, Stochastic RSI, MACD, and Bollinger Bands to generate Buy and Sell signals on two different timeframes: 4-hour (4H) and Daily (1D). The strategy aims to provide entry and exit points based on a multi-indicator confirmation approach, helping traders make more informed decisions.
Features:
RSI (Relative Strength Index):
Measures the speed and change of price movements.
The script looks for oversold conditions (RSI below 30) for buy signals and overbought conditions (RSI above 70) for sell signals.
Stochastic RSI:
Measures the level of RSI relative to its high-low range over a given period.
A Stochastic RSI below 0.2 indicates oversold conditions, and a value above 0.8 indicates overbought conditions.
It helps identify overbought and oversold conditions in a more precise manner than regular RSI.
MACD (Moving Average Convergence Divergence):
A trend-following momentum indicator that shows the relationship between two moving averages of a security's price.
The MACD line crossing above the Signal line generates bullish signals, and vice versa for bearish signals.
Bollinger Bands:
A volatility indicator that consists of a middle band (SMA of price), an upper band, and a lower band.
When the price is below the lower band, it signals potential buy opportunities, while prices above the upper band signal potential sell opportunities.
Timeframe Usage:
The script calculates indicators for both the 4-hour (4H) and Daily (1D) timeframes.
The combined signals from these two timeframes are used to generate Buy and Sell alerts.
Buy Signal:
A Buy signal is generated when all of the following conditions are met:
RSI on both 4H and 1D is below 30 (oversold conditions).
Stochastic RSI on both timeframes is below 0.2.
The MACD line is above the Signal line on both timeframes.
The price is below the lower Bollinger Band on both the 4H and 1D charts.
Sell Signal:
A Sell signal is generated when all of the following conditions are met:
RSI on both 4H and 1D is above 70 (overbought conditions).
Stochastic RSI on both timeframes is above 0.8.
The MACD line is below the Signal line on both timeframes.
The price is above the upper Bollinger Band on both the 4H and 1D charts.
Visuals:
Buy signals are marked with green labels below the bars.
Sell signals are marked with red labels above the bars.
Bollinger Bands are displayed on the chart with the upper and lower bands marked in blue (for 4H) and orange (for 1D).
Purpose:
This script aims to provide more reliable buy/sell signals by combining indicators across multiple timeframes. It is ideal for traders who want to use multiple confirmation points before entering or exiting a trade.
How to Use:
Apply the script to any chart on TradingView.
Look for Buy and Sell signals that meet the conditions above.
You can adjust the timeframe (e.g., 4H or 1D) based on your trading strategy.
This script can be used for intraday trading, swing trading, or position trading depending on your preferred timeframes.
Example of Signal Interpretation:
Buy Signal:
If all conditions are met (e.g., RSI is under 30, Stochastic RSI is under 0.2, MACD is bullish, and price is below the lower Bollinger Band on both the 4-hour and daily charts), the script will show a green "BUY" label below the price bar.
Sell Signal:
If all conditions are met (e.g., RSI is over 70, Stochastic RSI is over 0.8, MACD is bearish, and price is above the upper Bollinger Band on both timeframes), the script will show a red "SELL" label above the price bar.
This combination of indicators offers a multi-layered confirmation approach, which aims to reduce the risk of false signals and increase the reliability of your trading decisions.