Average Price in Time PeriodsThis Pine Script calculates and displays average prices for two specific time ranges during a trading day: from 09:00 to 22:30 and from 22:30 to 09:00. It updates the average prices by summing the closing prices in each time frame and then plots them as green and red lines, respectively. The script also displays black lines outside these specific time ranges to prevent "gaps" in the chart during off-peak hours. The displayed lines are dynamically adjusted based on the current time, with the green line for 09:00-22:30 and the red line for 22:30-09:00.
Ciclos
AyebaleJohnBob-Trading-BotAyebale John Bob - Trading-Bot Overview:
This trading strategy is designed to automate trades based on the "Smart Money Concepts" and "Fair Value Gaps" (FVG). The bot leverages multiple technical indicators and logic to execute buy and sell trades with dynamic stop-loss and take-profit (TP) levels.
Key Features:
User Inputs:
Bull & Bear Colors: Customizable colors for bullish and bearish trends.
Fair Value Gap (FVG) Color: Customizable color for visualizing FVG zones.
ATR Multiplier: Defines the sensitivity of stop-loss calculations based on Average True Range (ATR).
Take-Profit Multipliers: A set of five multipliers that scale take-profit levels dynamically.
Trade Signals:
Buy Signal: Generated when the price crosses above a certain low or when a bullish Fair Value Gap (FVG) is detected.
Sell Signal: Triggered when the price crosses below a high or when a bearish FVG is identified.
Stop-Loss & Take-Profit Logic:
Stop-loss levels are calculated using ATR and the specified multiplier.
Take-profit levels are dynamically determined based on the ATR multipliers, with five different levels for each trade.
Trade Execution:
The strategy allows for five simultaneous buy or sell entries, with each having its own take-profit and stop-loss levels.
The bot operates continuously, without any session restrictions, allowing trades at any time.
Visual Indicators:
Entry Signals: Visual shapes (green for buy and red for sell) appear on the chart to indicate entry points.
Progress Bar: A real-time progress bar is plotted, tracking the percentage gain/loss from the entry price.
Trade Information Table:
A dynamic table is used to display important trade information, including entry price, take-profit levels, and stop-loss. This table updates for each new trade (buy or sell), and shows real-time trade progress.
Risk Management:
The stop-loss is dynamically adjusted based on the ATR calculation, ensuring that the bot adapts to changing market volatility.
Take-profit levels are spread across five increments, offering multiple opportunities for profit capture.
Summary:
The Ayebale John Bob - Trading-Bot is designed to implement a sophisticated strategy that combines smart money concepts, fair value gap analysis, and robust risk management. It provides real-time trade information, progress tracking, and a flexible approach to stop-loss and take-profit strategies. The bot is ideal for traders looking to automate trades and visually track their progress directly on the chart.
RJ Best Strategy - CCI VWEMA RSI Buy SignalRJ Best Strategy - CCI VWEMA RSI Buy Signal, This is a very useful one, just see the lines cross over of 5min, 15mins and 1hour CCI time frames and take the trade
Daily COC Strategy with SHERLOCK WAVESThis indicator implements a unique trading strategy known as the "Daily COC (Candle Over Candle) Strategy" enhanced with "SHERLOCK WAVES" for pattern recognition. It's designed for traders looking to capitalize on specific candlestick formations with a negative risk-reward ratio, with the aim of achieving a high win rate (over 70%) through numerous trading opportunities, despite each trade having a higher risk relative to the reward.
Key Features:
Pattern Recognition: Identifies a setup based on three consecutive candles - a red candle followed by a shooting star, then an entry candle that does not break below the shooting star's low.
Negative Risk/Reward Trade Selection: Focuses on entries where the potential stop loss is greater than the take profit, banking on a high win rate to offset the individual trade's negative risk-reward ratio.
Visual Signals:
Green Label: Marks potential entry points at the high of the candle before the entry.
Green Dot: Indicates a winning trade closure.
Red Dot: Signals a losing trade closure.
Blue Circle: Warns when the current candle is within 2% of breaking above the previous candle's high, suggesting a potential setup is developing.
Green Circle: Plots the take profit level.
Red Circle: Plots the stop loss level.
Dynamic Statistics: A live updating label showing the number of trades, wins, losses, open trades, current account balance, and win percentage.
Customizable Parameters:
Risk % per Trade: Adjust the percentage of your account balance you're willing to risk on each trade.
Initial Account Balance: Set your starting balance for tracking performance.
Start Date for Strategy: Define when the strategy should start calculating from, allowing for backtesting.
Alerts:
An alert condition is set for when a potential trade setup is developing, helping traders prepare for entries.
Usage Tips:
This strategy is predicated on the idea that a high win rate can compensate for the negative risk-reward ratio of individual trades. It might not suit all market conditions or traders' risk profiles.
Use this strategy in conjunction with other analysis methods to validate trade setups.
Note: Always backtest thoroughly before applying to live markets. Consider this tool as part of a broader trading strategy, not a standalone solution. Monitor your win rate and adjust your risk management accordingly to ensure the strategy remains profitable over time.
This description now correctly explains the purpose behind the negative risk-reward ratio in the context of your trading strategy.
Custom Time K-barCustom Time K-bar Indicator
This custom indicator highlights specific times on the chart, helping traders identify key moments based on user-defined time intervals. The script is designed to highlight two distinct times with different colors, which can be customized to suit the trader's needs.
Features:
Custom Time Inputs: Set two specific times in hours and minutes (e.g., 09:00 and 22:30).
Highlighting on Chart: The chart background changes color when the current time matches the defined times. Green for the first time and red for the second time.
Dynamic Labels: Labels display the exact time at the lowest and highest points of the corresponding candles, showing the user-defined times in a clear and visible format.
Timezone Adjustment: The indicator is adjusted for the GMT+8 timezone.
Customization:
Easily adjust the two key times and customize the colors for highlighting.
The script allows for easy tracking of key time events, which can be crucial for strategies that rely on specific timings during market hours.
This indicator is ideal for traders who want to track and visualize important times dynamically on the chart. Whether you're focusing on specific market events or just want to see certain time intervals highlighted, this script can help streamline your analysis.
Romlops MA'sThis is an indicator that lets you have up to 5 EMA's and 5 SMA's, plus 2 extra MA's for price forecasting for BTC.
DMI Crosses with OBV and MACD ConfirmationDMI crosses as start then obv divergence and MACD crosses as confirmation,
don't use as primary trading strategy
feedback welcome!
Order Block, FVG, Breaker Block Detector//@version=5
indicator("Order Block, FVG, Breaker Block Detector", overlay=true)
// Input parametreleri
lookback = input.int(5, title="Order Block Lookback Period")
fvg_lookback = input.int(3, title="FVG Lookback Period")
// Order Block Tespiti
var float order_block_high = na
var float order_block_low = na
if barstate.isconfirmed
// Yükseliş Order Block
if close > ta.highest(high, lookback)
order_block_high := ta.lowest(low, lookback)
order_block_low := na
// Düşüş Order Block
else if close < ta.lowest(low, lookback)
order_block_low := ta.highest(high, lookback)
order_block_high := na
// Order Block Çizimi
plotshape(series=not na(order_block_high), location=location.belowbar, color=color.green, style=shape.labelup, text="OB-H")
plotshape(series=not na(order_block_low), location=location.abovebar, color=color.red, style=shape.labeldown, text="OB-L")
// Fair Value Gap (FVG) Tespiti
var float fvg_high = na
var float fvg_low = na
if barstate.isconfirmed and bar_index >= fvg_lookback
// FVG için üç mumluk yapı kontrolü
if low > high and high < low
fvg_high := high
fvg_low := low
else
fvg_high := na
fvg_low := na
// FVG Çizimi
plotshape(series=not na(fvg_high), location=location.abovebar, color=color.blue, style=shape.labeldown, text="FVG")
plotshape(series=not na(fvg_low), location=location.belowbar, color=color.blue, style=shape.labelup, text="FVG")
// Breaker Block Tespiti
var float breaker_high = na
var float breaker_low = na
if barstate.isconfirmed
// Yükseliş Breaker Block
if close > order_block_high and not na(order_block_high)
breaker_high := order_block_high
breaker_low := na
// Düşüş Breaker Block
else if close < order_block_low and not na(order_block_low)
breaker_low := order_block_low
breaker_high := na
// Breaker Block Çizimi
plotshape(series=not na(breaker_high), location=location.belowbar, color=color.orange, style=shape.labelup, text="BB-H")
plotshape(series=not na(breaker_low), location=location.abovebar, color=color.orange, style=shape.labeldown, text="BB-L")
High Volume Time (HVT) Auto-DisplayThis Indicator displays the upcoming HVT for the NasDaq on a table. The HVT is also displayed on the chart in real-time in order to help accentuate the best times to trade and a clear picture for the daily directional move. This times were found manually and bear as much significance as I bring it to have. These are not guaranteed times for the market to move, but rather High Probability Times based on my own backtesting on NQ.
200-Day SMA Slope Oscillator SmoothA smooth oscillator that oscillates between positive and negative values.
The oscillator tracks the change in the 200-day SMA and smooths the transitions to give you a cleaner, more gradual movement.
We use the slope to determine the value of the oscillator. If the slope is positive, the oscillator will show a positive value;If the slope is negative, it'll be a negative value.
200-Day MA Slope Oscillator Explanation:
ma200: The 200-day simple moving average of the closing price.
slope: The difference between the current value of the 200-day MA and its value 1 bar ago.
oscillator: We use the slope to determine the value of the oscillator. If the slope is positive, the oscillator will show a positive value;If the slope is negative, it'll be a negative value.
plot(): This plots the oscillator on a separate pane.
Relative Strength Index With Range ZoneRSI (Relative Strength Index) with 45-55 Range Zone
1. Introduction and Historical Background
The Relative Strength Index (RSI) is a momentum indicator developed in 1978 by J. Welles Wilder Jr. It measures the speed and magnitude of price changes to assess overbought and oversold conditions of an asset. This widely used oscillator ranges between 0 and 100.
Historically, the RSI was mainly used to detect trend reversals by identifying extreme levels: above 70 (overbought) and below 30 (oversold). However, its application has evolved, and new approaches refine its interpretation, such as adding a 45-55 neutral zone to identify consolidation (range) periods.
2. RSI Calculation
The RSI is calculated using the following formula:
RSI=100−(1001+RS)RSI=100−(1+RS100)
Where:
RS=Average gain over N periodsAverage loss over N periodsRS=Average loss over N periodsAverage gain over N periods
• RS (Relative Strength) is the ratio between the average gains and the average losses over N periods (typically 14 periods).
• Gains and losses are calculated based on daily price variations.
Example calculation with a 14-day period:
1. Compute daily gains and losses.
2. Take an exponential or simple moving average of these values over 14 days.
3. Apply the formula to get the RSI value.
3. Classic RSI Usage
The RSI is typically interpreted as follows:
• RSI > 70: Overbought → Possible correction or bearish reversal.
• RSI < 30: Oversold → Possible rebound or bullish reversal.
• RSI between 50 and 70: Bullish momentum.
• RSI between 30 and 50: Bearish momentum.
4. Adding the 45-55 Zone to Identify Range Phases
Adding a neutral zone between 45 and 55 helps identify consolidation periods, when price moves sideways without a strong trend.
• RSI between 45 and 55: The market is in a range, meaning neither buyers nor sellers dominate.
• RSI breaking out of this zone:
o Above 55: Indicates the start of a bullish trend.
o Below 45: Indicates the start of a bearish trend.
This zone is particularly useful for:
• Avoiding false signals by waiting for trend confirmation.
• Identifying ranging markets, favoring range trading strategies (buying at support, selling at resistance).
• Filtering trend-based entries, waiting for the RSI to exit the 45-55 zone.
5. Trading Strategies Using RSI with the 45-55 Range Zone
1. Range Trading:
• When the RSI oscillates between 45 and 55, it signals a lack of strong trend.
• Strategy:
o Identify a support and resistance level.
o Buy near support when the RSI touches 45.
o Sell near resistance when the RSI touches 55.
2. Breakout Trading:
• If the RSI exits the 45-55 zone:
o Above 55 → Buy (start of a bullish trend).
o Below 45 → Sell (start of a bearish trend).
• This breakout can be used as a confirmed entry signal.
3. Confirmation with Divergences:
• A bullish divergence (price making lower lows while RSI makes higher lows) is more relevant if the RSI moves above 55.
• A bearish divergence (price making higher highs while RSI makes lower highs) is stronger if the RSI drops below 45.
6. Conclusion
The RSI is a powerful tool for analyzing price momentum. Adding a 45-55 zone enhances its usage by clearly distinguishing:
• Consolidation phases (range markets).
• Trend beginnings when RSI breaks out of this range.
This approach improves RSI reliability by filtering out false signals and allowing traders to adapt their strategy based on market conditions.
Unix Time (Seconds)This is a simple indicator that places the current UNIX time down to the seconds for the current candle on your chart. It updates with every new candle.
Table can be customized to fit chart layout.
RSI Crossover dipali parikhThis script generates buy and sell signals based on the crossover of the Relative Strength Index (RSI) and the RSI-based Exponential Moving Average (EMA). It also includes an additional condition for both buy and sell signals that the RSI-based EMA must be either above or below 50.
Key Features:
Buy Signal: Triggered when:
The RSI crosses above the RSI-based EMA.
The RSI-based EMA is above 50.
A green "BUY" label will appear below the bar when the buy condition is met.
Sell Signal: Triggered when:
The RSI crosses below the RSI-based EMA.
The RSI-based EMA is below 50.
A red "SELL" label will appear above the bar when the sell condition is met.
Customizable Inputs:
RSI Length: Adjust the period for calculating the RSI (default is 14).
RSI-based EMA Length: Adjust the period for calculating the RSI-based EMA (default is 9).
RSI Threshold: Adjust the threshold (default is 50) for when the RSI-based EMA must be above or below.
Visuals:
The RSI is plotted as a blue line.
The RSI-based EMA is plotted as an orange line.
Buy and sell signals are indicated by green "BUY" and red "SELL" labels.
Alerts:
Alerts can be set for both buy and sell conditions to notify you when either condition is met.
How to Use:
Use this script to identify potential buy and sell opportunities based on the behavior of the RSI relative to its EMA.
The buy condition indicates when the RSI is strengthening above its EMA, and the sell condition signals when the RSI is weakening below its EMA.
Strategy Use:
Ideal for traders looking to leverage RSI momentum for entering and exiting positions.
The RSI-based EMA filter helps smooth out price fluctuations, focusing on stronger signals.
This script is designed for both discretionary and algorithmic traders, offering a simple yet effective method for spotting trend reversals and continuation opportunities using RSI.
NVDA - Gaussian Channel Strategy v3.4📌 Strategy Description: Gaussian Channel Trading Strategy for NVDA
Overview
The Gaussian Channel Strategy is a trend-following and momentum-based strategy that combines Gaussian filtering with Stochastic RSI crossovers to detect high-probability entry and exit points. This version is specifically optimized for NVDA stock, ensuring proper execution of orders with backtesting support.
🔹 Key Components
Gaussian Filter (Ehlers' Technique)
A low-lag smoothing filter that removes noise and highlights the primary market trend.
It constructs upper and lower bands to define potential support and resistance levels.
The midline (Gaussian Filter) helps determine bullish vs. bearish conditions.
Stochastic RSI for Entry Signals
Momentum indicator that helps identify overbought and oversold conditions.
Uses %K and %D crossovers to generate buy (bullish) and sell (bearish) signals.
Risk Management with Stop Loss & Take Profit
Stop Loss: Set at 2% below the entry price to limit downside risk.
Take Profit: Set at 5% above the entry price to lock in gains.
Ensures controlled risk-to-reward ratio.
📊 Trading Logic
Buy Entry Condition (Go Long)
Stochastic RSI crossover: %K crosses above %D (bullish momentum).
Gaussian Filter confirms an uptrend (filt > filt ).
Price is trading above the Gaussian Filter (close > filt).
Backtesting range is valid (between 2020 - 2069).
✅ If conditions are met:
→ Enter Long Position (strategy.entry("Long", strategy.long))
Sell Entry Condition (Go Short)
Stochastic RSI crossover: %K crosses below %D (bearish momentum).
Gaussian Filter confirms a downtrend (filt < filt ).
Price is trading below the Gaussian Filter (close < filt).
✅ If conditions are met:
→ Enter Short Position (strategy.entry("Short", strategy.short))
Exit Conditions
Stop Loss triggers when price moves 2% against position.
Take Profit triggers when price moves 5% in favor of the position.
Uses strategy.exit() to automatically manage risk.
🔹 Visual Indicators
✔ Gaussian Filter Midline (Blue): Determines trend direction.
✔ Upper Band (Green): Resistance level for potential reversals.
✔ Lower Band (Red): Support level for possible bounces.
✔ Bar Color Coding:
Green Bars: Price trading above Gaussian Filter (bullish trend).
Red Bars: Price trading below Gaussian Filter (bearish trend).
✔ Buy & Sell Markers (plotshape())
Green ⬆ (Buy Signals)
Red ⬇ (Sell Signals)
📈 Strategy Use Case
Best for trend-following traders who want smooth, noise-free signals.
Ideal for swing traders targeting 2-5% price moves on NVDA.
Reduces false breakouts by requiring both Gaussian trend confirmation and Stochastic RSI crossovers.
Works well on high-liquidity stocks like NVDA, especially in volatile conditions.
🚀 Summary
✅ Combines trend detection (Gaussian Filter) with momentum confirmation (Stochastic RSI).
✅ Automated buy/sell execution with visual confirmations.
✅ Risk-controlled strategy with Stop Loss (2%) and Take Profit (5%).
✅ Optimized for NVDA stock, with proper execution & capital allocation.
Refined Trend and Consolidation with MACD, RSI, OBV, and VolumeWe are implementing a trend analysis system using multiple technical indicators to determine the market state. We calculate two Simple Moving Averages (SMA 9 and SMA 21), the Relative Strength Index (RSI), the On-Balance Volume (OBV), and the MACD. Based on these indicators, we classify the market into three states: uptrend, downtrend, or consolidation. The script then changes the background color of the chart to visually represent the current market state: green for uptrend, red for downtrend, and yellow for consolidation. The transparency of the background is adjusted for a clear view of the price action.
The uptrend is identified when the short-term SMA (SMA 9) is above the long-term SMA (SMA 21), RSI is above 55 (indicating strong bullish momentum), OBV is rising, MACD line is above the signal line and zero, and volume is higher than the average.
The downtrend is recognized when the short-term SMA is below the long-term SMA, RSI is below 45 (indicating bearish momentum), OBV is falling, MACD line is below the signal line and zero, and volume exceeds the average.
Consolidation occurs when none of the uptrend or downtrend conditions are met, indicating range-bound movement. This is signified by the SMAs being close to each other, RSI near 50, OBV flat, MACD oscillating around zero, and volume either below average or neutral.
This provides a clear, visual representation of the market's current state by dynamically changing the chart's background color. The uptrend is shown with a green background, indicating a strong bullish market, while the downtrend is represented with a red background, signaling a bearish market. A yellow background marks consolidation, suggesting a period of sideways or range-bound movement with no clear direction. By using a combination of SMAs, RSI, OBV, MACD, and volume, the script helps traders quickly identify the prevailing market conditions, allowing them to make more informed decisions based on current trends and potential consolidations.
European/US Opening RangeCaractéristiques principales :
Détection précise des plages horaires en UTC
Calcul dynamique des plus hauts/bas pendant les 15 minutes d'ouverture
Trace des lignes horizontales persistantes
Gestion mémoire optimisée avec suppression des anciennes lignes
Adapté à tous les instruments et timeframes
Les lignes bleues représentent le range européen (09:00-09:15 UTC) et les rouges le range américain (14:30-14:45 UTC). Les niveaux se mettent à jour chaque jour et restent visibles jusqu'à la session suivante.
Stunden/Halbstunden-WarnungTradingview does not enable time-based alarms. However, the indicator can be used to remind you five minutes before a new hour and five minutes before a new half hour that a new hour or half hour is about to begin. Simply activate the warning in the indicator and then create an alarm for the indicator.
Velas Pequeñas con Volumen Altocon este script puedes encontrar donde estan comprando las instituciones atravez de velas siempre y cuando veas divergencias y ciclos antes
Gann TimeLevels - CyclesAt the beginning of each month, vertical lines will be drawn every 45 days, up to 360 days/bars. The count is done backwards, with the same logic. This Open Source code may be useful for you to implement it with the Gann square. It already has the time levels.
Pro Scalper Indicator (30-Min TF)//@version=5
indicator("Pro Scalper Indicator (30-Min TF)", overlay=true)
// Timeframe filter (Only works for 30-minute or higher)
minTimeFrame = "30"
isValidTimeFrame = timeframe.in_seconds(timeframe.period) >= timeframe.in_seconds(minTimeFrame)
// Parameters
fastEMA = input(9, title="Fast EMA")
slowEMA = input(21, title="Slow EMA")
rsiLength = input(14, title="RSI Length")
rsiOverbought = input(70, title="RSI Overbought")
rsiOversold = input(30, title="RSI Oversold")
volFilter = input(false, title="Enable Volume Filter")
// Calculations
emaFast = ta.ema(close, fastEMA)
emaSlow = ta.ema(close, slowEMA)
rsi = ta.rsi(close, rsiLength)
volumeAvg = ta.sma(volume, 20)
// Buy & Sell Conditions (Only valid for 30-min or higher)
buySignal = isValidTimeFrame and ta.crossover(emaFast, emaSlow) and rsi < rsiOverbought
sellSignal = isValidTimeFrame and ta.crossunder(emaFast, emaSlow) and rsi > rsiOversold
// Apply volume filter if enabled
buySignal := volFilter ? buySignal and volume > volumeAvg : buySignal
sellSignal := volFilter ? sellSignal and volume > volumeAvg : sellSignal
// Plot Buy & Sell Signals
plotshape(buySignal, location=location.belowbar, color=color.green, style=shape.labelup, title="BUY")
plotshape(sellSignal, location=location.abovebar, color=color.red, style=shape.labeldown, title="SELL")
// Plot EMAs
plot(emaFast, color=color.blue, title="Fast EMA")
plot(emaSlow, color=color.orange, title="Slow EMA")
// Alerts
alertcondition(buySignal, title="Buy Signal", message="Pro Scalper: Buy Signal!")
alertcondition(sellSignal, title="Sell Signal", message="Pro Scalper: Sell Signal!")
// Display warning if not on 30-min or higher
if not isValidTimeFrame
label = label.new(bar_index, high, "⚠️ Switch to 30min or higher!", color=color.red, textcolor=color.white, size=size.small)