1AM CRT (Long)1am utc-5 CRT long execution 2 and 3 am than take profit
1am utc-5 CRT long execution 2 and 3 am than take profit1am utc-5 CRT long execution 2 and 3 am than take profit1am utc-5 CRT long execution 2 and 3 am than take profit1am utc-5 CRT long execution 2 and 3 am than take profit1am utc-5 CRT long execution 2 and 3 am than take profit1am utc-5 CRT long execution 2 and 3 am than take profit1am utc-5 CRT long execution 2 and 3 am than take profit1am utc-5 CRT long execution 2 and 3 am than take profit1am utc-5 CRT long execution 2 and 3 am than take profit
Göstergeler ve stratejiler
Strategy with Volume, MACD, RSI, StochRSIExplanation:
MACD: Used to identify momentum and trend direction.
RSI: Used to identify overbought/oversold conditions.
StochRSI: A more sensitive version of RSI, used to confirm RSI signals.
Volume Spike: Ensures trades are taken only when volume is above a threshold, indicating strong interest.
How to Use:
Copy and paste the code into the Pine Script editor in TradingView.
Add it to the BTCUSDT.P chart on Binance.
Backtest the strategy on historical data to evaluate its performance.
Adjust the input parameters to optimize the strategy for your trading style.
Notes:
This is a basic strategy and may not perform well in all market conditions.
Always backtest and forward-test strategies before using them with real money.
Consider adding risk management features like stop-loss and take-profit levels.
Bollinger Bands ±1σ/±2σ/±3σBollinger Bands (BB) are constructed using the following formula:
±1σ: Simple Moving Average (SMA) ± Standard Deviation
±2σ: Simple Moving Average ± (Standard Deviation × 2)
±3σ: Simple Moving Average ± (Standard Deviation × 3)
The probability of price movement staying within each band is as follows:
±1σ: 68.26%
±2σ: 95.44%
±3σ: 99.74%
Customizable EMA & RSI Indicator TGThis is a customisable EMA indicator. Where 5 Ema values can be set by the user along with their own colors.
Also included is an RSI indicator where RSI levels are depicted in different colors depending on the RSI level. Eaxample RSI is depicted in green if it is breaking out above 60. and is depicted as red if it is falling below 60.
Pin Bar Signal with SMA, Bollinger Bands, RSI and MACD FiltersThis script is designed to identify Pin Bar patterns on a price chart and generate buy/sell signals based on additional filters such as SMA, Bollinger Bands, RSI, and MACD. It also includes optional stop-loss and take-profit levels. Below is a breakdown of the script's functionality:
---
**Key Features**
1. **Pin Bar Detection**:
- **Bullish Pin Bar**: Lower shadow is at least twice the size of the upper shadow and body.
- **Bearish Pin Bar**: Upper shadow is at least twice the size of the lower shadow and body.
2. **Filters**:
- **SMA Filter**: Ensures the price is above/below the SMA for buy/sell signals.
- **Bollinger Bands Filter**: Ensures the price is below the lower band for buy signals or above the upper band for sell signals.
- **RSI Filter**: Ensures RSI is oversold for buy signals or overbought for sell signals.
- **MACD Filter**: Ensures the MACD line is above the signal line for buy signals or below for sell signals.
3. **Stop Loss and Take Profit**:
- Calculates stop-loss and take-profit levels as a percentage of the entry price.
- Visualizes these levels on the chart.
4. **Visual and Audio Alerts**:
- Plots buy/sell signals on the chart.
- Triggers alerts for buy/sell signals.
---
**Inputs**
- **Enable/Disable Filters**: Allows users to toggle SMA, Bollinger Bands, RSI, and MACD filters.
- **SMA Length**: Period for the Simple Moving Average.
- **Bollinger Bands Settings**: Length and standard deviation for Bollinger Bands.
- **RSI Settings**: Length, overbought, and oversold levels.
- **MACD Settings**: Fast, slow, and signal lengths.
- **Stop Loss & Take Profit**: Percentage levels for SL and TP.
---
**Calculations**
1. **SMA**: Calculates the Simple Moving Average.
2. **Bollinger Bands**: Computes the basis (SMA), standard deviation, and upper/lower bands.
3. **RSI**: Calculates the Relative Strength Index.
4. **MACD**: Computes the MACD line, signal line, and histogram.
5. **Pin Bar Conditions**: Determines bullish and bearish Pin Bars based on shadow and body sizes.
---
**Signals**
- **Buy Signal**: Bullish Pin Bar + SMA filter (if enabled) + Bollinger Bands filter (if enabled) + RSI filter (if enabled) + MACD filter (if enabled).
- **Sell Signal**: Bearish Pin Bar + SMA filter (if enabled) + Bollinger Bands filter (if enabled) + RSI filter (if enabled) + MACD filter (if enabled).
---
**Visualization**
- **Buy/Sell Signals**: Labels are plotted on the chart for buy/sell signals.
- **SMA and Bollinger Bands**: Plotted on the chart if enabled.
- **Stop Loss and Take Profit**: Stepped lines are plotted on the chart if enabled.
---
**Alerts**
- Triggers an alert when a buy or sell signal is detected.
---
**Usage**
1. Add the script to your TradingView chart.
2. Customize the input settings (e.g., SMA length, RSI levels, etc.).
3. Enable/disable filters as needed.
4. Monitor buy/sell signals and SL/TP levels on the chart.
---
**Example Scenario**
- If a bullish Pin Bar forms, the price is above the SMA, below the lower Bollinger Band, RSI is oversold, and MACD line is above the signal line, a buy signal is generated. The script will plot a "BUY" label, trigger an alert, and display the stop-loss and take-profit levels.
---
**Improvements**
1. **Additional Filters**: Add more indicators (e.g., Volume, ATR) for better signal confirmation.
2. **Customizable Alerts**: Allow users to customize alert messages.
3. **Backtesting**: Integrate backtesting functionality to evaluate the strategy's performance.
4. **Multi-Timeframe Analysis**: Add support for multi-timeframe analysis.
---
This script is a robust tool for traders who use Pin Bars in combination with other technical indicators to make informed trading decisions.
CRYPTO Wall Street HoursAdjust to your Time.
Use with 8h Chart.
Shows only bars of WALLSTREET hours.
Smart Trading Signals with TP/SL//@version=5
indicator("Smart Trading Signals with TP/SL", shorttitle="STS-TP/SL", overlay=true, max_labels_count=500)
// —————— Input Parameters ——————
// Signal Configuration
signalType = input.string("EMA Crossover", "Signal Type", options= )
emaFastLen = input.int(9, "Fast EMA Length", minval=1)
emaSlowLen = input.int(21, "Slow EMA Length", minval=1)
rsiLength = input.int(14, "RSI Length", minval=1)
rsiOverbought = input.int(70, "RSI Overbought", maxval=100)
rsiOversold = input.int(30, "RSI Oversold", minval=0)
// Risk Management Inputs
useFixedTP = input.bool(true, "Use Fixed TP (%)", tooltip="TP as percentage from entry")
tpPercentage = input.float(2.0, "Take Profit %", step=0.1)
tpPoints = input.float(100, "Take Profit Points", step=1.0)
useFixedSL = input.bool(true, "Use Fixed SL (%)", tooltip="SL as percentage from entry")
slPercentage = input.float(1.0, "Stop Loss %", step=0.1)
slPoints = input.float(50, "Stop Loss Points", step=1.0)
// —————— Calculate Indicators ——————
// EMAs for Trend
emaFast = ta.ema(close, emaFastLen)
emaSlow = ta.ema(close, emaSlowLen)
emaBullish = ta.crossover(emaFast, emaSlow)
emaBearish = ta.crossunder(emaFast, emaSlow)
// RSI for Momentum
rsi = ta.rsi(close, rsiLength)
rsiBullish = ta.crossover(rsi, rsiOversold)
rsiBearish = ta.crossunder(rsi, rsiOverbought)
// —————— Generate Signals ——————
buyCondition = (signalType == "EMA Crossover" and emaBullish) or (signalType == "RSI Divergence" and rsiBullish)
sellCondition = (signalType == "EMA Crossover" and emaBearish) or (signalType == "RSI Divergence" and rsiBearish)
// —————— Calculate TP/SL Levels ——————
var float entryPrice = na
var bool inTrade = false
// Calculate TP/SL based on user input
takeProfitPrice = useFixedTP ? entryPrice * (1 + tpPercentage / 100) : entryPrice + tpPoints
stopLossPrice = useFixedSL ? entryPrice * (1 - slPercentage / 100) : entryPrice - slPoints
// —————— Plot Signals and Levels ——————
if buyCondition and not inTrade
entryPrice := close
inTrade := true
label.new(bar_index, low, "BUY", style=label.style_label_up, color=color.green, textcolor=color.white)
line.new(bar_index, entryPrice, bar_index + 1, entryPrice, color=color.green, width=2)
line.new(bar_index, takeProfitPrice, bar_index + 1, takeProfitPrice, color=color.teal, width=2, style=line.style_dashed)
line.new(bar_index, stopLossPrice, bar_index + 1, stopLossPrice, color=color.red, width=2, style=line.style_dashed)
if sellCondition and inTrade
entryPrice := close
inTrade := false
label.new(bar_index, high, "SELL", style=label.style_label_down, color=color.red, textcolor=color.white)
line.new(bar_index, entryPrice, bar_index + 1, entryPrice, color=color.red, width=2)
line.new(bar_index, takeProfitPrice, bar_index + 1, takeProfitPrice, color=color.teal, width=2, style=line.style_dashed)
line.new(bar_index, stopLossPrice, bar_index + 1, stopLossPrice, color=color.red, width=2, style=line.style_dashed)
// —————— Alerts ——————
alertcondition(buyCondition, title="Buy Signal Alert", message="BUY Signal Triggered")
alertcondition(sellCondition, title="Sell Signal Alert", message="SELL Signal Triggered")
// —————— Plot EMAs and RSI ——————
plot(emaFast, "Fast EMA", color.new(color.blue, 0))
plot(emaSlow, "Slow EMA", color.new(color.orange, 0))
Engulfing Candles Strategy by ardhankurniawanThis strategy is based on the Engulfing Candlestick pattern and incorporates a Risk-Reward ratio of 1:2. It utilizes two primary indicators:
1. SMA 200 (200-period Simple Moving Average): Used to identify the overall trend, with buy signals occurring above the SMA and sell signals below it.
2. Bollinger Bands: Provides a volatility-based range for price action. Buy signals occur when the price is above both the SMA 200 and the middle Bollinger Band, while sell signals occur when the price is below both.
The strategy executes a long position (buy) when a Bullish Engulfing candle pattern forms above the SMA 200 and the middle Bollinger Band, and it exits the position using a stop loss at the low of the Bullish Engulfing candle and a take profit at a 1:2 risk-reward ratio. Similarly, a short position (sell) is initiated when a Bearish Engulfing pattern appears below the SMA 200 and the middle Bollinger Band, with the stop loss placed at the high of the Bearish Engulfing candle and a take profit at the same 1:2 risk-reward ratio.
The strategy is designed for trend-following trades with clear entry and exit points based on candlestick patterns and key indicators.
Disclaimer:
This trading strategy is for research purposes only and should not be considered as financial or investment advice. The use of this strategy involves risk, and past performance is not indicative of future results. Always conduct your own research and consult with a financial advisor before making any investment decisions. Trading involves significant risk, and you could lose more than your initial investment. By using this strategy, you agree to take full responsibility for any trades executed and the associated risks.
My strategyimport pandas as pd
import ta
import time
from dhan import DhanHQ
# Dhan API Credentials
API_KEY = "your_api_key"
ACCESS_TOKEN = "your_access_token"
dhan = DhanHQ(api_key=API_KEY, access_token=ACCESS_TOKEN)
# Strategy Parameters
SYMBOL = "RELIANCE" # Replace with your stock symbol
INTERVAL = "1min" # Scalping requires a short timeframe
STOPLOSS_PERCENT = 0.2 # Stop loss percentage (0.2% per trade)
TARGET_RR_RATIO = 2 # Risk-Reward Ratio (1:2)
QUANTITY = 10 # Number of shares per trade
def get_historical_data(symbol, interval="1min", limit=50):
"""Fetch historical data from Dhan API."""
response = dhan.get_historical_data(symbol=symbol, interval=interval, limit=limit)
if response == "success":
df = pd.DataFrame(response )
df = df .astype(float)
df = df .astype(float)
df = df .astype(float)
df = df .astype(float)
return df
else:
raise Exception("Failed to fetch data: ", response )
def add_indicators(df):
"""Calculate EMA (9 & 20), VWAP, and RSI."""
df = ta.trend.ema_indicator(df , window=9)
df = ta.trend.ema_indicator(df , window=20)
df = ta.volume.volume_weighted_average_price(df , df , df , df )
df = ta.momentum.rsi(df , window=14)
return df
def check_signals(df):
"""Identify Buy and Sell signals based on EMA, VWAP, and RSI."""
latest = df.iloc
# Buy Condition
if latest > latest and latest > latest and 40 <= latest <= 60:
return "BUY"
# Sell Condition
if latest < latest and latest < latest and 40 <= latest <= 60:
return "SELL"
return None
def place_order(symbol, side, quantity):
"""Execute a market order."""
order_type = "BUY" if side == "BUY" else "SELL"
order = dhan.place_order(symbol=symbol, order_type="MARKET", quantity=quantity, transaction_type=order_type)
if order == "success":
print(f"{order_type} Order Placed: {order }")
return float(order ) # Return entry price
else:
raise Exception("Order Failed: ", order )
def scalping_strategy():
position = None
entry_price = 0
stoploss = 0
target = 0
while True:
try:
# Fetch and process data
df = get_historical_data(SYMBOL, INTERVAL)
df = add_indicators(df)
signal = check_signals(df)
# Execute trade
if signal == "BUY" and position is None:
entry_price = place_order(SYMBOL, "BUY", QUANTITY)
stoploss = entry_price * (1 - STOPLOSS_PERCENT / 100)
target = entry_price + (entry_price - stoploss) * TARGET_RR_RATIO
position = "LONG"
print(f"BUY @ {entry_price}, SL: {stoploss}, Target: {target}")
elif signal == "SELL" and position is None:
entry_price = place_order(SYMBOL, "SELL", QUANTITY)
stoploss = entry_price * (1 + STOPLOSS_PERCENT / 100)
target = entry_price - (stoploss - entry_price) * TARGET_RR_RATIO
position = "SHORT"
print(f"SELL @ {entry_price}, SL: {stoploss}, Target: {target}")
# Exit logic
if position:
current_price = df .iloc
if (position == "LONG" and (current_price <= stoploss or current_price >= target)) or \
(position == "SHORT" and (current_price >= stoploss or current_price <= target)):
print(f"Exiting {position} @ {current_price}")
position = None
time.sleep(60) # Wait for the next candle
except Exception as e:
print(f"Error: {e}")
time.sleep(60)
# Run the strategy
try:
scalping_strategy()
except KeyboardInterrupt:
print("Trading stopped manually.")
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
AdibXmos // © Adib2024
//@version=5
indicator('AdibXmos ', overlay=true, max_labels_count=500)
show_tp_sl = input.bool(true, 'Display TP & SL', group='Techical', tooltip='Display the exact TP & SL price levels for BUY & SELL signals.')
rrr = input.string('1:2', 'Risk to Reward Ratio', group='Techical', options= , tooltip='Set a risk to reward ratio (RRR).')
tp_sl_multi = input.float(1, 'TP & SL Multiplier', 1, group='Techical', tooltip='Multiplies both TP and SL by a chosen index. Higher - higher risk.')
tp_sl_prec = input.int(2, 'TP & SL Precision', 0, group='Techical')
candle_stability_index_param = 0.5
rsi_index_param = 70
candle_delta_length_param = 4
disable_repeating_signals_param = input.bool(true, 'Disable Repeating Signals', group='Techical', tooltip='Removes repeating signals. Useful for removing clusters of signals and general clarity.')
GREEN = color.rgb(29, 255, 40)
RED = color.rgb(255, 0, 0)
TRANSPARENT = color.rgb(0, 0, 0, 100)
label_size = input.string('huge', 'Label Size', options= , group='Cosmetic')
label_style = input.string('text bubble', 'Label Style', , group='Cosmetic')
buy_label_color = input(GREEN, 'BUY Label Color', inline='Highlight', group='Cosmetic')
sell_label_color = input(RED, 'SELL Label Color', inline='Highlight', group='Cosmetic')
label_text_color = input(color.white, 'Label Text Color', inline='Highlight', group='Cosmetic')
stable_candle = math.abs(close - open) / ta.tr > candle_stability_index_param
rsi = ta.rsi(close, 14)
atr = ta.atr(14)
bullish_engulfing = close < open and close > open and close > open
rsi_below = rsi < rsi_index_param
decrease_over = close < close
var last_signal = ''
var tp = 0.
var sl = 0.
bull_state = bullish_engulfing and stable_candle and rsi_below and decrease_over and barstate.isconfirmed
bull = bull_state and (disable_repeating_signals_param ? (last_signal != 'buy' ? true : na) : true)
bearish_engulfing = close > open and close < open and close < open
rsi_above = rsi > 100 - rsi_index_param
increase_over = close > close
bear_state = bearish_engulfing and stable_candle and rsi_above and increase_over and barstate.isconfirmed
bear = bear_state and (disable_repeating_signals_param ? (last_signal != 'sell' ? true : na) : true)
round_up(number, decimals) =>
factor = math.pow(10, decimals)
math.ceil(number * factor) / factor
if bull
last_signal := 'buy'
dist = atr * tp_sl_multi
tp_dist = rrr == '2:3' ? dist / 2 * 3 : rrr == '1:2' ? dist * 2 : rrr == '1:4' ? dist * 4 : dist
tp := round_up(close + tp_dist, tp_sl_prec)
sl := round_up(close - dist, tp_sl_prec)
if label_style == 'text bubble'
label.new(bar_index, low, 'BUY', color=buy_label_color, style=label.style_label_up, textcolor=label_text_color, size=label_size)
else if label_style == 'triangle'
label.new(bar_index, low, 'BUY', yloc=yloc.belowbar, color=buy_label_color, style=label.style_triangleup, textcolor=TRANSPARENT, size=label_size)
else if label_style == 'arrow'
label.new(bar_index, low, 'BUY', yloc=yloc.belowbar, color=buy_label_color, style=label.style_arrowup, textcolor=TRANSPARENT, size=label_size)
label.new(show_tp_sl ? bar_index : na, low, 'TP: ' + str.tostring(tp) + ' SL: ' + str.tostring(sl), yloc=yloc.price, color=color.gray, style=label.style_label_down, textcolor=label_text_color)
if bear
last_signal := 'sell'
dist = atr * tp_sl_multi
tp_dist = rrr == '2:3' ? dist / 2 * 3 : rrr == '1:2' ? dist * 2 : rrr == '1:4' ? dist * 4 : dist
tp := round_up(close - tp_dist, tp_sl_prec)
sl := round_up(close + dist, tp_sl_prec)
if label_style == 'text bubble'
label.new(bear ? bar_index : na, high, 'SELL', color=sell_label_color, style=label.style_label_down, textcolor=label_text_color, size=label_size)
else if label_style == 'triangle'
label.new(bear ? bar_index : na, high, 'SELL', yloc=yloc.abovebar, color=sell_label_color, style=label.style_triangledown, textcolor=TRANSPARENT, size=label_size)
else if label_style == 'arrow'
label.new(bear ? bar_index : na, high, 'SELL', yloc=yloc.abovebar, color=sell_label_color, style=label.style_arrowdown, textcolor=TRANSPARENT, size=label_size)
label.new(show_tp_sl ? bar_index : na, low, 'TP: ' + str.tostring(tp) + ' SL: ' + str.tostring(sl), yloc=yloc.price, color=color.gray, style=label.style_label_up, textcolor=label_text_color)
alertcondition(bull or bear, 'BUY & SELL Signals', 'New signal!')
alertcondition(bull, 'BUY Signals (Only)', 'New signal: BUY')
alertcondition(bear, 'SELL Signals (Only)', 'New signal: SELL')
Gold Trading Strategy//@version=5
indicator("Gold Trading Strategy", overlay=true)
// Input parameters
shortMA = ta.sma(close, 9)
longMA = ta.sma(close, 21)
rsi = ta.rsi(close, 14)
= ta.bb(close, 20, 2)
// Time filter (IST time range)
timeFilter = (hour >= 12 and hour < 14) or (hour >= 18 and hour < 21)
// Buy condition
buyCondition = ta.crossover(shortMA, longMA) and rsi > 50 and close > bbMiddle and timeFilter
// Sell condition
sellCondition = ta.crossunder(shortMA, longMA) and rsi < 50 and close < bbMiddle and timeFilter
// Plot MAs
plot(shortMA, color=color.blue, title="9 MA")
plot(longMA, color=color.red, title="21 MA")
// Plot Bollinger Bands
plot(bbUpper, color=color.gray, title="BB Upper")
plot(bbMiddle, color=color.gray, title="BB Middle")
plot(bbLower, color=color.gray, title="BB Lower")
// Plot Buy & Sell signals
plotshape(series=buyCondition, location=location.belowbar, color=color.green, style=shape.labelup, size=size.large, title="Buy Signal")
plotshape(series=sellCondition, location=location.abovebar, color=color.red, style=shape.labeldown, size=size.large, title="Sell Signal")
// Plot Entry & Exit Markers
plotshape(series=buyCondition, location=location.belowbar, color=color.blue, style=shape.triangleup, size=size.large, title="Entry")
plotshape(series=sellCondition, location=location.abovebar, color=color.orange, style=shape.triangledown, size=size.large, title="Exit")
// Add text labels for entry and exit points
var float labelOffset = ta.atr(14) // Offset labels for better visibility
if buyCondition
label.new(x=time, y=low - labelOffset, text="Entry", color=color.blue, textcolor=color.white, size=size.large, style=label.style_label_down)
if sellCondition
label.new(x=time, y=high + labelOffset, text="Exit", color=color.orange, textcolor=color.white, size=size.large, style=label.style_label_up)
UT Bot Pro Final//@version=6
indicator("UT Bot Pro Final", overlay=true, max_lines_count=500)
// === INPUT PARAMETERS ===
// Core Settings
atr_multiplier = input.float(1.0, "ATR Multiplier", minval=0.5, maxval=5, step=0.1, group="Core Settings")
atr_period = input.int(6, "ATR Period", minval=1, maxval=20, group="Core Settings")
// Trend Filter
use_trend_filter = input.bool(true, "Enable Trend Filter", group="Trend Filter")
trend_length = input.int(50, "Trend SMA Period", minval=10, group="Trend Filter")
// Volume Filter
use_volume_filter = input.bool(true, "Enable Volume Filter", group="Volume Filter")
volume_ma_length = input.int(20, "Volume MA Period", minval=5, group="Volume Filter")
volume_threshold = input.float(1.25, "Volume Threshold %", step=0.1, group="Volume Filter")
// === CORE LOGIC ===
xATR = ta.atr(atr_period)
nLoss = atr_multiplier * xATR
price = close
// Trend Filter
trend_sma = ta.sma(price, trend_length)
valid_uptrend = not use_trend_filter or (price > trend_sma)
valid_downtrend = not use_trend_filter or (price < trend_sma)
// Volume Filter
volume_ma = ta.sma(volume, volume_ma_length)
volume_ok = volume > (volume_ma * volume_threshold)
// Trailing Stop
var float xATRTrailingStop = na
xATRTrailingStop := switch
na(xATRTrailingStop ) => price - nLoss
price > xATRTrailingStop and valid_uptrend => math.max(xATRTrailingStop , price - nLoss)
price < xATRTrailingStop and valid_downtrend => math.min(xATRTrailingStop , price + nLoss)
=> xATRTrailingStop
// Signal Generation
buy_signal = ta.crossover(price, xATRTrailingStop) and valid_uptrend and (use_volume_filter ? volume_ok : true)
sell_signal = ta.crossunder(price, xATRTrailingStop) and valid_downtrend and (use_volume_filter ? volume_ok : true)
// === VISUALS ===
plot(xATRTrailingStop, "Trailing Stop", color=color.new(color.purple, 0), linewidth=2)
plotshape(
buy_signal, "Buy", shape.triangleup,
location.belowbar, color=color.green,
text="BUY", textcolor=color.white, size=size.small)
plotshape(
sell_signal, "Sell", shape.triangledown,
location.abovebar, color=color.red,
text="SELL", textcolor=color.white, size=size.small)
// === ALERTS ===
alertcondition(buy_signal, "Long Entry", "Bullish breakout detected")
alertcondition(sell_signal, "Short Entry", "Bearish breakdown detected")
Buyer/Seller DominanceThis Script is to find out the Buyer / Seller Dominance for any Index - Sam Thomas
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)
Bollinger RSI Pro AdvancedЭтот индикатор Bollinger RSI Pro with Anomalous Volume Detection предназначен для торговли BTC/USDT на низких таймфреймах (1 минута – 1 час). Он сочетает полосы Боллинджера, RSI и анализ аномальных объемов, чтобы выявлять сильные движения цены, устраняя шум низкокачественной ликвидности
Oops ReversalOpen below prior days low and the Oops is triggered by a reversal through the low of the previous day.