5Bar SignalA 5 bar counting on the moving average indicator. It will show a sell signal if there are 5 bars closing below the moving average and a buy signal if there are 5 bars closing above the moving average
Cycles
BTC Perp/Spot Ratio & RSCalculates the ratio between futures (PERP) and spot (SPOT) prices, revealing market imbalances.
Integrates an RSI to detect potential overbought or oversold points.
Displays the annualized Funding Rate, helping to identify bullish or bearish biases in the futures market.
Generates buy/sell signals based on specific funding rate thresholds, the short-term trader, and the interaction of price with the EMAs.
Swing Trading StrategyThis Swing Trading Strategy combines technical indicators and Fibonacci retracement levels to identify potential buy and sell opportunities in the market. It uses key tools like RSI, MACD, moving averages, and Fibonacci levels for precision and trend confirmation.
Key Indicators:
1. RSI (14): Identifies overbought (>70) and oversold (<30) conditions.
2. MACD: Detects momentum shifts with bullish or bearish crossovers.
3. Moving Averages: A short-term MA (50) and long-term MA (200) determine uptrends and downtrends.
4. Fibonacci Levels (0.382, 0.5, 0.618): Calculate dynamic support and resistance zones based on recent highs and lows.
Entry and Exit Conditions:
• Long Entry: In an uptrend, RSI < 30, MACD bullish crossover, and price within Fibonacci levels.
• Short Entry: In a downtrend, RSI > 70, MACD bearish crossover, and price within Fibonacci levels.
• Exits: Positions close if the trend reverses (via MACD) or RSI reaches extreme levels.
Visualization:
The strategy dynamically plots Fibonacci levels and moving averages for enhanced decision-making.
This strategy is ideal for swing traders, leveraging trend and momentum to identify profitable short- to medium-term opportunities.
SPX Lin Reg with SD -1 +1 -2 +2 -3 +3 (Extented)Linear regression for a given period with standard deviations -1 +1 -2 +2 -3 +3
Estrategia btc 50%Mi estrategia de btc para los niveles en los que se encuentra a dia 8 de enero de 2025
GainzAlgo Pro// © GainzAlgo
//@version=5
indicator('GainzAlgo Pro', overlay=true, max_labels_count=500)
candle_stability_index_param = input.float(0.5, 'Candle Stability Index', 0, 1, step=0.1, group='Technical', tooltip='Candle Stability Index measures the ratio between the body and the wicks of a candle. Higher - more stable.')
rsi_index_param = input.int(50, 'RSI Index', 0, 100, group='Technical', tooltip='RSI Index measures how overbought/oversold is the market. Higher - more overbought/oversold.')
candle_delta_length_param = input.int(5, 'Candle Delta Length', 3, group='Technical', tooltip='Candle Delta Length measures the period over how many candles the price increased/decreased. Higher - longer period.')
disable_repeating_signals_param = input.bool(true, 'Disable Repeating Signals', group='Technical', 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('normal', '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)
bullish_engulfing = close < open and close > open and close > open
rsi_below = rsi < rsi_index_param
decrease_over = close < close
bull = bullish_engulfing and stable_candle and rsi_below and decrease_over and barstate.isconfirmed
bearish_engulfing = close > open and close < open and close < open
rsi_above = rsi > 100 - rsi_index_param
increase_over = close > close
bear = bearish_engulfing and stable_candle and rsi_above and increase_over and barstate.isconfirmed
var last_signal = ''
if bull and (disable_repeating_signals_param ? (last_signal != 'buy' ? true : na) : true)
if label_style == 'text bubble'
label.new(bull ? bar_index : na, 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(bull ? bar_index : na, 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(bull ? bar_index : na, low, 'BUY', yloc=yloc.belowbar, color=buy_label_color, style=label.style_arrowup, textcolor=TRANSPARENT, size=label_size)
last_signal := 'buy'
if bear and (disable_repeating_signals_param ? (last_signal != 'sell' ? true : na) : true)
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)
last_signal := 'sell'
alertcondition(bull, 'BUY Signals', 'New signal: BUY')
alertcondition(bear, 'SELL Signals', 'New signal: SELL')
1h apertura de New_Yorkprobando apertura de new york ., miramos vela horaria anterior a la apertura y entramos en sentido contrario a esa vela.,
gestionamos stop loss y take proffit en % ., modificandolos en caso d eser necesario por activo
World Digital Clock Original code developed by br.tradingview.com
In this update I added the Frankfurt stock exchange, left the times according to Western Europe, and added another light signal to identify whether the stock exchange is open or closed.
This indicator provides a digital clock and real-time status for major financial markets, including Tokyo, London, New York, and Frankfurt. It displays whether each market is currently OPEN or CLOSED, along with the time remaining until the market opens or closes. The indicator is designed to keep traders informed about market activity at a glance.
Key Features:
Digital Clock:
Displays the current time based on a user-defined UTC offset.
Customizable text color, size, and background color.
Market Status:
Shows whether each major market is OPEN or CLOSED.
Displays a countdown timer indicating the time remaining until the market opens or closes.
Includes markets for Tokyo, London, New York, and Frankfurt.
Color Indicators:
A green dot indicates the market is open.
A red dot indicates the market is closed.
Text colors for open and closed markets can be customized.
Customizable Layout:
Choose the table position on the chart (e.g., top right, bottom left).
Adjust text sizes for both the clock and market status.
Daylight Saving Time:
Automatically adjusts market opening and closing times based on daylight saving rules (e.g., summer and winter time).
Alerts:
Optionally triggers alerts when a market opens, keeping you updated in real-time.
Use Cases:
Perfect for day traders or swing traders who need to monitor global market activity.
Useful for keeping track of trading hours and planning strategies based on market availability.
Helps avoid trading outside active market hours, reducing slippage and volatility risks.
This versatile and customizable tool ensures you're always aware of market status and time zones, enhancing your trading efficiency and decision-making.
Sharp Price ChangesIdentify price points where there has been either a sharp drop or rise in price showing the price value and the % of the drop or rise
6-Month VWAPTESTING TESTING!!!
This script calculates a 6-month rolling Volume Weighted Average Price (VWAP), offering traders a dynamic view of price trends based on recent market activity. The indicator updates continuously, recalculating VWAP using data from the past 6 months, providing an adaptable perspective as time progresses.
Key Features:
Time Range Setting: The script calculates the starting point for VWAP as 6 months before the current time.
Cumulative Calculation: It progressively accumulates volume and volume-weighted prices within the 6-month window.
Conditional Handling: If there is insufficient volume data, the VWAP will return na to prevent errors.
Chart Display: The final VWAP is displayed on the price chart as a blue line.
SPX Lin Reg with SD -1 +1 -2 +2 -3 +3 (Extented) V1.0Here is a script to plot a linear regression for a given period and add standard deviations.
Rich's DikFat Money-Counter - ITM/OTM Options Price ViewerScript Overview
This Pine Script is a custom indicator designed for use on the TradingView platform. It analyzes options contracts, extracting key information from the options symbol, and then visualizes the relationship between the current price of the underlying asset and the option's strike price. Here’s a detailed explanation of the script and its components:
Key Features
Symbol Format Validation: The script checks whether the current symbol matches the expected format of an options symbol (like TSLA250131C400.0).
Extraction of Option Components: It extracts the base symbol (e.g., TSLA), expiration date (e.g., 250131), option type (C for call, P for put), and strike price (e.g., 400.0) from the options symbol.
Price Difference Calculation: It calculates the difference between the current price of the base asset (e.g., TSLA) and the option's strike price. Depending on whether the option is a call or put, the calculation is adjusted.
Visualization: The result is plotted on the chart, with color-coded filling to indicate whether the price difference is positive (ITM) or negative (OTM).
Detailed Explanation of Code Components
1. Indicator Definition
indicator("Rich's DikFat Money-Counter - In the Money/Out of the Money Options Price Viewer", shorttitle="Options Price Viewer", overlay=true)
This line defines the indicator's name, short title, and specifies that it should be plotted on the price chart (with overlay=true).
2. Symbol Detection
currentSymbol = syminfo.ticker
This retrieves the symbol of the current asset being analyzed. The script expects this symbol to be an options contract, for example, TSLA250131C400.0.
3. Symbol Format Validation
isOptionSymbol = str.length(currentSymbol) >= 9 and str.match(currentSymbol, "^ + {6} +(\. +)?$") != ""
This checks whether the current symbol matches the expected format for an option:
The symbol must have at least 9 characters.
It must follow a specific pattern: a base symbol (letters), a 6-digit expiration date, an option type (C for Call or P for Put), and a strike price that could include decimals.
[/list>
4. Extracting Option Components
If the symbol is a valid option symbol, the following code extracts the components:
baseSymbol := str.match(currentSymbol, "^ +")
expirationDate := str.substring(currentSymbol, str.length(baseSymbol), str.length(baseSymbol) + 6)
optionType := str.substring(currentSymbol, str.length(baseSymbol) + 6, str.length(baseSymbol) + 7)
strikePrice := str.substring(currentSymbol, str.length(baseSymbol) + 7, str.length(currentSymbol))
baseSymbol: Extracts the letters representing the stock symbol (e.g., TSLA).
expirationDate: Extracts the expiration date in the form of a 6-digit number (e.g., 250131).
optionType: Extracts the option type (C for Call, P for Put).
strikePrice: Extracts the strike price, which is the value after the option type (e.g., 400.0).
[/list>
5. Fetching the Base Symbol Price
baseSymbolClose = request.security(baseSymbol, "1", close)
This line uses the request.security() function to get the most recent close price of the base symbol (e.g., TSLA) on a 1-minute chart.
6. Converting the Strike Price to a Float
strikePriceFloat = na(strikePrice) ? na : str.tonumber(strikePrice)
Converts the strike price string to a numerical value (float). If the strike price is not available (i.e., na), it will not proceed with calculations.
7. Price Difference Calculation
priceDifference = baseSymbolClose - strikePriceFloat
This calculates the difference between the base symbol's close price and the strike price. For a Call option, this represents how much the stock price is above or below the strike price.
8. Adjusting for Put Options
if optionType == "P"
priceDifference := strikePriceFloat - baseSymbolClose
If the option is a Put, the price difference is reversed because a Put option becomes valuable when the stock price is below the strike price.
9. Plotting the Price Difference
priceDiffPlot = plot(priceDifference, title="Price Difference (Strike - Base)", color=color.blue, linewidth=2, style=plot.style_line, offset=0)
This line plots the calculated price difference as a blue line.
10. Zero Line Plot
zeroLinePlot = plot(0, "Zero Midline", color=color.white, linewidth=1, style=plot.style_line, offset=0)
This plots a white line at the zero level. This helps visually separate when the price difference is positive or negative.
11. Filling the Area Between the Price Difference and Zero Line
fill(priceDiffPlot, zeroLinePlot, color=color.new(priceDifference > 0 ? color.green : color.red, 70))
This fills the area between the price difference plot and the zero line:
Green if the price difference is positive (indicating the option is In the Money for Calls or Out of the Money for Puts).
Red if the price difference is negative (indicating the option is Out of the Money for Calls or In the Money for Puts).
Final Thoughts
This script is useful for traders and options investors who want to track the status of an option relative to the current price of the underlying asset. The green and red fill colors provide an immediate visual cue for whether the option is ITM or OTM. By applying this indicator on TradingView, users can easily see whether a particular option is valuable (ITM) or worthless (OTM) based on the current market price of the underlying asset. This makes it a valuable tool for quick decision-making in options trading.
SPX Lin Reg with SD -1 +1 V1.0
110 / 5 000
Here is a script to plot a linear regression for a given period and add standard deviations.
Volume Trend Analysis ProKey Features of Volume Analysis Script
1. Volume Threshold Detection
Identifies significant volume spikes
Compares current volume against 20-period moving average
Configurable sensitivity for precise signal generation
2. Trend Confirmation Mechanisms
Uses short and long-term moving averages
Validates volume signals with price action
Reduces false positive trading signals
3. Advanced Visualization
Color-coded volume bars
Triangular buy/sell signal markers
Clear visual representation of volume dynamics
4. Risk Management Components
Customizable volume threshold
Deviation sensitivity adjustment
Built-in alert conditions for real-time monitoring
SPX Lin Reg with SD -1 +1 -2 +2 (Extented) V1.0Here is a script to plot a linear regression for a given period and add standard deviations.
Reliance 30-Minute Third Candle Breakouthere we are talking about reliance 30 min candle break out it an give you clear break out most of the time
3% Interval LinesHow It Works:
Base Price Input: The script provides a text box to enter a base price.
3% Interval Calculation: It calculates 3% of the base price.
Lines Drawing: It draws lines above and below the base price at every 3% interval using a loop.
Customization:
You can change num_lines to increase or decrease the number of lines.
The colors and line styles can also be adjusted.
ATT (3PM-6PM: 8PM-9PM UK) - TRADEWITHWILL
ATT (Advanced time theory) discovered by INuke (Tradewithwill)
The code will only show labels from 3pm to 6pm & 8pm to 9pm
(Only recommended on CME_MINI:NQ1! )
AI-Style Trading Strategy - Long OnlyThis strategy automatically buys you into various products. Each product has its own perfect stop loss and take profit values. You can get these on my discord. The strategy works best in the bull market but can also run continuously.
Gann Secert Radio AM Receiverenjoy this masterpiece from W D Gann, It indicates clear buy and sell entries by looking at the background. Every time background changes it's a buy or sell entry