Bollinger Band Strategy - long / short - xmatter
Long Entry: When the price closes above the upper Bollinger Band.
Short Entry: When the price closes below the lower Bollinger Band.
Exit Trades: Close both long and short positions when the price crosses the Bollinger Band midline (basis line).
Индикаторы и стратегии
MA + RSI with Highlight and Value Displaygoodluck dui dẻ là chính chứ không biết code nó bắt mô tả dài chịu luôn:
Đọc truyện cho vui :)))))
Lăng Hàn - Một Đan Đế đại danh đỉnh định mang trong thân mình tuyệt thế công pháp vì truy cầu bước cuối, xé bỏ tấm màn thành thần nhưng thất bại đã phải bỏ mình. Thế nhưng ông trời dường như không muốn tuyệt dường người, Lăng Hàn đã được trọng sinh vào một thiếu niên cùng tên và điều may mắn nhất là "Bất Diệt Thiên Kinh" ấn ký vẫn còn nằm nguyên trong tâm thức hắn
MKD 1//@version=5
indicator("Buy and Sell Indicator with Bar Labels", overlay=true)
// Define short and long period for moving averages
shortPeriod = input.int(9, title="Short Period SMA")
longPeriod = input.int(21, title="Long Period SMA")
// Calculate the moving averages
shortSMA = ta.sma(close, shortPeriod)
longSMA = ta.sma(close, longPeriod)
// Plot the moving averages
plot(shortSMA, color=color.blue, linewidth=2, title="Short Period SMA")
plot(longSMA, color=color.red, linewidth=2, title="Long Period SMA")
// Generate Buy and Sell signals based on crossover
buySignal = ta.crossover(shortSMA, longSMA)
sellSignal = ta.crossunder(shortSMA, longSMA)
// Create labels for buy and sell signals on bars
if buySignal
label.new(bar_index, low, "BUY", style=label.style_label_up, color=color.green, textcolor=color.white, size=size.small, yloc=yloc.belowbar)
if sellSignal
label.new(bar_index, high, "SELL", style=label.style_label_down, color=color.red, textcolor=color.white, size=size.small, yloc=yloc.abovebar)
// Add alerts for Buy and Sell signals
alertcondition(buySignal, title="Buy Signal Alert", message="Buy Signal Triggered!")
alertcondition(sellSignal, title="Sell Signal Alert", message="Sell Signal Triggered!")
Gelişmiş Bollinger Bands & RSI StrategyUzun bir şekilde açıklamak gerekirse Bollinger ve RSI kullanarak strateji oluşturdum.
Precision Flow IndicatorIts BTMM, SMC and Silver put in one so that you can have a high probability trades
Junates HMA BandsThis indicator uses HMA moving average to create a bollinger-like bands with -+2% deviation
Average Bitcoin Price Range (ABPR)Индикатор ABPR предназначен для анализа диапазона цен биткоина, взвешенного по объему. Он отображает, где текущая цена биткоина находится относительно средних значений High и Low за выбранный период, с учетом активности объемов. Это делает ABPR мощным инструментом для оценки рыночных настроений и идентификации ключевых зон для торговли.
Преимущества ABPR при анализе других криптовалют
Базовый актив для рынка:
Биткоин, как ведущая криптовалюта, часто служит индикатором настроений на рынке криптовалют. Анализ диапазона цен BTC помогает предсказывать движение других активов.
Учет объема:
Индикатор учитывает объемы при расчетах, что позволяет оценить значимость текущего движения цены.
Подтверждение трендов:
ABPR может использоваться для подтверждения общерыночных трендов. Если BTC показывает перекупленность или перепроданность, это может сигнализировать о похожих состояниях на других активах.
Объективность:
Позволяет трейдерам не отвлекаться на шум других инструментов и сконцентрироваться на движении цены биткоина, чтобы принимать обоснованные решения по другим криптовалютам.
Как помогает ABPR
Идентификация зон перекупленности и перепроданности:
Значения >80 говорят о перекупленности рынка. Это может быть сигналом для фиксации прибыли.
Значения <20 указывают на перепроданность. Это может быть сигналом для входа в рынок.
Оценка рыночной силы:
Значение около 50 показывает, что цена находится в сбалансированном состоянии, что полезно для оценки текущего рыночного тренда.
Прогнозирование движения альткоинов:
Поскольку движение большинства альткоинов коррелирует с биткоином, понимание его рыночного состояния дает ценную информацию для торговли другими активами.
Как пользоваться ABPR
Установите индикатор на любом графике TradingView. Независимо от текущего актива, индикатор будет анализировать данные по тикеру BTCUSD ( BINANCE:BTCUSDT ).
Интерпретируйте значения:
>80: Возможна коррекция вниз, рынок перекуплен.
<20: Возможен рост, рынок перепродан.
50: Цена сбалансирована, можно ожидать движения в любую сторону.
Используйте алерты:
Настройте алерты на зонах перекупленности (>70) и перепроданности (<30) для своевременного реагирования.
Вывод:
ABPR — это простой, но мощный инструмент, который помогает трейдерам принимать взвешенные решения, анализируя поведение биткоина. Это особенно полезно для тех, кто использует BTC в качестве индикатора для торговли другими криптовалютами.
EMA 14/25/55The indicator calculates three Exponential Moving Averages (EMAs) with periods of 14, 25, and 55. These EMAs are commonly used for analyzing short-term, medium-term, and long-term price trends. The plots are color-coded (red for 14, orange for 25, and aqua for 55) for easy differentiation, helping traders identify trend direction and potential crossovers for trading signals.
EMA 14/25/55The indicator calculates three Exponential Moving Averages (EMAs) with periods of 14, 25, and 55. These EMAs are commonly used for analyzing short-term, medium-term, and long-term price trends. The plots are color-coded (red for 14, orange for 25, and aqua for 55) for easy differentiation, helping traders identify trend direction and potential crossovers for trading signals.
EMA & RSI Custom Strategy 94300vffgfgfvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvdddddddddddddddddddddddddddddddddddddddddddddd
ffffffffffd
dfffffffffffff
fdddddddddddddd
fdddddddddddddd
fddddddddddddd
Triple MATriple Moving Average (TMA) Indicator
Discover the power of trend analysis with the Triple Moving Average (TMA) indicator! This tool is designed to give you a clear and dynamic view of market trends using multiple simple moving averages (SMAs). Whether you're a beginner or an experienced trader, this indicator can help you identify potential market reversals, key price levels, and long-term trends.
Features:
5 Configurable Moving Averages: Customize the lengths to suit your trading strategy.
Dynamic Color Coding: Easily spot the relationships between short-, medium-, and long-term trends.
Clean Visualization: Transparent overlays ensure clarity without cluttering your chart.
Why Use TMA?
Moving averages are fundamental tools for traders, and TMA brings together multiple SMAs to help you stay ahead of the market. It’s perfect for identifying momentum shifts and filtering out noise, giving you the edge in any market condition.
If you find this indicator helpful, please support me by sharing your feedback and suggestions. Together, we can build tools that make trading simpler and more efficient for everyone!
Happy trading, and thank you for your support! 😊
Pi - Intraday High-Low PredictorCustomizable Inputs:
Users can adjust settings like table visibility, line styles, label sizes, and colors for high/low levels.
Flexibility in choosing table position and text size.
Predicted High/Low Levels:
Calculates small, regular, and large ranges for intraday high/low levels using the Pi multiplier on the opening range.
Dynamically plots these levels with customizable visuals.
Historical Range Support:
Optionally overlays historical predicted ranges on the chart.
Table for Summary:
Displays a table summarizing predicted values with dynamic placement.
Ekranın Her Yerine Gökkuşağı EfektiEkranın Her Yerine Gökkuşağı Efekti Ekranın Her Yerine Gökkuşağı Efekti Ekranın Her Yerine Gökkuşağı Efekti Ekranın Her Yerine Gökkuşağı Efekti Ekranın Her Yerine Gökkuşağı Efekti Ekranın Her Yerine Gökkuşağı Efekti Ekranın Her Yerine Gökkuşağı Efekti Ekranın Her Yerine Gökkuşağı Efekti Ekranın Her Yerine Gökkuşağı Efekti Ekranın Her Yerine Gökkuşağı Efekti Ekranın Her Yerine Gökkuşağı Efekti Ekranın Her Yerine Gökkuşağı Efekti Ekranın Her Yerine Gökkuşağı Efekti Ekranın Her Yerine Gökkuşağı Efekti Ekranın Her Yerine Gökkuşağı Efekti Ekranın Her Yerine Gökkuşağı Efekti Ekranın Her Yerine Gökkuşağı Efekti Ekranın Her Yerine Gökkuşağı Efekti Ekranın Her Yerine Gökkuşağı Efekti
NY Session (MST)Highlights the New York session in MST. Highlights from 730am to 200pm to get a quick visual of previous sessions or overnight data.
Scalping EMA+RSI+BB carloss//@version=5
indicator("Scalping EMA+RSI+BB", overlay=true)
// Configuración de la EMA de 20 períodos
emaLength = 20
ema20 = ta.ema(close, emaLength)
// Cambiar color de la EMA según tendencia
emaColor = ema20 > ema20 ? color.green : color.red
plot(ema20, color=emaColor, linewidth=2, title="EMA 20")
// Configuración de las Bandas de Bollinger
bbLength = 20
bbMult = 2.0
basis = ta.sma(close, bbLength)
deviation = ta.stdev(close, bbLength)
upperBB = basis + bbMult * deviation
lowerBB = basis - bbMult * deviation
fill(plot(upperBB, color=color.blue, title="Banda Superior"),
plot(lowerBB, color=color.blue, title="Banda Inferior"), color=color.new(color.blue, 90))
// Configuración del RSI
rsiLength = 14
rsiOverbought = 70
rsiOversold = 30
rsi = ta.rsi(close, rsiLength)
hline(rsiOverbought, "Sobrecompra", color=color.red, linestyle=hline.style_dotted)
hline(rsiOversold, "Sobreventa", color=color.green, linestyle=hline.style_dotted)
hline(50, "Neutral", color=color.gray, linestyle=hline.style_dotted)
// Señales de compra y venta
buySignal = rsi < rsiOversold and close < lowerBB
sellSignal = rsi > rsiOverbought and close > upperBB
// Mostrar señales en el gráfico
plotshape(series=buySignal, title="Compra", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(series=sellSignal, title="Venta", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// Mensajes para la estrategia
alertcondition(buySignal, title="Alerta de Compra", message="Señal de compra detectada")
alertcondition(sellSignal, title="Alerta de Venta", message="Señal de venta detectada")
Scalping Indicator//@version=5
indicator("Scalping Indicator", overlay=true)
// Input parameters
fastEMA = input(9, title="Fast EMA Length")
slowEMA = input(21, title="Slow EMA Length")
signalSMA = input(9, title="Signal SMA Length")
rsiLength = input(14, title="RSI Length")
rsiOverbought = input(70, title="RSI Overbought Level")
rsiOversold = input(30, title="RSI Oversold Level")
// EMA calculations
fastEma = ta.ema(close, fastEMA)
slowEma = ta.ema(close, slowEMA)
// MACD calculations
= ta.macd(close, fastEMA, slowEMA, signalSMA)
// RSI calculation
rsi = ta.rsi(close, rsiLength)
// Entry and exit conditions
longCondition = ta.crossover(fastEma, slowEma) and macdLine > signalLine and rsi < rsiOverbought
shortCondition = ta.crossunder(fastEma, slowEma) and macdLine < signalLine and rsi > rsiOversold
// Plot buy/sell signals
plotshape(longCondition, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(shortCondition, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// Plot EMA lines
plot(fastEma, title="Fast EMA", color=color.blue)
plot(slowEma, title="Slow EMA", color=color.orange)
// Background highlights
bgcolor(longCondition ? color.new(color.green, 90) : na, title="Long Background")
bgcolor(shortCondition ? color.new(color.red, 90) : na, title="Short Background")
8/21 EMA Crossover8/21 EMA Crossover
Use the Stock Screener for EMA Crossovers
Step 1: Open the Screener
On TradingView, at the bottom of the chart, click on Screener.
Select Stock Screener (or Crypto Screener, depending on what you’re analyzing).
Step 2: Apply Filters
Click Filters in the Stock Screener.
Use the following:
Moving Average Exponential filters:
Add EMA 8 > EMA 21 to indicate the crossover.
Additional filters:
Use other filters like volume, market cap, or sector to refine your list.
Note:
TradingView's built-in screener has limited EMA crossover functionality. If you don’t find direct crossover filters, you’ll need to use Pine Script or alerts (described below).
2. Set Up Alerts for EMA Crossovers on Watchlists
Step 1: Create a Watchlist
Add stocks to your Watchlist:
In the TradingView sidebar, click the + icon to create or modify a watchlist.
Add stocks you want to monitor.
Step 2: Set Alerts for Each Stock
Open the chart of a stock from your watchlist.
Click Alerts (the clock icon in the toolbar or right-click on the chart and select Add Alert).
Configure the alert:
Condition: Choose 8 EMA crossing 21 EMA.
Options:
Crossing Up: Alerts when the 8 EMA crosses above the 21 EMA.
Customize alert frequency (e.g., once per bar close, every time, etc.).
Set up notifications: Email, SMS, or app notifications.
Repeat this for each stock in your watchlist.
3. Use Pine Script for Advanced Multi-Stock Scanning
Step 1: Create a Pine Script for EMA Crossover
You can automate the process using Pine Script and run it across multiple stocks.
Here’s an example:
//@version=5
indicator("Multi-Stock EMA Crossover", overlay=false)
shortEMA = ta.ema(close, 8)
longEMA = ta.ema(close, 21)
crossoverSignal = ta.crossover(shortEMA, longEMA)
label.new(bar_index, na, "8 EMA > 21 EMA", style=label.style_circle, color=color.green) if crossoverSignal
alertcondition(crossoverSignal, title="EMA Crossover", message="8 EMA crossed above 21 EMA")
Step 2: Add the Script to Your Chart
Go to Pine Editor, paste the code, and Add to Chart.
Save the script as a custom indicator for easier reuse.
Step 3: Set Alerts for the Script
Once the script is added, click on the Alert button.
Select the custom indicator’s EMA Crossover condition to trigger alerts when the crossover occurs.
Step 4: Scan Through Watchlist
Apply the script to your charts and use the Arrow Keys to quickly scroll through your watchlist.
Crossovers will be highlighted, making it easier to identify opportunities.
4. Bulk Alerts with Premium Account
Premium users can set up up to 400 alerts simultaneously. Use this capability to monitor your entire watchlist for EMA crossovers.
Go to Alerts > Set up an Alert for Each Stock using the EMA crossover conditions.
Use the Alert Manager to manage and monitor all alerts efficiently.
By combining the Stock Screener, Watchlists, and Alerts with Pine Script, you can seamlessly scan for EMA crossovers across multiple stocks in TradingView. Let me know if you'd like help customizing your filters or scripts further!
lib_statemachine_modifiedLibrary "lib_statemachine_modified"
Modified to fix bugs and create getState and priorState methods.
method step(this, before, after, condition)
Namespace types: StateMachine
Parameters:
this (StateMachine)
before (int) : (int): Current state before transition
after (int) : (int): State to transition to
condition (bool) : (bool): Condition to trigger the transition
Returns: (bool): True if the state changed, else False
method step(this, after, condition)
Namespace types: StateMachine
Parameters:
this (StateMachine)
after (int) : (int): State to transition to
condition (bool) : (bool): Condition to trigger the transition
Returns: (bool): True if the state changed, else False
method currentState(this)
Namespace types: StateMachine
Parameters:
this (StateMachine)
method previousState(this)
Namespace types: StateMachine
Parameters:
this (StateMachine)
method changed(this, within_bars)
Namespace types: StateMachine
Parameters:
this (StateMachine)
within_bars (int) : (int): Number of bars to look back for a state change
Returns: (bool): True if a state change occurred within the timeframe, else False
method reset(this, condition, min_occurrences)
Namespace types: StateMachine
Parameters:
this (StateMachine)
condition (bool) : (bool): Condition to trigger the reset
min_occurrences (int) : (int): Minimum number of times the condition must be true to reset
Returns: (bool): True if the state was reset, else False
StateMachine
Fields:
state (series int)
neutral (series int)
enabled (series bool)
reset_counter (series int)
prior_state (series int)
last_change_bar (series int)
Sandra's Golden & Dead Cross StrategyDescription:
This script identifies "Golden Cross" and "Dead Cross" patterns using the 50-period and 200-period exponential moving averages (EMAs). Golden Cross signals potential bullish trends, while Dead Cross signals bearish trends.
Additionally, RSI (Relative Strength Index) is used as a confirmation filter:
Long Entry: Golden Cross with RSI above 60.
Long Exit: Dead Cross after a long position.
Short Entry: Dead Cross with RSI below 40.
Short Exit: Golden Cross after a short position.
Alerts:
The script includes alert conditions for all entry and exit signals. You can configure alerts in the TradingView interface to notify you of trading opportunities.
Visuals:
The script provides clear visual labels for long/short entries and exits directly on the chart, along with plotted EMAs and RSI levels for reference.
How to Use:
Add the script to your chart.
Use the plotted signals and alerts to identify potential entry and exit points.
Customize the RSI and EMA parameters if needed for your specific trading strategy.
ETH/USDT Multi-Indicator Analysis **ETH/USDT Multi-Indicator Bullish Signal Script**
This Pine Script combines multiple popular technical indicators to identify potential bullish signals on the ETH/USDT pair using the 4-hour timeframe. It leverages historical data and aligns the following indicators for increased accuracy:
1. **RSI (Relative Strength Index):** Signals oversold conditions when crossing above 30.
2. **Bollinger Bands:** Identifies price bounces when the price touches the lower band and moves upward.
3. **EMA (Exponential Moving Averages):** Detects bullish momentum when the 50-period EMA crosses above the 200-period EMA (Golden Cross).
4. **MACD (Moving Average Convergence Divergence):** Confirms bullish trends when the MACD line crosses above the Signal line.
When all these conditions align, a **Bullish Signal** is plotted on the chart, helping traders spot potential upward price movements.
---
### **Key Features**
- Visualizes individual indicator signals for better understanding.
- Marks combined bullish signals when all conditions are met.
- Includes Bollinger Bands and EMA lines for additional context.
---
### **How to Use**
1. Apply this script to the ETH/USDT chart on the 4-hour timeframe.
2. Look for "Bullish Signal" labels on the chart, which indicate high-probability setups for upward price movement.
3. Backtest the strategy using TradingView's Replay Mode to observe how it performs historically.
---
### **Disclaimer**
This script is intended for educational purposes and should not be considered financial advice. Always perform your own analysis and manage risks appropriately when trading.
My script// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © junxi6147
//@version=6
indicator("My script")
plot(close)