Altcoin Long/Short Strategy//@version=5
strategy("Altcoin Long/Short Strategy", overlay=true, initial_capital=1000, default_qty_type=strategy.percent_of_equity, default_qty_value=2, commission_type=strategy.commission.percent, commission_value=0.1)
// —————— Inputs ——————
emaFastLength = input.int(20, "Fast EMA")
emaSlowLength = input.int(50, "Slow EMA")
rsiLength = input.int(14, "RSI Length")
bbLength = input.int(20, "Bollinger Bands Length")
riskRewardRatio = input.float(1.5, "Risk/Reward Ratio")
stopLossPerc = input.float(2, "Stop Loss %") / 100
// —————— Indicators ——————
// Trend: EMAs
emaFast = ta.ema(close, emaFastLength)
emaSlow = ta.ema(close, emaSlowLength)
ema200 = ta.ema(close, 200)
// Momentum: RSI & MACD
rsi = ta.rsi(close, rsiLength)
= ta.macd(close, 12, 26, 9)
// Volatility: Bollinger Bands
basis = ta.sma(close, bbLength)
dev = ta.stdev(close, bbLength)
upperBand = basis + 2 * dev
lowerBand = basis - 2 * dev
// —————— Strategy Logic ——————
// Long Conditions
longCondition =
close > ema200 and // Long-term bullish
ta.crossover(emaFast, emaSlow) and // EMA crossover
rsi > 50 and // Momentum rising
close > lowerBand and // Bounce from lower Bollinger Band
macdLine > signalLine // MACD bullish
// Short Conditions
shortCondition =
close < ema200 and // Long-term bearish
ta.crossunder(emaFast, emaSlow) and // EMA crossunder
rsi < 50 and // Momentum weakening
close < upperBand and // Rejection from upper Bollinger Band
macdLine < signalLine // MACD bearish
// —————— Risk Management ——————
stopLoss = strategy.position_avg_price * (1 - stopLossPerc)
takeProfit = strategy.position_avg_price * (1 + (riskRewardRatio * stopLossPerc))
// —————— Execute Trades ——————
if (longCondition)
strategy.entry("Long", strategy.long)
strategy.exit("Exit Long", "Long", stop=stopLoss, limit=takeProfit)
if (shortCondition)
strategy.entry("Short", strategy.short)
strategy.exit("Exit Short", "Short", stop=stopLoss, limit=takeProfit)
// —————— Plotting ——————
plot(emaFast, "Fast EMA", color=color.blue)
plot(emaSlow, "Slow EMA", color=color.orange)
plot(ema200, "200 EMA", color=color.gray)
plot(upperBand, "Upper Bollinger", color=color.red)
plot(lowerBand, "Lower Bollinger", color=color.green)
Индикаторы ширины рынка
SMA + RSI + Volume + ATR StrategySMA + RSI + Volume + ATR Strategy
1. Indicators Used:
SMA (Simple Moving Average): This is a trend-following indicator that calculates the average price of a security over a specified period (50 periods in this case). It's used to identify the overall trend of the market.
RSI (Relative Strength Index): This measures the speed and change of price movements. It tells us if the market is overbought (too high) or oversold (too low). Overbought is above 70 and oversold is below 30.
Volume: This is the amount of trading activity. A higher volume often indicates strong interest in a particular price move.
ATR (Average True Range): This measures volatility, or how much the price is moving in a given period. It helps us adjust stop losses and take profits based on market volatility.
2. Conditions for Entering Trades:
Buy Signal (Green Up Arrow):
Price is above the 50-period SMA (indicating an uptrend).
RSI is below 30 (indicating the market might be oversold or undervalued, signaling a potential reversal).
Current volume is higher than average volume (indicating strong interest in the move).
ATR is increasing (indicating higher volatility, suggesting that the market might be ready for a move).
Sell Signal (Red Down Arrow):
Price is below the 50-period SMA (indicating a downtrend).
RSI is above 70 (indicating the market might be overbought or overvalued, signaling a potential reversal).
Current volume is higher than average volume (indicating strong interest in the move).
ATR is increasing (indicating higher volatility, suggesting that the market might be ready for a move).
3. Take Profit & Stop Loss:
Take Profit: When a trade is made, the strategy will set a target price at a certain percentage above or below the entry price (1.5% in this case) to automatically exit the trade once that target is hit.
Stop Loss: If the price goes against the position, a stop loss is set at a percentage below or above the entry price (0.5% in this case) to limit losses.
4. Execution of Trades:
When the buy condition is met, the strategy will enter a long position (buying).
When the sell condition is met, the strategy will enter a short position (selling).
5. Visual Representation:
Green Up Arrow: Appears on the chart when the buy condition is met.
Red Down Arrow: Appears on the chart when the sell condition is met.
These arrows help you see at a glance when the strategy suggests you should buy or sell.
In Summary:
This strategy uses a combination of trend-following (SMA), momentum (RSI), volume, and volatility (ATR) to decide when to buy or sell a stock. It looks for opportunities when the market is either oversold (buy signal) or overbought (sell signal) and makes sure there’s enough volume and volatility to back up the move. It also includes take-profit and stop-loss levels to manage risk.
Support/Resistance + Donchian Channel (lord gozer)Better test before use it ,because its about your money not mine
Automatic Fibonacci retracement based on the highest high and loThe chart is fractal, meaning that what happens can always be broken down into smaller portions.
This is often seen in various AR (Algorithmic Rules) concepts, such as breakers, order blocks, etc., where the price reacts.
I’ve visualized this behavior with this indicator.
This indicator takes the highest high and the lowest low from the past 5 weeks, excluding the current week.
The lowest low will represent 0%, and the highest high will represent 100% (green lines).
It then divides this range into 25%, 50%, 75%, and 100% levels (red and blue lines).
The indicator works on all charts and all timeframes, automatically adjusting when you switch charts or timeframes. No manual input is required.
Additionally, above 100%, it will create levels at 125%, 150%, 175%, and 200%, while below 0%, it will create levels at -25%, -50%, -75%, and -100%.
Your chart will now be divided into these 25% levels, allowing you to observe how the price either respects or breaks through them.
Again, this isn’t something “groundbreaking,” but simply a visual aid to identify levels where the price finds support/resistance or breaks through.
It helps me gain a broader perspective and determine whether my trade is moving in the right direction or if I should remain cautious.
YCLK Al-Sat İndikatörüRSI Period (RSI Periyodu): Adjustable RSI period (default is 14).
Overbought Level (RSI Aşırı Alım): Sets the RSI threshold for overbought conditions (default is 70).
Oversold Level (RSI Aşırı Satım): Sets the RSI threshold for oversold conditions (default is 30).
Take Profit Ratio (Kâr Alma Oranı): Percentage ratio for take-profit levels (default is 1.05 or 5% profit).
Stop Loss Ratio (Zarar Durdurma Oranı): Percentage ratio for stop-loss levels (default is 0.95 or 5% loss).
RSI Calculation: The script calculates the Relative Strength Index (RSI) using the defined period.
Buy Signal: Generated when RSI crosses above the oversold level.
Sell Signal: Generated when RSI crosses below the overbought level.
Buy/Sell Signal Visualization:
Buy Signal: Green upward arrow labeled as "BUY".
Sell Signal: Red downward arrow labeled as "SELL".
Dynamic Take Profit and Stop Loss Levels:
Entry Price: Tracks the price at which a Buy signal occurs.
Take Profit (TP): Automatically calculated as Entry Price * Take Profit Ratio.
Stop Loss (SL): Automatically calculated as Entry Price * Stop Loss Ratio.
These levels are plotted on the chart with:
Blue circles for TP levels.
Red circles for SL levels.
Fibonacci Targets: The script also calculates Fibonacci levels based on the entry price:
Fibonacci 1.236 Level: Shown in purple.
Fibonacci 1.618 Level: Shown in orange.
Additional Visual Details:
Displays the current RSI value at each bar as a yellow label above the chart.
How to Use:
Apply the indicator to your TradingView chart.
Adjust the input parameters (RSI period, overbought/oversold levels, profit/loss ratios) based on your strategy.
Use the Buy and Sell signals to identify potential trade entries.
Use the TP and SL levels to manage risk and lock in profits.
Refer to the Fibonacci levels for extended profit targets.
Scorpion [SCPteam]this is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for test
[COG]MTF RZP Heatmap MTF RZP Heatmap (Range Zone Pulse)
What It Does
This indicator creates three visual heatmaps that show how current price movement compares to the average range of different timeframes. It helps traders:
Identify when price moves are overextended
Compare momentum across different timeframes
Spot potential reversal points
Understand the relative strength of price movements
How It Works
Range Calculation:
For each selected timeframe, it calculates an average range based on the specified number of periods
The range is measured from high to low for each period
A moving average of these ranges creates a dynamic "normal" range for that timeframe
Position Calculation:
Measures how far price has moved from the period's opening price
Compares this movement to the average range
Converts the movement into a percentage (-100% to +100%)
Visual Display:
Shows three vertical heatmaps, one for each timeframe
Colors graduate from bearish (typically red) to bullish (typically green)
A dot indicator shows the current position within each range
Percentage labels show exact movement relative to average range
Trading Applications
Trend Trading:
Multiple timeframes aligned in the same color suggest strong trend
Use larger timeframes (Daily/Weekly) for trend direction
Use smaller timeframes (4H/1H) for entry timing
Mean Reversion:
Extreme readings (near +100% or -100%) suggest overextended moves
Look for divergences between timeframes
Use when shorter timeframes show extremes but larger timeframes don't
Volatility Trading:
Compare current moves to average ranges
Identify when markets are more volatile than usual
Adjust position sizes based on range expansion/contraction
Multi-Timeframe Analysis:
Compare price action across different time horizons
Identify conflicting signals between timeframes
Use for timeframe alignment in trading decisions
Best Practices for Usage
Timeframe Selection:
Set the first timeframe to your trading timeframe
Set the second timeframe to your trend timeframe
Set the third timeframe to your entry timeframe
Range Period Settings:
Default is 5 periods
Increase for more stable readings
Decrease for more responsive readings
Color Interpretation:
Darker colors indicate stronger moves
Look for alignment across timeframes
Watch for extremes in any timeframe
Trading Setups:
Wait for alignment in multiple timeframes
Use extreme readings for counter-trend trades
Combine with other indicators for confirmation
RSI + MACD Combined by Majidbest of all i have combined the most traded indicators in one for you to ease the trading
Deepsek IndicatorThis TradingView Pine Script indicator combines EMA crossovers (for trend direction) and RSI (for momentum) to generate Buy/Sell signals. It includes customizable Take Profit (TP) and Stop Loss (SL) levels, plotted directly on the chart.
Key Features
Signal Types:
EMA Crossover: Triggers Buy when a fast EMA crosses above a slow EMA; Sell on the reverse.
RSI Divergence: Buy when RSI exits oversold (30); Sell when RSI exits overbought (70).
Risk Management:
Set TP/SL as fixed percentages (e.g., 2% TP) or fixed price points.
Visual horizontal lines mark entry price, TP (teal dashed), and SL (red dashed).
Visual Clarity:
Labels (BUY/SELL) with arrows at signal points.
Plots EMAs (fast/slow) and RSI for trend/momentum confirmation.
Flexibility:
Adjust parameters (EMA lengths, RSI settings, TP/SL rules) via input settings.
Alerts for real-time signal notifications.
Purpose:
Designed to simplify entries/exits with clear rules, enforce disciplined risk management, and adapt to multiple markets (stocks, forex, crypto).
IndicadorGH EVC v1 [Bielhpp]//@version=6
//Desenvolvido por Bielhpp Indicador Ponto de Entrada em tendencia
indicator(title='IndicadorGH EVC v1 ', overlay=true)
Bars = input.int(defval=8, title="Bars", minval=1, maxval=21, step=1)
MaxPercStop = input.int(defval=20, title="Max Percentual Stop", minval=1)
highValue = ta.highest(high, Bars + 1)
lowValue = ta.lowest(low, Bars + 1)
ColorUP = input.color(#66D8D8, "Buy")
ColorDown = input.color(#F2CC0D, "Sell")
ema9 = ta.ema(close, 9)
sma10 = ta.sma(close, 10)
ema27 = ta.ema(close, 27)
ema57 = ta.ema(close, 57)
ema200 = ta.ema(close, 200)
ema400 = ta.ema(close, 400)
plot(ema9, color=#fffeb4, title="9", linewidth=1)
plot(ema27, color=#1927bf, title="27", linewidth=2)
plot(ema200, color=#2CFFFE, title="200", linewidth=3)
plot(ema400, color=#FC28FC, title="400", linewidth=3)
crossUP = ta.crossover(ema27, ema57)
crossDOWN = ta.crossunder(ema27, ema57)
plotshape(series=crossUP ? ema27 : na, location=location.belowbar, color=#43f16c, style=shape.triangleup, text="BUY")
plotshape(series=crossDOWN ? ema27 : na, location=location.abovebar, color=color.rgb(241, 50, 50), style=shape.triangledown, text="SELL")
plot(ema27, color=color.blue)
plot(ema57, color=color.orange)
crossUPMAX = ta.crossover(ema9, ema400)
crossDOWNMAX = ta.crossunder(ema9, ema400)
plotshape(series=crossUPMAX ? ema9 : na, location=location.belowbar, color=#43f16c, style=shape.triangleup, text="MAX_BUY")
plotshape(series=crossDOWNMAX ? ema9 : na, location=location.abovebar, color=color.rgb(241, 50, 50), style=shape.triangledown, text="MAX_SELL")
// Configurar alertas para os cruzamentos
if (crossUPMAX)
alert("Alerta: Condição MAX_BUY foi ativada! Verifique o gráfico.", alert.freq_once_per_bar)
if (crossDOWNMAX)
alert("Alerta: Condição MAX_SELL foi ativada! Verifique o gráfico.", alert.freq_once_per_bar)
bUP = false
bDown = false
bDestaque = false
fTexto(vMsg, vTrigger, vStop, percStop) =>
syminfo.tickerid + ' ' + timeframe.period + vMsg + str.tostring(vTrigger) + ' Stop: ' + str.tostring(vStop + syminfo.mintick) + ' (' + str.tostring(percStop, format.percent) + ')'
if (sma10 >= sma10 ) and (open < sma10 ) and ((close > sma10) and (ema27 > ema57))
vStop = high - lowValue
pStop = vStop / high * 100
bUP := true
if pStop <= MaxPercStop
alert(fTexto((bDestaque ? ': *** DESTAQUE COMPRA *** ' : ': Compra: '), high, lowValue, pStop), alert.freq_once_per_bar_close)
if (sma10 <= sma10 ) and (open > sma10 ) and ((close < sma10) and (ema27 < ema57))
vStop = highValue - low
pStop = vStop / low * 100
bDown := true
if pStop <= MaxPercStop
alert(fTexto((bDestaque ? ': *** DESTAQUE VENDA *** ' : ': Venda: '), low, highValue, pStop), alert.freq_once_per_bar_close)
barcolor(bUP ? ColorUP : bDown ? ColorDown : na)
Strong Buy/Sell with Demand/Supply and Volume HighlightStrong Buy/Sell with Demand/Supply and Volume Highlight
This indicator combines key technical elements to provide traders with robust buy and sell signals while highlighting significant market zones and volume trends. It's designed for traders seeking clarity and precision in their decision-making process.
Features:
Dynamic Buy/Sell Signals:
Utilizes the crossover of a fast EMA (default: 9) and a slow EMA (default: 21) to generate reliable buy and sell signals.
Buy signals are marked with green upward labels, while sell signals are marked with red downward labels.
Demand and Supply Zone Detection:
Automatically plots demand (support) and supply (resistance) zones based on recent price movements when buy or sell signals are triggered.
Zones are visually marked with lines for quick identification of key price levels.
Volume Analysis:
Highlights candles with high volume relative to the average 20-period volume (adjustable via the volume multiplier input).
High-volume bullish candles are marked green, and bearish candles are marked red, allowing traders to spot significant market activity instantly.
Inputs:
EMA Periods: Customizable fast and slow EMA settings to adjust signal sensitivity.
Demand/Supply Zones: Option to toggle the visibility of demand and supply levels.
Volume Multiplier: Control the threshold for detecting high-volume candles.
How to Use:
Buy Opportunities: Look for buy signals when the fast EMA crosses above the slow EMA, supported by demand zones and high volume.
Sell Opportunities: Observe sell signals when the fast EMA crosses below the slow EMA, reinforced by supply zones and bearish high-volume candles.
Combine this indicator with your trading strategy to enhance decision-making and improve trade timing.
This indicator is suitable for multiple timeframes and markets, making it a versatile tool for scalpers, day traders, and swing traders.
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.
Cyril//@version=6
indicator("Signaux BB (Réintégration) avec RSI", overlay=true)
// Paramètres des Bandes de Bollinger
bb_length = 20 // Période des Bandes de Bollinger
bb_dev = 1.6 // Déviation standard
// Calcul des Bandes de Bollinger
basis = ta.sma(close, bb_length) // Moyenne mobile simple
dev = bb_dev * ta.stdev(close, bb_length) // Déviation standard
upper_bb = basis + dev // Bande supérieure
lower_bb = basis - dev // Bande inférieure
// Tracer les Bandes de Bollinger
plot(upper_bb, color=color.orange, linewidth=1, title="Bande Supérieure")
plot(basis, color=color.blue, linewidth=1, title="Moyenne Mobile")
plot(lower_bb, color=color.orange, linewidth=1, title="Bande Inférieure")
// Paramètres du RSI
rsi_length = 14 // Période du RSI
rsi_overbought = 60 // Niveau RSI pour les ventes
rsi_oversold = 35 // Niveau RSI pour les achats
// Calcul du RSI
rsi = ta.rsi(close, rsi_length)
// Conditions pour les signaux d'achat et de vente
buy_signal = (open < lower_bb and close < lower_bb and close > lower_bb and rsi < rsi_oversold)
sell_signal = (open > upper_bb and close > upper_bb and close < upper_bb and rsi > rsi_overbought)
// Afficher les signaux UNIQUEMENT si la condition RSI est respectée
plotshape(buy_signal, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, title="Achat")
plotshape(sell_signal, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, title="Vente")
8888325335/@version=5
indicator("Bit Bite ht",shorttitle = "Bit Bite hindi technical", overlay = true)
src = input(hl2, title="Source",group = "Trend Continuation Signals with TP & SL")
Multiplier = input.float(2,title="Sensitivity (0.5 - 5)", step=0.1, defval=2, minval=0.5, maxval=5,group = "Trend Continuation Signals with TP & SL")
atrPeriods = input.int(14,title="ATR Length", defval=10,group = "Trend Continuation Signals with TP & SL")
atrCalcMethod= input.string("Method 1",title = "ATR Calculation Methods",options = ,group = "Trend Continuation Signals with TP & SL")
cloud_val = input.int(10,title = "Cloud Moving Average Length", defval = 10, minval = 5, maxval = 500,group = "Trend Continuation Signals with TP & SL")
stopLossVal = input.float(2.0, title="Stop Loss Percent (0 for Disabling)", minval=0,group = "Trend Continuation Signals with TP & SL")
showBuySellSignals = input.bool(true,title="Show Buy/Sell Signals", defval=true,group = "Trend Continuation Signals with TP & SL")
showMovingAverageCloud = input.bool(true, title="Show Cloud MA",group = "Trend Continuation Signals with TP & SL")
percent(nom, div) =>
100 * nom / div
src1 = ta.hma(open, 5)
src2 = ta.hma(close, 12)
momm1 = ta.change(src1)
momm2 = ta.change(src2)
f1(m, n) => m >= n ? m : 0.0
f2(m, n) => m >= n ? 0.0 : -m
m1 = f1(momm1, momm2)
m2 = f2(momm1, momm2)
sm1 = math.sum(m1, 1)
sm2 = math.sum(m2, 1)
cmoCalc = percent(sm1-sm2, sm1+sm2)
hh = ta.highest(2)
h1 = ta.dev(hh, 2) ? na : hh
hpivot = fixnan(h1)
ll = ta.lowest(2)
l1 = ta.dev(ll, 2) ? na : ll
lpivot = fixnan(l1)
rsiCalc = ta.rsi(close,9)
lowPivot = lpivot
highPivot = hpivot
sup = rsiCalc < 25 and cmoCalc > 50 and lowPivot
res = rsiCalc > 75 and cmoCalc < -50 and highPivot
atr2 = ta.sma(ta.tr, atrPeriods)
atr= atrCalcMethod == "Method 1" ? ta.atr(atrPeriods) : atr2
up=src-(Multiplier*atr)
up1 = nz(up ,up)
up := close > up1 ? math.max(up,up1) : up
dn=src+(Multiplier*atr)
dn1 = nz(dn , dn)
dn := close < dn1 ? math.min(dn, dn1) : dn
trend = 1
trend := nz(trend , trend)
trend := trend == -1 and close > dn1 ? 1 : trend == 1 and close < up1 ? -1 : trend
buySignal = trend == 1 and trend == -1
sellSignal = trend == -1 and trend == 1
pos = 0.0
pos:= buySignal? 1 : sellSignal ? -1 : pos
longCond = buySignal and pos != 1
shortCond = sellSignal and pos !=-1
entryOfLongPosition = ta.valuewhen(longCond , close, 0)
entryOfShortPosition = ta.valuewhen(shortCond, close, 0)
sl = stopLossVal > 0 ? stopLossVal / 262 : 99999
stopLossForLong = entryOfLongPosition * (1 - sl)
stopLossForShort = entryOfShortPosition * (1 + sl)
takeProfitForLong1R = entryOfLongPosition * (1 + sl)
takeProfitForShort1R = entryOfShortPosition * (1 - sl)
takeProfitForLong2R = entryOfLongPosition * (1 + sl*2)
takeProfitForShort2R = entryOfShortPosition * (1 - sl*2)
takeProfitForLong3R = entryOfLongPosition * (1 + sl*3)
takeProfitForShort3R = entryOfShortPosition * (1 - sl*3)
long_sl = low < stopLossForLong and pos ==1
short_sl = high> stopLossForShort and pos ==-1
takeProfitForLongFinal = high>takeProfitForLong3R and pos ==1
takeProfitForShortFinal = low 0?entryOfLongPosition :entryOfShortPosition , pos>0?lindex:sindex, pos>0?entryOfLongPosition :entryOfShortPosition , color=entryColor )
line.delete(lineEntry )
stopLine = line.new(bar_index, pos>0?stopLossForLong :stopLossForShort , pos>0?lindex:sindex, pos>0?stopLossForLong :stopLossForShort , color=color.red )
tpLine1 = line.new(bar_index, pos>0?takeProfitForLong1R:takeProfitForShort1R, pos>0?lindex:sindex, pos>0?takeProfitForLong1R:takeProfitForShort1R, color=color.green)
tpLine2 = line.new(bar_index, pos>0?takeProfitForLong2R:takeProfitForShort2R, pos>0?lindex:sindex, pos>0?takeProfitForLong2R:takeProfitForShort2R, color=color.green)
tpLine3 = line.new(bar_index, pos>0?takeProfitForLong3R:takeProfitForShort3R, pos>0?lindex:sindex, pos>0?takeProfitForLong3R:takeProfitForShort3R, color=color.green)
line.delete(stopLine )
line.delete(tpLine1 )
line.delete(tpLine2 )
line.delete(tpLine3 )
labelEntry = label.new(bar_index, pos>0?entryOfLongPosition :entryOfShortPosition , color=entryColor , textcolor=#000000, style=label.style_label_left, text="Entry Price: " + str.tostring(pos>0?entryOfLongPosition :entryOfShortPosition ))
label.delete(labelEntry )
labelStop = label.new(bar_index, pos>0?stopLossForLong :stopLossForShort , color=color.red , textcolor=#000000, style=label.style_label_left, text="Stop Loss Price: " + str.tostring(math.round((pos>0?stopLossForLong :stopLossForShort) *100)/100))
labelTp1 = label.new(bar_index, pos>0?takeProfitForLong1R:takeProfitForShort1R, color=color.green, textcolor=#000000, style=label.style_label_left, text="(1-1) Take Profit: " +str.tostring(math.round((pos>0?takeProfitForLong1R:takeProfitForShort1R) * 100)/100))
labelTp2 = label.new(bar_index, pos>0?takeProfitForLong2R:takeProfitForShort2R, color=color.green, textcolor=#000000, style=label.style_label_left, text="(2-1) Take Profit: " + str.tostring(math.round((pos>0?takeProfitForLong2R:takeProfitForShort2R) * 100)/100))
labelTp3 = label.new(bar_index, pos>0?takeProfitForLong3R:takeProfitForShort3R, color=color.green, textcolor=#000000, style=label.style_label_left, text="(3-1) Take Profit: " + str.tostring(math.round((pos>0?takeProfitForLong3R:takeProfitForShort3R) * 100)/100))
label.delete(labelStop )
label.delete(labelTp1 )
label.delete(labelTp2 )
label.delete(labelTp3 )
changeCond = trend != trend
smaSrcHigh = ta.ema(high,cloud_val)
smaSrcLow = ta.ema(low, cloud_val)
= ta.macd(close, 12, 26, 9)
plot_high = plot(showMovingAverageCloud? smaSrcHigh : na, color = na, transp = 1, editable = false)
plot_low = plot(showMovingAverageCloud? smaSrcLow : na, color = na, transp = 1, editable = false)
plotshape(longCond ? up : na, title="UpTrend Begins", location=location.belowbar, style=shape.circle, size=size.tiny, color=color.new(color.teal,transp = 50) )
plotshape(longCond and showBuySellSignals ? up : na, title="Buy kar lo", text="Buy kar lo", location=location.belowbar, style=shape.labelup, size=size.tiny, color=color.new(color.teal,transp = 50), textcolor=color.white )
plotshape(shortCond ? dn : na, title="DownTrend Begins", location=location.abovebar, style=shape.circle, size=size.tiny, color=color.new(color.red,transp = 50) )
plotshape(shortCond and showBuySellSignals ? dn : na, title="Sell kar do", text="Sell kar do", location=location.abovebar, style=shape.labeldown, size=size.tiny, color=color.new(color.red,transp = 50), textcolor=color.white)
fill(plot_high, plot_low, color = (macdLine > 0) and (macdLine > macdLine ) ? color.new(color.aqua,transp = 85) : na, title = "Positive Cloud Uptrend")
fill(plot_high, plot_low, color = macdLine > 0 and macdLine < macdLine ? color.new(color.aqua,transp = 85) : na, title = "Positive Cloud Downtrend")
fill(plot_high, plot_low, color = macdLine < 0 and macdLine < macdLine ? color.new(color.red,transp = 85) : na, title = "Negative Cloud Uptrend")
fill(plot_high, plot_low, color = macdLine < 0 and macdLine > macdLine ? color.new(color.red,transp = 85) : na, title = "Negative Cloud Downtrend")
mPlot = plot(ohlc4, title="", style=plot.style_circles, linewidth=0)
alertcondition(changeCond, title="Trend Direction Change ", message="Trend direction has changed ! ")
alertLongText = str.tostring(syminfo.ticker) + " BUY ALERT! " +
"Entry Price: " + str.tostring(entryOfLongPosition) +
", Take Profit 1: " + str.tostring(takeProfitForLong1R) +
", Take Profit 2: " + str.tostring(takeProfitForLong2R) +
", Take Profit 3: " + str.tostring(takeProfitForLong3R) +
", Stop Loss Price: " + str.tostring(stopLossForLong)
alertShortText = str.tostring(syminfo.ticker) + " SELL ALERT!" +
", Entry Price: " + str.tostring(entryOfShortPosition) +
", Take Profit 1: " + str.tostring(takeProfitForShort1R) +
", Take Profit 2: " + str.tostring(takeProfitForShort2R) +
", Take Profit 3: " + str.tostring(takeProfitForShort3R) +
", Stop Loss Price: " + str.tostring(stopLossForShort)
longJson = '{"content": "' + alertLongText + '"}'
shortJson = '{"content": "' + alertShortText + '"}'
if longCond
alert(longJson, alert.freq_once_per_bar_close)
if shortCond
alert(shortJson, alert.freq_once_per_bar_close)
Daily Buy/Sell Volumeindicator that The Daily Buy/Sell Volume Indicator is a custom-built tool that helps traders track and visualize the buying and selling volumes throughout a trading day. This indicator separates the total volume into two categories:
1. Buy Volume: Calculated when the closing price is higher than the opening price for a given candle. This represents the volume of bullish (buy) activity for the day.
2. Sell Volume: Calculated when the closing price is lower than the opening price for a given candle. This represents the volume of bearish (sell) activity for the day.
Key Features:
• Buy/Sell Volume Calculation: The indicator tracks the buying and selling volumes based on the relationship between the open and close prices of each candle.
• Daily Reset: The indicator resets at the start of each trading day, providing fresh calculations for the daily buy and sell volumes.
• Visual Representation: The buy volume is shown with a green line, while the sell volume is displayed with a red line, making it easy to identify bullish and bearish activity over the course of the day.
TRP İndikatörü - Ömer Faruk ŞenBu kod, TRP indikatörüne göre düşüş ve yükseliş sinyalleri üretir.
- Düşüş sinyali: 8. ve 9. mumlar kırmızı ve 7. mumun altında kapanır.
- Yükseliş sinyali: M9 mumu yeşil ve 13 mum sonra yükseliş beklenir.
Sinyaller, grafik üzerinde işaretlenir.
TRP İndikatör SinyalleriTRP İndikatörü Sinyal Üretici:
- Düşüş sinyali: 8. ve 9. mumlar kırmızı ve 7. mumun altında kapanır.
- Yükseliş sinyali: M9 mumu yeşil ve 13 mum sonra yükseliş beklenir.
Bu kod, TradingView grafiklerinde otomatik olarak sinyalleri işaretler.
9 & 15 EMA Crossover Strategyema crossover indicator ready for you guys for information
contact at instagrame @the_alpha_trader007
Combined Open, Last Candle Close, Midpointgives previos and cuurent trading session open close levels clearly
Asian Session Breakout//@version=6
indicator("Asian Session Breakout", overlay=true)
// Input per personalizzare l'orario della sessione asiatica
startTime = input.time(timestamp("0000-01-01 23:00 +0000"), title="Inizio sessione asiatica (UTC)")
endTime = input.time(timestamp("0000-01-01 08:00 +0000"), title="Fine sessione asiatica (UTC)")
// Variabili per calcolare massimo e minimo della sessione asiatica
var float asianHigh = na
var float asianLow = na
// Resetta massimo e minimo all'inizio della sessione
if (time >= startTime and time < endTime)
asianHigh := na
asianLow := na
// Aggiorna massimo e minimo durante la sessione asiatica
if (time >= startTime and time < endTime)
if na(asianHigh)
asianHigh := high
else
asianHigh := math.max(high, asianHigh)
if na(asianLow)
asianLow := low
else
asianLow := math.min(low, asianLow)
// Traccia i livelli di massimo e minimo
lineHigh = line.new(bar_index , asianHigh , bar_index, asianHigh, color=color.green, width=1, extend=extend.right)
lineLow = line.new(bar_index , asianLow , bar_index, asianLow, color=color.red, width=1, extend=extend.right)
// Breakout logica
longCondition = ta.crossover(close, asianHigh)
shortCondition = ta.crossunder(close, asianLow)
// Genera segnali
if (longCondition)
label.new(bar_index, high, "BUY", style=label.style_label_up, color=color.green, textcolor=color.white)
alert("Breakout rialzista: Entrata Long", alert.freq_once_per_bar)
if (shortCondition)
label.new(bar_index, low, "SELL", style=label.style_label_down, color=color.red, textcolor=color.white)
alert("Breakout ribassista: Entrata Short", alert.freq_once_per_bar)
// Mostra i livelli di massimo e minimo
bgcolor(time >= startTime and time < endTime ? color.new(color.blue, 90) : na, title="Sessione Asiatica")
VWAP Trading Signalsシグナルの動作イメージ
チャートに表示される内容:
VWAPライン(オレンジ)。
買いエントリー(緑ラベル)と売りエントリー(赤ラベル)。
利確または損切時のラベル。
シグナル例:
価格がVWAPを下回ると、BUYシグナル。
価格がVWAPを上回ると、SELLシグナル。
利確または損切条件を満たすと対応するシグナルを表示。