Buyers VS Sellers V6changed the old v3 version indikator witch chat gpt to make it work with pinescript v6
Indicators and strategies
PineTree-Colors-V6Merry Christmas!!!
This is PineScript Version Tree in COLORS....as a Pine Tree (Christmas Tree) !!! This is how it all started from Version1 (V1) to Version 6 (V6) and on and on....
Enjoy :)
RSI FULL_DashboardRSI _ Full Dashboard ::: VISUAL CONDITION RSI MULTI-FRAME
//
View 9 Dashboard location in Screen (recomended total black screen)
//
Dashboard location: Top right/center/left, Middle right/center/left, Bottom right/center/left
//
View 8 Symbols x Dashboard
//
View Main Timeframes at same time: 15 min, 30 min, 60 min, 240 min (4H), Day
//
View Visual Color Alert in Dashboard
//
--------------------------
--------------------------
Winter Is Coming (Snowflake)While attempting to draw a star using Pine Script, I ended up creating another nonsense indicator 🙂
How to Draw a Dynamic Snowflake? 🤦♂️
This indicator provides a customizable snowflake pattern that can be displayed on either a linear or logarithmic chart. Users can change the number of vertices and notches to make the pattern dynamic and versatile. (For added fun, the skull emojis that appear on each tick can be replaced with other symbols, like 🍺—because, hey, it’s Christmas!)
What Can You Learn?
Curious users analyzing this script can uncover practical answers to these questions:
How can line and label drawings be constructed using array functions?
How can trigonometric and logarithmic calculations be implemented effectively?
Details:
The snowflake is composed of symmetrical branches radiating from a central point. Each branch includes adjustable notches along its length, allowing users to control both their count and spacing. At the center of the snowflake, an n-point star is drawn (parameter: gon). This star's outer and inner vertices are aligned with the notches, ensuring perfect harmony with the snowflake’s overall geometry. The star is evenly spaced, with each of its points separated by 360/n degrees, resulting in a visually balanced and symmetrical design.
Best Wishes
I hope 2025 will be the year when we can create more peace, more freedom and more time to drink beer for the whole planet! Happy New Year everyone!
Forward P/EThe Forward P/E indicator calculates and visualizes the forward price-to-earnings (P/E) ratio of a stock based on its most recent quarterly earnings per share (EPS) and the current market price.
Key Features:
Quarterly EPS Data: The script retrieves the diluted EPS for the most recent fiscal quarter (FQ) of the selected stock using financial data.
Annualized EPS: The quarterly EPS is multiplied by four to estimate the annualized EPS, assuming consistent earnings throughout the year.
Forward P/E Calculation: The forward P/E is derived by dividing the stock's current closing price by its annualized EPS.
Visualization: The calculated forward P/E ratio is plotted for easy interpretation.
Reference Line: An optional horizontal reference line at 0 helps quickly identify when the P/E ratio becomes invalid or potentially negative due to anomalies in EPS data.
This tool is useful for investors and traders seeking to evaluate a stock's valuation relative to its projected earnings, helping identify potentially overvalued or undervalued opportunities.
Supertrend & HalfTrend ComboThis is supertrnd and halfTrend base indicator
buy when half trend and supertrnd 200 give signal for buy means both greeen. To buy exact posistion you can refer to the moving average also.
Breakout Master//@version=5
indicator('Breakout Master', overlay=true)
bullishBar = 1
bearishBar = -1
var inside_bar = array.new_int(0)
var inside_bar_high = array.new_float(0)
var inside_bar_low = array.new_float(0)
var motherCandleIndex = 0
var motherCandleHigh = 0.0
var motherCandleLow = 0.0
var motherCandleRange = 0.0
var target1Buy = 0.0
var target2Buy = 0.0
var target1Sell = 0.0
var target2Sell = 0.0
var motherCandleH = line.new(na, na, na, na, extend=extend.right, color=color.green)
var motherCandleL = line.new(na, na, na, na, extend=extend.right, color=color.red)
var motherCandleHLabel = label.new(na, na, style=label.style_label_left, textcolor=color.green, color=color.new(color.green, 80))
var motherCandleLLabel = label.new(na, na, style=label.style_label_left, textcolor=color.red, color=color.new(color.red, 80))
var longT1 = line.new(na, na, na, na, extend=extend.right)
var longT2 = line.new(na, na, na, na, extend=extend.right)
var shortT1 = line.new(na, na, na, na, extend=extend.right)
var shortT2 = line.new(na, na, na, na, extend=extend.right)
var longT1Label = label.new(na, na, textcolor=color.blue, style=label.style_label_left, color=color.new(color.blue, 80))
var longT2Label = label.new(na, na, textcolor=color.blue, style=label.style_label_left, color=color.new(color.blue, 80))
var shortT1Label = label.new(na, na, textcolor=color.blue, style=label.style_label_left, color=color.new(color.blue, 80))
var shortT2Label = label.new(na, na, textcolor=color.blue, style=label.style_label_left, color=color.new(color.blue, 80))
var longT1Line = input.bool(title='Show Long T1', defval=true, group='Long')
var longT2Line = input.bool(title='Show Long T2', defval=true, group='Long')
var shortT1Line = input.bool(title='Show Short T1', defval=true, group='Short')
var shortT2Line = input.bool(title='Show Short T2', defval=true, group='Short')
var longT1Range = input.float(title='Long T1', defval=1, group='Long (x times above range of mother candle)', tooltip='Line will be plotted above high of mother candle. If value entered is 1, then T1 = range of mother candle x 1')
var longT2Range = input.float(title='Long T2', defval=1.5, group='Long (x times above range of mother candle)', tooltip='Line will be plotted above high of mother candle. If value entered is 2, then T2 = range of mother candle x 2')
var shortT1Range = input.float(title='Short T1', defval=1, group='Short (x times below range of mother candle)', tooltip='Line will be plotted below low of mother candle. If value entered is 1, then T1 = range of mother candle x 1')
var shortT2Range = input.float(title='Short T2', defval=1.5, group='Short (x times below range of mother candle)', tooltip='Line will be plotted below low of mother candle. If value entered is 2, then T2 = range of mother candle x 1')
hi = high
lo = low
op = open
cl = close
isInside() =>
previousBar = 1
bodyStatus = cl >= op ? 1 : -1
isInsidePattern = hi < hi and lo > lo
isInsidePattern ? bodyStatus : 0
newDay = ta.change(time('D'))
if newDay
array.clear(inside_bar)
array.clear(inside_bar_high)
array.clear(inside_bar_low)
if isInside() and array.size(inside_bar) <= 0
array.push(inside_bar, bar_index)
array.push(inside_bar_high, hi )
array.push(inside_bar_low, lo )
if barstate.islast and array.size(inside_bar) > 0
motherCandleIndex := array.get(inside_bar, 0) - 1
motherCandleHigh := array.get(inside_bar_high, 0)
motherCandleLow := array.get(inside_bar_low, 0)
motherCandleRange := motherCandleHigh - motherCandleLow
target1Buy := motherCandleHigh + longT1Range * motherCandleRange
target2Buy := motherCandleHigh + longT2Range * motherCandleRange
target1Sell := motherCandleLow - shortT1Range * motherCandleRange
target2Sell := motherCandleLow - shortT2Range * motherCandleRange
// mother candle high
line.set_xy1(motherCandleH, motherCandleIndex, motherCandleHigh)
line.set_xy2(motherCandleH, bar_index, motherCandleHigh)
label.set_xy(motherCandleHLabel, bar_index + 5, motherCandleHigh)
label.set_text(id=motherCandleHLabel, text='Range High - ' + str.tostring(motherCandleHigh))
//mother candle low
line.set_xy1(motherCandleL, motherCandleIndex, motherCandleLow)
line.set_xy2(motherCandleL, bar_index, motherCandleLow)
label.set_xy(motherCandleLLabel, bar_index + 5, motherCandleLow)
label.set_text(id=motherCandleLLabel, text='Range Low - ' + str.tostring(motherCandleLow))
//long target 1
if longT1Line
line.set_xy1(longT1, motherCandleIndex, target1Buy)
line.set_xy2(longT1, bar_index, target1Buy)
label.set_xy(longT1Label, bar_index + 5, target1Buy)
label.set_text(id=longT1Label, text='T1 - ' + str.tostring(target1Buy) + ' (' + str.tostring(longT1Range * motherCandleRange) + ') points')
//long target 2
if longT2Line
line.set_xy1(longT2, motherCandleIndex, target2Buy)
line.set_xy2(longT2, bar_index, target2Buy)
label.set_xy(longT2Label, bar_index + 5, target2Buy)
label.set_text(id=longT2Label, text='T2 - ' + str.tostring(target2Buy) + ' (' + str.tostring(longT2Range * motherCandleRange) + ') points')
//short target 1
if shortT1Line
line.set_xy1(shortT1, motherCandleIndex, target1Sell)
line.set_xy2(shortT1, bar_index, target1Sell)
label.set_xy(shortT1Label, bar_index + 5, target1Sell)
label.set_text(id=shortT1Label, text='T1 - ' + str.tostring(target1Sell) + ' (' + str.tostring(shortT1Range * motherCandleRange) + ') points')
//short target 2
if shortT2Line
line.set_xy1(shortT2, motherCandleIndex, target2Sell)
line.set_xy2(shortT2, bar_index, target2Sell)
label.set_xy(shortT2Label, bar_index + 5, target2Sell)
label.set_text(id=shortT2Label, text='T2 - ' + str.tostring(target2Sell) + ' (' + str.tostring(shortT2Range * motherCandleRange) + ') points')
3 Volume Wighted Moving Average -trend-Macd3 Volume Wighted Moving Average
With Main trend
With MACD
The Final CountdownDescription:
The Final Countdown is a multi-timeframe candle countdown tool with the following features:
Dynamic Color-Coded Countdowns: Easily track candle closings with green, yellow, and red colors based on remaining time. Fully customizable thresholds.
Customizable Timeframes: Monitor up to 8 timeframes simultaneously, from 1-minute to weekly candles.
Alerts for Candle Closures: Get notified when a candle is about to close (red zone).
Flexible Display Options: Choose between vertical or horizontal layouts, adjust table size, and enable/disable individual timeframes.
Real-Time Updates: Seamlessly integrates with live charts to ensure accurate countdowns.
User-Friendly Settings: Modify colors, alert thresholds, and other parameters directly from the settings menu.
---------------------------------------------------------------
Dynamic Color-Coded Countdowns (In-Depth)
The countdown changes color based on how much time remains before a candle closes:
Green: Ample time remains.
Yellow: A warning that the candle is nearing its close.
Red: The candle is about to close imminently, requiring immediate attention.
Default Settings:
Green to Yellow: When 50% of the time has elapsed.
Yellow to Red: When only 10% of the time remains.
These percentages can be easily adjusted in the indicator settings to fit your trading needs. For example, you can set the transition to yellow at 70% elapsed time or adjust the red zone to begin with 5% time remaining for more urgency.
Stay prepared, stay informed, and never miss an important candle close with The Final Countdown!
Crypto - Relative Strength Strategy - LongCrypto - Relative Strength Strategy (Long Only, $100 Buy)
Overview
The " Crypto - Relative Strength Strategy (Long Only, $100 Buy) " is a trading strategy designed to capitalize on the relative strength of a cryptocurrency compared to its historical price movements. This strategy is tailored for long-only positions, meaning it only enters buy trades and exits when the strength indicator turns negative.
Key Features
Relative Strength Calculation : The strategy uses a custom function to calculate the relative strength of the cryptocurrency based on its performance against several moving averages (EMA 8, EMA 34, SMA 20, SMA 50, and SMA 200).
Long-Only Positions : The strategy exclusively enters long positions when the relative strength indicator turns positive.
Fixed $100 Buy Amount : Each time a buy signal is triggered, the strategy purchases $100 worth of the cryptocurrency.
Sell Signals : The strategy closes the entire position when the relative strength indicator turns negative.
Backtesting Date Range : Users can specify a custom date range for backtesting using the input.time function.
Visual Indicators : Green and red areas represent positive and negative strength. Minimal buy and sell signals are plotted on the chart.
Christmas EMA with Advent Calendar [SS]Hey everyone!
As Tradingview is looking for Christmas themed indicators, I thought I would throw one out this year!
I understand they don't need to be useful, but if you know me, you know that's just not an option, so I went ahead and did a semi useful Christmas themed indicator!
It will calculate the EMA and put the EMA in a Christmas theme, you can select custom EMA theme:
Or you can select "Random" and it will random generate the Emoji and change each day (the advent aspect of the indicator).
In addition to that, of course the EMA is customizable, you can select whichever length you want, and you can toggle on or off the Christmas Countdown!
Thanks for everyone who followed me this year and for a longtime!
And thank you to the Tradingview and Pinecoder community for an awesome platform!
Hopefully we can all approach the new year with an optimistic outlook and be well prepared for whatever comes, both within the market and within our lives.
Safe trades, safe holidays and thoughts and wishes with you all.
Multi Stochastic (Erick)Description for Multi Stochastic Indicator
The Multi Stochastic indicator provides a consolidated view of four Stochastic Oscillators in a single pane, each with customizable parameters. This tool is designed for traders who rely on Stochastic Oscillators for momentum analysis and want to compare multiple timeframes or configurations simultaneously.
Key Features:
Four Stochastic Configurations:
(9,3,3): Short-term momentum analysis.
(14,3,3): Standard Stochastic for general use.
(40,4,3): Mid-term trend analysis.
(60,10,1): Long-term trend analysis.
Customizable Parameters:
Adjust the K, D, and smoothing values for each Stochastic Oscillator.
Clear Visuals:
Distinct color coding for each %K and %D line.
Horizontal reference lines at 80 (Overbought), 50 (Midline), and 20 (Oversold).
Usage:
Identify overbought or oversold conditions across different timeframes.
Compare momentum shifts between short, mid, and long-term trends.
Enhance decision-making with a comprehensive view of market dynamics.
How It Works:
%K: The fast line representing the raw Stochastic value.
%D: The signal line, a moving average of %K.
Four Stochastic Oscillators are calculated using their respective Length, Smooth K, and Smooth D values.
Best Practices:
Combine with other indicators or price action analysis for confirmation.
Use the overbought and oversold zones to spot potential reversals or trend continuations.
Adjust parameters to suit your trading style and asset class.
This indicator is ideal for traders looking for an efficient way to monitor multiple Stochastic Oscillators simultaneously, improving clarity and reducing chart clutter.
Rising and Falling Trendlines with MA20 (Moving Average)//@version=5
indicator("Yükselen ve Düşen Direnç - MA20 Trend Çizgisi", overlay=true)
// MA20 Hesaplama
ma_length = 20
ma20 = ta.sma(close, ma_length)
// MA20'nin Yükseldiği ve Düşüşe Geçtiği Durumları Tespit Etme
ma_uptrend = ma20 > ma20 // MA20'nin bir önceki değerden büyük olup olmadığını kontrol et
ma_downtrend = ma20 < ma20 // MA20'nin bir önceki değerden küçük olup olmadığını kontrol et
// Yükselen Trend Çizgisi Başlatma
var float trendStartUp = na
var float trendEndUp = na
var int trendStartIndexUp = na
var int trendEndIndexUp = na
// Düşen Trend Çizgisi Başlatma
var float trendStartDown = na
var float trendEndDown = na
var int trendStartIndexDown = na
var int trendEndIndexDown = na
// Yükselen Trend Çizgisi (MA20 Yükseliyorsa)
if (ma_uptrend and na(trendStartUp)) // Eğer yükselen trend başlamamışsa, başlat
trendStartUp := ma20
trendStartIndexUp := bar_index
else if (ma_uptrend) // Eğer yükselen trend devam ediyorsa, bitişi güncelle
trendEndUp := ma20
trendEndIndexUp := bar_index
// Düşen Trend Çizgisi (MA20 Düşüyorsa)
if (ma_downtrend and na(trendStartDown)) // Eğer düşen trend başlamamışsa, başlat
trendStartDown := ma20
trendStartIndexDown := bar_index
else if (ma_downtrend) // Eğer düşen trend devam ediyorsa, bitişi güncelle
trendEndDown := ma20
trendEndIndexDown := bar_index
// Yükselen Trend Çizgisini Çizme (Kırmızı Renk)
if (not na(trendStartUp) and not na(trendEndUp))
line.new(x1=trendStartIndexUp, y1=trendStartUp, x2=trendEndIndexUp, y2=trendEndUp,
color=color.green, width=2, style=line.style_solid)
// Düşen Trend Çizgisini Çizme (Mavi Renk)
if (not na(trendStartDown) and not na(trendEndDown))
line.new(x1=trendStartIndexDown, y1=trendStartDown, x2=trendEndIndexDown, y2=trendEndDown,
color=color.red, width=2, style=line.style_solid)
// MA20 Çizgisi
plot(ma20, color=color.blue, linewidth=2, title="MA20")
Rising and Falling Trendlines with MA20 (Moving Average)
This script draws rising and falling trendlines based on the 20-period Simple Moving Average (MA20). The trendlines are drawn dynamically based on whether the MA20 is rising or falling.
What this Script Does:
1. Rising Trendline (Green Line):
When the MA20 is rising (i.e., the current MA20 value is greater than the previous bar's MA20 value), the script draws a rising trendline in green color. This indicates an uptrend, where the market is showing bullish momentum.
2. Falling Trendline (Red Line):
When the MA20 is falling (i.e., the current MA20 value is less than the previous bar's MA20 value), the script draws a falling trendline in red color. This indicates a downtrend, where the market is showing bearish momentum.
3. MA20 Plot:
In addition to drawing the trendlines, the script plots the MA20 on the chart as a blue line, which helps to visualize the average price over the last 20 periods.
Market Profile with TPO by DaRealsVision25Key Components of TPO Charts:
TPO Blocks: Each letter or symbol represents a specific time period during which the price traded at a particular level. For example, in a 30-minute timeframe, each TPO block might represent 30 minutes of trading at that price level.
Point of Control (POC): The price level where the most TPO blocks are concentrated, indicating the price at which the market spent the most time during the session. This level is often considered the fairest price.
Value Area: The range of prices where a significant portion of trading occurred, typically encompassing 70% of the total trading volume. This area helps identify the price range where the market found consensus.
Benefits of Using TPO Charts:
Market Structure Analysis: TPO charts help traders understand market structure by identifying areas of balance and imbalance, which can indicate potential support and resistance levels.
Trend Identification: By observing the distribution of TPO blocks, traders can identify trends and reversals, aiding in making informed trading decisions.
Enhanced Decision-Making: The visual representation of time spent at various price levels allows traders to assess market sentiment and potential price movements more effectively.
Nahum - ZLSMA for Telegram [Nahum81]Este indicador ZLSMA (Zero Lag Least Squares Moving Average) proporciona una media móvil con un retraso casi nulo, lo que permite identificar la dirección de la tendencia de forma instantánea.
Características:
Alertas de Telegram: Recibe notificaciones en tiempo real en tu Telegram cuando se produzcan señales de compra o venta.
Integración con Telegram: Conéctate fácilmente a tu cuenta de Telegram para recibir alertas.
Configuración personalizable: Ajusta los parámetros del indicador y las alertas a tu estrategia de trading.
Advertencia:
Este indicador debe usarse con precaución.
Se recomienda contactar al desarrollador (@Nahum81) para comprender completamente la estrategia y su uso adecuado.
El trading implica riesgos y este indicador no garantiza ganancias.
Volatility-Weighted MA (VWMA)Interpretation:
VWMA adjusts to changes in market volatility, offering dynamic support and resistance levels.
Sharp deviations from VWMA often signal potential reversals or breakouts.
How to Use for Trades:
Mean Reversion: Look for price rejections at VWMA in low-volatility environments.
Trend Breakout: Trade in the direction of the breakout when price closes strongly above/below VWMA in high-volatility conditions.
Custom RSI- Ashish SinghThe RSI Buy Above 60 and Sell Below 40 strategy is a trading approach based on the Custom RSI Indicator, which focuses on momentum shifts in the 40-60 range. Here's how it operates:
Buy Above 60:
Condition: When the RSI crosses above 60, it signals increasing bullish momentum.
Interpretation: The market is transitioning into a strong upward trend, suggesting a potential buying opportunity.
Execution:
Enter a buy position when the RSI value exceeds 60.
Confirm the signal using other technical tools (e.g., volume analysis, support/resistance levels).
Consider setting a stop-loss below a recent support level or below the 40 RSI level as a safeguard.
Sell Below 40:
Condition: When the RSI drops below 40, it indicates growing bearish momentum.
Interpretation: The market is entering a downtrend, making it an opportune moment to sell or short.
Execution:
Enter a sell position (or close long positions) when the RSI value falls below 40.
Confirm the signal with complementary analysis (e.g., trendlines, bearish candlestick patterns).
Place a stop-loss above a recent resistance level or above the 60 RSI level for risk management.
Key Considerations:
Avoiding Whipsaws:
In sideways or low-volatility markets, this strategy may generate false signals. Use additional filters like moving averages or Bollinger Bands to confirm trends.
Exit Strategies:
Consider exiting positions when the RSI reverts to the opposite threshold (e.g., sell when RSI drops below 60 after a buy, or buy back when RSI climbs above 40 after a sell).
Use trailing stops to lock in profits during strong trends.
Combining with Other Tools:
Pair the RSI signals with broader trend indicators like the MACD or Moving Averages to avoid acting on weak trends.
Risk Management:
Always define risk limits and position sizes to protect capital, particularly in volatile markets.
Example:
Buy Scenario: If the RSI rises from 58 to 62, confirming bullish momentum, initiate a long position. Exit the trade if the RSI falls back below 60 or based on a pre-defined profit target.
Sell Scenario: If the RSI drops from 42 to 38, signaling bearish momentum, initiate a short position. Exit the trade if the RSI climbs back above 40 or hits a stop-loss.
This simple yet effective strategy can provide clear entry and exit points when applied with discipline and supported by other market analysis tools.
Arrow Strategy Final VersionFinalna wersja bardzo skutecznej strategi Scalpingowej.
Po Checkliste z alertami badz z potwierdzeniami potrzebnymi do wejscia
Zgłoś się na priv.
LETS GO !
OPRA Option Ticker Parser + Implied VolAttempt at calculating implied vol of an US option using the OPRA feed. The goal is to see fixed strike vol. Need to check the result with other brokers, as I'm not strong in the Black–Scholes model.
Dynamic Volatility Heatmap (ATR)How the Script Works
Dynamic Thresholds:
atrLow and atrHigh are calculated as percentiles (20% and 80% by default) of ATR values over the last double the ATR period (28 days if ATR is 14).
This creates thresholds that adapt to recent market conditions.
Background Heatmap:
Green: ATR is below the low threshold, indicating calm markets (options are cheap).
Red: ATR is above the high threshold, signaling elevated volatility (options are expensive).
Yellow: ATR is within the normal range, showing neutral market conditions.
Overlay Lines:
]Dynamic lines for atrLow and atrHigh help visualize thresholds on the chart.
Interpretation for Trading
Green Zone (Low ATR):
Interpretation: The market is calm, and options are likely underpriced.
Trade Setup: Favor buying options (e.g., long straddles or long calls/puts) to profit from potential volatility increases.
Red Zone (High ATR):
Interpretation: The market is volatile, and options are likely overpriced.
Trade Setup: Favor selling options (e.g., credit spreads or iron condors) to benefit from volatility decay.
Yellow Zone (Neutral ATR):
Interpretation: Volatility is within typical levels, offering no strong signal.
Trade Setup: Combine with other indicators, such as gamma levels or Bollinger Bands, for confirmation.
5. Enhancing with Other Indicators
Combine with Bollinger Bands:
Overlay Bollinger Bands to identify price extremes and align them with volatility heatmap signals.
RSI + MACD + EMA + Bollinger + Volume indicatorThe combined conditions for entry (RSI, MACD, EMA, Bollinger Bands, Volume) may be too restrictive, causing no trades to meet the criteria.
You may want to test each condition individually first to ensure that each is producing signals that are in line with market action.
Supertrend - 4h LettermanThis strategy, named "Supertrend - 4h Letterman", leverages the Supertrend indicator to identify and act on bullish market trends. Here's a summary of its features and warnings:
Features:
Capital Allocation: Allocates 15% of equity per trade, ensuring a controlled risk-reward ratio.
Commission and Slippage: Includes a 0.1% commission and a slippage value of 3 to account for real-market conditions.
Date Filters: Allows users to specify a start and end date for trading, defaulting to January 1, 2018, through December 31, 2069.
Trade Logic:
Enters a long position when a bullish trend is detected.
Exits the position when the trend reverses to bearish.
Visualization: Plots the Supertrend levels with clear uptrend (green) and downtrend (red) visuals for easy monitoring.
Risk Warning:
Trading involves significant risk and may lead to loss of invested capital. Users are strongly advised to trade responsibly and consult with a financial advisor if unsure.
Let me know if you’d like further refinements or additional clarifications!