MA Crossover StrategyExplanation
1.Inputs:
fastLength and slowLength: Control the lengths of the moving averages.
riskReward: Adjusts the risk-to-reward ratio for trade exits.
2.Logic:
A buy signal is triggered when the fast MA crosses above the slow MA.
A sell signal is triggered when the fast MA crosses below the slow MA.
Stops and limits are calculated dynamically based on the risk-reward ratio.
3.Visuals:
Moving averages (fastMA in blue, slowMA in red) are plotted.
Buy signals appear as green "Buy" labels below the bars.
Sell signals appear as red "Sell" labels above the bars.
Candlestick analysis
ramanand 0380% works on bank nifty and little less in nifty.
you should see the wonderful working of this strategy
Bullish and Bearish Harami DetectorHere’s a description of the script I built for you, designed for a **TradingView public indicator**:
### **Custom Bullish and Bearish Harami Detector with Timeframe Selection**
This custom Pine Script detects **Bullish Harami** and **Bearish Harami** candlestick patterns on the selected timeframe, with configurable settings for how many prior candles to consider for pattern detection.
---
### **Features:**
1. **Timeframe Selection:**
- **Input Field for Timeframe**: The script allows users to choose the timeframe for detecting patterns. For instance, you can set it to 1 hour, 4 hours, or even daily candles, ensuring the detection works as per your chosen market view.
- This is controlled by the `input.timeframe` function, and the user is prompted to select the desired timeframe (e.g., "1h", "4h", "1d").
2. **Enable/Disable Pattern Detection:**
- The user has the flexibility to enable or disable the detection of **Bullish Harami** and **Bearish Harami** patterns.
- The two toggles `detectBullishHarami` and `detectBearishHarami` allow users to turn on/off the detection for each pattern type.
3. **Customizable Bearish Candle Count for Bullish Harami:**
- The user can define how many prior **bearish candles** should be present before a **Bullish Harami** can be detected.
- The input variable `bearishCandleCountBullish` lets you choose how many previous bearish candles to consider for detecting a **Bullish Harami** (for example, the last 3, 5, or 6 bearish candles).
4. **Customizable Bullish Candle Count for Bearish Harami:**
- Similar to the Bullish Harami, the script allows the user to define how many prior **bullish candles** should be present before a **Bearish Harami** pattern is detected.
- The input variable `bearishCandleCountBearish` lets you select how many previous bullish candles to check for **Bearish Harami**.
5. **Pattern Detection Logic:**
- **Bullish Harami**: Detected when a bearish candle (open > close) is followed by a smaller bullish candle (open < close) where the entire body of the second candle is contained within the body of the first candle.
- **Bearish Harami**: Detected when a bullish candle (open < close) is followed by a smaller bearish candle (open > close) where the entire body of the second candle is contained within the body of the first candle.
- Both patterns are subject to the user-defined conditions (number of previous bearish or bullish candles).
6. **Visual Indicators:**
- **Bullish Harami**: A green label is plotted **below the bar** to indicate a **Bullish Harami** pattern.
- **Bearish Harami**: A red label is plotted **above the bar** to indicate a **Bearish Harami** pattern.
- The labels are displayed using the `plotshape` function with custom colors and text.
7. **Additional Settings**:
- The script includes tooltips and descriptions for each input to make the settings clear for users, allowing even those unfamiliar with candlestick patterns to understand and use the indicator effectively.
---
### **How It Works:**
- The script first checks the specified timeframe and identifies the current and previous candlesticks.
- It then applies the user-defined conditions for detecting the **Bullish Harami** and **Bearish Harami** patterns by checking the relative positions and sizes of the candlesticks over the selected number of previous candles.
- Once a pattern is detected, it plots a label on the chart (green for **Bullish Harami** and red for **Bearish Harami**) at the appropriate location (below or above the candle).
- The script updates dynamically as the price action unfolds.
---
### **Use Cases:**
- **Traders**: This script is useful for traders who want to identify reversal patterns like **Bullish Harami** and **Bearish Harami** on their chosen timeframes and adjust the sensitivity by changing the number of prior candles for pattern detection.
- **Customization**: Users can fine-tune the script’s settings based on their specific trading strategy, adjusting both the timeframe and the number of candles for pattern detection.
---
### **Conclusion:**
This indicator is an effective tool for detecting candlestick patterns, specifically **Bullish Harami** and **Bearish Harami**, on **TradingView**. By allowing customization in terms of timeframe and the number of prior candles to consider, users can tailor the script to fit their trading strategy and market conditions.
Cabal Dev IndicatorThis is a TradingView Pine Script (version 6) that creates a technical analysis indicator called the "Cabal Dev Indicator." Here's what it does:
1. Core Functionality:
- It calculates a modified version of the Stochastic Momentum Index (SMI), which is a momentum indicator that shows where the current close is relative to the high/low range over a period
- The indicator combines elements of stochastic oscillator calculations with exponential moving averages (EMA)
2. Key Components:
- Uses configurable input parameters for:
- Percent K Length (default 15)
- Percent D Length (default 3)
- EMA Signal Length (default 15)
- Smoothing Period (default 5)
- Overbought level (default 40)
- Oversold level (default -40)
3. Calculation Method:
- Calculates the highest high and lowest low over the specified period
- Finds the difference between current close and the midpoint of the high-low range
- Applies EMA smoothing to both the range and relative differences
- Generates an SMI value and further smooths it using a simple moving average (SMA)
- Creates an EMA signal line based on the smoothed SMI
4. Visual Output:
- Plots the smoothed SMI line in green
- Plots an EMA signal line in red
- Shows overbought and oversold levels as gray horizontal lines
- Fills the areas above the overbought level with light red
- Fills the areas below the oversold level with light green
This indicator appears designed to help traders identify potential overbought and oversold conditions in the market, as well as momentum shifts, which could be used for trading decisions.
Would you like me to explain any specific part of the indicator in more detail?
Good candlesHighlight candles which are making more than 3% move and volume is double of 9 days average volume
Multi-Timeframe Trend Indicatorbijrbgkh hjhr g kogkrrkkr rgorkgjirgj egigjgjrgj24. gj4igj4gpk ;ti4jg4gj4jg
jegjrgjjg
39jg49gj4pg4 ]eigj2g4j4go
RSI Monitor//@version=5
indicator("RSI Monitor", overlay=false)
// Configurações
rsi_length = input.int(14, title="Período do RSI") // Período do RSI
overbought_level = input.int(70, title="Nível de Sobrecompra") // Nível de sobrecompra
oversold_level = input.int(30, title="Nível de Sobrevenda") // Nível de sobrevenda
// Cálculo do RSI
rsi = ta.rsi(close, rsi_length)
// Condições para alertas
is_overbought = rsi > overbought_level
is_oversold = rsi < oversold_level
crossing_up = ta.crossover(rsi, oversold_level)
crossing_down = ta.crossunder(rsi, overbought_level)
// Plot do RSI
hline(overbought_level, "Sobrecompra", color=color.red)
hline(oversold_level, "Sobrevenda", color=color.green)
plot(rsi, color=color.blue, title="RSI")
// Alertas
alertcondition(is_overbought, title="RSI Sobrecomprado", message="O RSI está sobrecomprado!")
alertcondition(is_oversold, title="RSI Sobrevendido", message="O RSI está sobrevendido!")
alertcondition(crossing_up, title="RSI Cruzando para Cima", message="O RSI cruzou para cima do nível de sobrevenda!")
alertcondition(crossing_down, title="RSI Cruzando para Baixo", message="O RSI cruzou para baixo do nível de sobrecompra!")
// Mensagem no gráfico
bgcolor(is_overbought ? color.new(color.red, 90) : na, title="Alerta Sobrecompra")
bgcolor(is_oversold ? color.new(color.green, 90) : na, title="Alerta Sobrevenda")
Swing High/Low Buy/Sell Signals-royalif any candle break and close the signal candle take the entry.
Fourier Extrapolation of PriceThis advanced algorithm leverages Fourier analysis to predict price trends by decomposing historical price data into its frequency components. Unlike traditional algorithms that often operate in lower-dimensional spaces, this method harnesses a multidimensional approach to capture intricate market behaviors. By utilizing additional dimensions, the algorithm identifies and extrapolates subtle patterns and oscillations that are typically overlooked, providing a more robust and nuanced forecast.
Ideal for traders seeking a deeper understanding of market dynamics, this tool offers an enhanced predictive capability by aligning its calculations with the complexity of real-world financial systems.
Net Volume [SpeedBot]Net Volume Indicator
The Net Volume indicator provides an insightful view into market activity by calculating and displaying the Net Volume (delta) from up and down volume data, which is key for traders to gauge the strength of market movements.
Key Features:
Net Volume Calculation: The indicator calculates the difference between up and down volume, giving traders a visual representation of buying vs. selling pressure.
Customizable Timeframe: You can adjust the timeframe for volume analysis using custom time settings or default options, helping you get a clearer picture based on your preferred time window.
Visual Indicators: The histogram visually represents the Net Volume, with positive values (indicating buying pressure) shown in green and negative values (indicating selling pressure) in red. The Zero Line is plotted as a reference to distinguish between buying and selling volume dominance.
Flexible Plotting Styles: By default, the Net Volume is shown as a histogram for clear visibility, making it easy to spot shifts in volume momentum.
Error Handling: The indicator checks for the presence of volume data from the data provider, ensuring that the script works only when valid data is available.
How to Use:
Bullish Signals: When the Net Volume is positive (green bars), it suggests increasing buying activity, indicating bullish momentum.
Bearish Signals: When the Net Volume is negative (red bars), it suggests increasing selling activity, indicating bearish momentum.
Zero Line: The Zero Line (dashed line) helps identify periods where the market is balanced between buying and selling volume.
This indicator is useful for traders looking to analyze volume dynamics and understand the strength of price movements. It can be applied across various market conditions and timeframes, making it an excellent addition to any trading strategy.
3 Consecutive Higher Lows with Blue CandleCheckout this custom indicator I built. The Candlestick turns blue on the 3rd consecutive Higher Low. Cheers! - Celery
Vertical bands for trading sessionsThis simple tool will display vertical bars for each day at the specified time interval.
It helps highlighting the relevant trading session of the day.
User can set the starting and ending time of the trading session and for how many days in the past and in the future the bars should be displayed.
Fibonacci Trend HelperEl indicador "Fibonacci Trend Helper" combina herramientas avanzadas de análisis técnico para ayudarte a identificar:
Zonas clave de soporte y resistencia basadas en niveles de Fibonacci.
Señales de entrada y salida para compra y venta.
Tendencias del mercado con cuatro tipos de señales.
Visualización de la fuerza de la tendencia con un gráfico de movimiento.
Volume Heatmap Candles with Dynamic Volume Heatmap BarsEste script combina um indicador de volume avançado com um mapa de calor dinâmico para visualização de candles e barras de volume. Ele utiliza cálculos de desvio padrão para identificar níveis significativos de volume e colore os candles e barras de volume dinamicamente com base nesses valores, fornecendo insights claros sobre a atividade de volume no mercado.
Funcionalidades do Script
Candles Coloridos Dinamicamente:
Os candles são coloridos de acordo com os desvios padrão do volume em relação à média, destacando períodos de volumes normais, médios, altos e extremamente altos.
Barras de Volume Dinâmicas:
Exibe barras de volume com cores representando a intensidade do volume, facilitando a identificação de picos ou quedas relevantes.
Ajustes Personalizáveis:
Comprimento para cálculo da média móvel (MA) e desvio padrão.
Thresholds para identificar diferentes níveis de volume (normal, médio, alto e extra alto).
Escolha de cores para candles e barras de volume, garantindo flexibilidade para adaptar o visual ao seu estilo.
Configuração Simplificada:
Habilite/desabilite os candles coloridos ou as barras de volume com opções práticas de controle.
Defina valores personalizados para atender suas necessidades específicas de análise.
Parâmetros Ajustáveis
Comprimento da Média Móvel e Desvio Padrão:
Controle o período usado para cálculos de média móvel (MA) e desvio padrão para maior precisão.
Padrão: 20 períodos.
Thresholds de Volume:
Identifique facilmente a intensidade do volume em níveis distintos com base nos desvios padrão configuráveis.
Padrões: Extra alto: 4, Alto: 2.5, Médio: 1, Normal: -0.5.
Cores Customizáveis:
Ajuste as cores dos candles e barras de volume para volumes ascendentes e descendentes.
Ideal para Quem?
Traders que buscam insights claros sobre volume e momentos críticos no mercado.
Analistas técnicos que utilizam desvios padrão como base para identificar padrões significativos de volume.
Qualquer usuário do TradingView que deseja combinar volume e visualizações de mapa de calor.
Como Usar?
Adicione o script ao seu gráfico no TradingView.
Configure os parâmetros de acordo com suas preferências, como comprimento da média móvel, thresholds de volume e cores.
Observe os candles e barras de volume coloridos dinamicamente para identificar mudanças críticas na atividade do mercado.
Support, Resistance, MA, and ADXSummary
This comprehensive script provides traders with a tool that highlights critical levels of support and resistance, detects significant price breakouts with volume confirmation, identifies potential reversals with wick analysis, and plots a moving average that changes color based on trend strength as indicated by the ADX. It is useful for spotting entry and exit points, confirming breakouts, and identifying trend direction and strength.
Improved Bearish Engulfing//@version=6
indicator("Improved Bearish Engulfing", overlay=true)
// Define conditions for a Bearish Engulfing pattern
is_bullish_candle = close > open // Previous candle is bullish
is_bearish_candle = open > close // Current candle is bearish
engulfing_body = open >= close and close <= open // Current candle engulfs the previous candle's body
// Combine all conditions to detect a Bearish Engulfing pattern
bearish_engulfing = is_bullish_candle and is_bearish_candle and engulfing_body
// Plot the signal with bar coloring
barcolor(bearish_engulfing ? color.red : na, offset=-1) // Color previous bar (for context)
// Plot a shape on the chart when a Bearish Engulfing pattern is detected
plotshape(bearish_engulfing, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small)
Long/Short Signal Predictor with Debug - DaniyalThe script only generates signals when the specific conditions for a long or short position (RSI, MACD, EMA, volume spike, and candle patterns) are met. If none of these conditions are true for the given candles, no signals will appear.
Missing Overlay Setting:
Ensure the indicator is added to the main chart (not the separate pane). This script is designed to overlay signals directly on the price chart.
Volume Data:
If your asset lacks sufficient volume spikes, it might not trigger the signal. The script filters based on volume exceeding a threshold.
Median with Bands, EMA & Background Fill [SpeedBot]Median with Bands, EMA & Background Fill
The Median with Bands, EMA & Background Fill indicator is designed to help traders easily identify trends and potential reversals by combining key technical elements: the Median, ATR Bands, and Exponential Moving Average (EMA), along with dynamic background fills for visual clarity.
Key Features:
Median Calculation: The indicator uses the 50th percentile (median) of a user-defined source (such as the average of the high and low prices) to find the center of price action over a given period.
ATR Bands: Based on the Average True Range (ATR), the upper and lower bands are plotted above and below the median, creating a volatility-based range. These bands help visualize market fluctuations and potential breakouts.
Median EMA: An Exponential Moving Average (EMA) of the median is plotted, which helps smooth out price movements and identify trend direction with greater sensitivity to recent price action.
EMA vs Median Fill: A dynamic fill is applied between the median line and the EMA line. If the median is above the EMA, the fill is green (bullish), and if the median is below the EMA, the fill is red (bearish), making it easy to visually spot the prevailing trend.
Background Color: The background color dynamically changes based on the position of the median relative to the EMA. Green indicates a bullish trend, while red signals a bearish trend.
Alerts for Trend Crosses: Alerts can be set up when the median crosses above (bullish) or below (bearish) the EMA, signaling a potential change in market direction.
How to Use:
Bullish Trend: When the median crosses above the EMA, the fill turns green and the background color becomes a lighter green, indicating a bullish trend.
Bearish Trend: When the median crosses below the EMA, the fill turns red and the background becomes a darker red, signaling a bearish trend.
Volatility Range: The ATR bands can help identify periods of high or low volatility. When price breaks through the upper or lower ATR bands, it may indicate a breakout or a significant change in market conditions.
This indicator is perfect for traders who want a clear visual representation of price trends, volatility, and potential reversals, all within a single, easy-to-read chart.
Dynamic Scalping Indicator with Real-Time Updatesthis is just a indicator with real time data analysis
Candle Size TrackerUse Case
This script is particularly useful for traders who want to identify periods of increasing candle volatility or momentum.
Functionality
Candle Size Calculation:
The script calculates the size of each candle by subtracting the low price from the high price.
Comparison with Previous Candle:
It checks if the current candle's size is greater than or equal to the previous candle's size. If true, a visual label is added above the candle.
Dynamic Label Management:
To avoid cluttering the chart, it uses a lookback period (lookback) to remove old labels. Labels are removed if they exceed the defined lookback period.
Customization Options:
Lookback Period: You can set the number of bars to retain labels (default: 2).
Vertical Offset: Adjusts the position of the label above the candle relative to the high price.
Label Opacity: Controls the transparency of the label (default: 50%).
The full script:
//@version=5
indicator("Candle Size Tracker", overlay=true)
// Calculate the size of each candle
candle_size = high - low
// Check if the current candle size is bigger than or equal to the previous one (only for the last two candles)
is_bigger = candle_size >= nz(candle_size )
// Function to remove old labels based on the lookback period
f_remove_labels(lbl_arr, lb) =>
temp_arr = array.new_label()
len = array.size(lbl_arr)
if (len > 0)
for i = 0 to len - 1
lbl = array.get(lbl_arr, i)
idx = label.get_x(lbl)
if ((bar_index - idx) >= lb)
label.delete(lbl)
else
array.push(temp_arr, lbl)
temp_arr
// Initialize an array to store labels
var label_arr = array.new_label()
// Input for lookback period
lookback = input.int(2, title="Lookback Period", minval=1)
// Vertical offset (adjust this value to control the label position)
vertical_offset = input.float(0.00005, title="Vertical Offset (relative to high)", step=0.1)
// Set label opacity (50% transparency)
label_opacity = 50 // Opacity value (0 to 100)
label_color = color.new(color.green, label_opacity)
// Draw a label above the candle if the condition is met (for the last two candles)
if (is_bigger)
lbl = label.new(x=bar_index, y=high + vertical_offset, style=label.style_circle, color=label_color, size=size.tiny)
array.push(label_arr, lbl)
// Remove old labels based on the lookback period
label_arr := f_remove_labels(label_arr, lookback)
Confirmación de short n0Confirmación de cruce bajista en MACD en el marco de 15m.
RSI moviéndose hacia 50 en los marcos de 15m y 1h.
Volumen creciente en velas rojas como confirmación de presión vendedora.
15min Candle Scanner with Date SelectorPlease select the date from the input box.
This scanner will scan the percentage change of the first 15min candles (including wick)