Custom RSI Divergence (Reuse Pivots)Divergence Indicator. That reuses Pivots so that divergences with minor highs do not prevent indicator identifying divergences with major highs that follow.
Indicators and strategies
SMA 20 & 50 with Sideways Market FilterThis indicator uses SMA crossovers (10-period and 20-period) to identify potential long and short signals, filtered by volatility (ATR). It highlights sideways markets with a red background, helping to avoid trading in low-volatility conditions. Green and red triangles mark entry points.
RSI Zone - RehmanThe "Custom RSI with Editable Zones" indicator is a powerful tool designed for traders seeking to enhance their technical analysis using the Relative Strength Index (RSI). This indicator not only calculates the RSI but also visually segments the RSI values into distinct market conditions, allowing for quick and informed trading decisions.
Manual Profit/Weekly Calendar with Totalthis thik help you cal your profits , the back ground color dont select
Enhanced HMA 5D standard Deviation - RickSimple hull moving average enhanced with standard deviation bands calculated over a 5 day period to account for volatility in ranging periods.
Possibility to choose the source of the hull calculation, as well as the source to use as threshold for long and short signal.
Two different types of visualization: candle coloring or moving average.
Custom_moving_average_chavalinovCustom moving average chart, buy and sell signals. Buy and sell signals triggered on crossover
Bollinger Bands and Fibonacci Intraday Strategyxplanation of the Strategy:
Bollinger Bands:
The script calculates the upper and lower Bollinger Bands using the simple moving average (SMA) and the standard deviation of the price.
Buy Signal: When the price is below the lower Bollinger Band and is above the Fibonacci support level (0.236 or 0.382, depending on price action).
Sell Signal: When the price is above the upper Bollinger Band and is below the Fibonacci resistance level (0.618).
Fibonacci Levels:
The script calculates the Fibonacci retracement levels (0.236, 0.382, and 0.618) based on the highest high and lowest low of the last 20 bars.
These levels help identify potential support and resistance zones for entries and exits.
Buy Conditions: A buy order is triggered when:
The price crosses below the lower Bollinger Band (indicating oversold conditions).
The price is above the Fibonacci level (indicating potential support for a bounce).
Sell Conditions: A sell order is triggered when:
The price crosses above the upper Bollinger Band (indicating overbought conditions).
The price is below the Fibonacci level (indicating potential resistance for a reversal).
Exit Conditions: The strategy exits positions using fixed stop loss and take profit levels (you can adjust them in the settings).
How to Use:
Copy and paste this script into the Pine Script editor on TradingView.
Adjust the Fibonacci levels and Bollinger Band settings as necessary.
Set the stop loss and take profit values in pips.
Apply the strategy to an intraday chart (like 5-minute, 15-minute, or 30-minute) and observe how it behaves.Q
Advanced Options Trade StrategyTo read the script, focus on these key parts:
Strategy Name and Inputs – The script starts by defining the strategy name and input settings for RSI, moving averages, ATR, and volume thresholds.
Calculations – It calculates RSI, moving averages, and ATR to analyze price movement.
Trade Signals – The script checks for bullish (buy) or bearish (sell) conditions using RSI, moving averages, and volume.
Plotting – Moving averages and trade signals are plotted directly on the chart for visualization.
Buy/Sell Labels – Labels appear on the chart showing exact strike prices for call and put options.
Alerts – Alerts notify you when a buy or sell condition is met.
Entry Logic – The strategy automatically enters trades when conditions are triggered.
20% Move in 5 DaysThis script is used to mark the 20% move in 5 days. The main intention of the script is that to study the charts why that happened.
Here is the script
//@version=5
indicator("20% Move in 5 Days", overlay=true)
// Inputs
lookbackDays = 5 // Number of days to look back
moveThreshold = 20.0 // Percentage move threshold
// Calculations
startPrice = ta.valuewhen(bar_index >= bar_index , close , 0)
priceChange = ((close - startPrice) / startPrice) * 100
// Conditions for 20% move
isBigMoveUp = priceChange >= moveThreshold
isBigMoveDown = priceChange <= -moveThreshold
// Plotting signals on the chart
bgcolor(isBigMoveUp ? color.new(color.green, 80) : na)
bgcolor(isBigMoveDown ? color.new(color.red, 80) : na)
plotshape(isBigMoveUp, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, title="20% Up Move")
plotshape(isBigMoveDown, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, title="20% Down Move")
// Optional debugging labels for moves
if isBigMoveUp
label.new(bar_index, high, str.tostring(priceChange, "#.##") + "%", style=label.style_circle, color=color.new(color.green, 80))
if isBigMoveDown
label.new(bar_index, low, str.tostring(priceChange, "#.##") + "%", style=label.style_circle, color=color.new(color.red, 80))
PreannTrendI created this indicator for beginners who are still confused about how to enter the market. The rule is simple, that is, when a buy or sell signal appears, buy or sell at that time and place a stop loss at the 55 EMA. The recommended Take Profit is 1:1 between the Entry Distance and Stop Loss. An example can be seen in the chart. If you have any difficulties, you can consult my email. Thank you very much God bless.
✉ email@preann.id
RSI Positivity (Zone and Change)Mostly a test project developed with Grok.
We calculate the RSI and look back a configurable amount of bars to determine the percentages of bars where:
a) RSI was above 50% (Label: Zone)
b) RSI changed positively (Label: Change)
The RSI can be shown or hidden and RSI length can be chosen (hidden by default with RSI length 14).
Smoothing can be enabled or disabled (enabed by default with smoothing set to 10 bars).
There are vertical lines in the Zone plot that indicate how far we are looking back.
Prime Bands [ChartPrime]The Prime Standard Deviation Bands indicator uses custom-calculated bands based on highest and lowest price values over specific period to analyze price volatility and trend direction. Traders can set the bands to 1, 2, or 3 standard deviations from a central base, providing a dynamic view of price behavior in relation to volatility. The indicator also includes color-coded trend signals, standard deviation labels, and mean reversion signals, offering insights into trend strength and potential reversal points.
⯁ KEY FEATURES AND HOW TO USE
⯌ Standard Deviation Bands :
The indicator plots upper and lower bands based on standard deviation settings (1, 2, or 3 SDs) from a central base, allowing traders to visualize volatility and price extremes. These bands can be used to identify overbought and oversold conditions, as well as potential trend reversals.
Example of 3-standard-deviation bands around price:
⯌ Dynamic Trend Indicator :
The midline of the bands changes color based on trend direction. If the midline is rising, it turns green, indicating an uptrend. When the midline is falling, it turns orange, suggesting a downtrend. This color coding provides a quick visual reference to the current trend.
Trend color examples for rising and falling midlines:
⯌ Standard Deviation Labels :
At the end of the bands, the indicator displays labels with price levels for each standard deviation level (+3, 0, -3, etc.), helping traders quickly reference where price is relative to its statistical boundaries.
Price labels at each standard deviation level on the chart:
⯌ Mean Reversion Signals :
When price moves beyond the upper or lower bands and then reverts back inside, the indicator plots mean reversion signals with diamond icons. These signals indicate potential reversal points where the price may return to the mean after extreme moves.
Example of mean reversion signals near bands:
⯌ Standard Deviation Scale on Chart :
A visual scale on the right side of the chart shows the current price position in relation to the bands, expressed in standard deviations. This scale provides an at-a-glance view of how far price has deviated from the mean, helping traders assess risk and volatility.
⯁ USER INPUTS
Length : Sets the number of bars used in the calculation of the bands.
Standard Deviation Level : Allows selection of 1, 2, or 3 standard deviations for upper and lower bands.
Colors : Customize colors for the uptrend and downtrend midline indicators.
⯁ CONCLUSION
The Prime Standard Deviation Bands indicator provides a comprehensive view of price volatility and trend direction. Its customizable bands, trend coloring, and mean reversion signals allow traders to effectively gauge price behavior, identify extreme conditions, and make informed trading decisions based on statistical boundaries.
shadowpipz macro's (Open-Source) Macro Indicator
The Macro Indicator, originally coded by toodegrees and defined by me, is a powerful tool designed to track and visualize key market cycles and shifts within specific timeframes. It highlights areas of significant market activity, allowing traders to identify potential reversals, continuations, or liquidity zones.
How to Use:
Time-Specific Analysis:
The indicator highlights specific time intervals (e.g., 8:20–8:40, 9:20–9:40), marking key zones of price movement. These zones are defined based on the Macro concept, which identifies significant price actions within specific windows of time.
Trend Reversals and Continuation:
Use the highlighted Macro zones to detect potential trend reversals or momentum continuations based on price behavior around these intervals.
Confluence with Other Tools:
Combine the indicator with other tools such as support/resistance levels, candlestick patterns, or momentum oscillators for enhanced trade confirmation.
Multi-Timeframe Application:
Apply the indicator across various timeframes to identify overlapping zones and refine your trading decisions.
Best Practices:
Observe how price interacts with the highlighted zones—these areas can act as key support or resistance points.
Utilize the indicator to monitor liquidity sweeps or potential breakout regions during specific time intervals.
Credit:
The Macro concept was defined by .
The indicator was originally coded by toodegrees.
Disclaimer:
This indicator serves as a supplementary tool and is best used alongside a comprehensive trading strategy. Ensure proper risk management for all trades.
GeometricProgressionPriceLevelsThis indicator plots horizontal lines at values which are terms of a Geometric Progression. 'Base Price' could be any number (use a number nearest to the price of the Symbol/Stock). 'Multiplier For Geometric Progression' is the Multiplication Factor to calculate values between terms. 30 Horizontal lines will be plotted above and 30 Horizontal lines will be plotted below the 'Base Price' number value.
Zero Lag Trend Signals with Heikin Ashi (MTF) [AlgoAlpha]Zero Lag Trend Signals is combined with Heikin Ashi (MTF)
4Vietnamese 3x SupertrendThis strategy attempts to capture long positions in the Vietnamese stock market using a combination of three Supertrend indicators and additional filters. It utilizes pyramiding to enter up to three long positions with a 33.33% allocation each.
Key Elements:
Supertrend Indicators: Three Supertrend indicators are used with different lengths and multipliers to identify potential trend changes.
Entry Conditions:
The strategy looks for a downtrend on the slowest Supertrend (Supertrend3) followed by uptrends on the medium (Supertrend2) and fast (Supertrend1) Supertrends.
Alternatively, if Supertrend3 is still downtrending, but Supertrend1 is downtrending and a significant previous high (highestGreen) exists, an entry signal is generated.
An optional filter allows using the highest of the last two red candles for highestGreen calculation.
Entry Stop Loss:
An optional stop loss can be set based on the entry price of previous long positions, preventing further losses if the price falls below entry prices.
Exit Conditions:
Three exit options are available:
- All Downtrend Exit: Close all positions if all Supertrends turn uptrend and a bearish candlestick pattern (close price lower than open price) is formed.
- Average Price in Loss Exit: Close all positions if the average entry price of open positions is higher than the current closing price (indicating a loss).
- All Positions in Loss Exit: Close all positions if any of the following conditions are met:
A single open position exists, and its entry price is higher than the current close price.
Two open positions exist, and their entry prices are both higher than the current close price.
Three open positions exist, and their entry prices are all higher than the current close price.
Pyramiding: The strategy allows entering up to three long positions with a fixed allocation of 33.33% each.
Customization Options:
The strategy provides various input parameters to customize its behavior:
Supertrend lengths and multipliers for each indicator.
Option to use the highest of the last two red candles for highestGreen calculation.
Enabling/disabling Entry Stop Loss and different exit conditions.
Further Enhancements:
Explore additional entry and exit filters to refine trade signals.
Consider incorporating risk management techniques like position sizing and trailing stops.
Backtest the strategy with historical data to evaluate its effectiveness and identify potential areas for improvement.
Volume Flow IndicatorThe Volume Flow Indicator is an advanced tool designed to help traders analyze market flow by utilizing volume-based insights. By applying filtering techniques and smoothing algorithms, this indicator provides a detailed view of market momentum and potential trend reversals.
Key Features:
1. Volume-Based Trend Analysis: Helps identify bullish or bearish trends based on volume flow.
2. Smoothing Options: Reduces noise using moving averages (SMA or EMA) for more reliable signals.
3. Customizable Visualization: Users can adjust histogram colors, transparency, and smoothing periods.
4. Signal Line: A built-in line that highlights potential momentum shifts when crossed by the VFI.
How It Works:
The indicator calculates the Volume Flow Indicator (VFI) by analyzing the differences between the typical price (HLC3) and its previous value. It applies logarithmic transformations and volume filtering to reduce the impact of extreme spikes that could distort results. The VFI is then smoothed with a moving average, and a signal line is plotted for further analysis.
- Histogram Interpretation:
- Positive values (above the zero line) indicate bullish volume flow (buying pressure).
- Negative values (below the zero line) indicate bearish volume flow (selling pressure).
- Crossovers between the VFI and signal line suggest potential trend reversals.
How to Use:
1. Identifying Market Flow:
- Green histogram bars above the zero line indicate bullish volume flow.
- Red histogram bars below the zero line suggest bearish volume flow.
2. Detecting Reversals:
- Monitor crossovers between the histogram and signal line to spot changes in market sentiment.
3. Combining with Other Tools:
- Use the VFI alongside trendlines or oscillators for improved trade decision-making.
Example Scenarios:
- Bullish Signal: The histogram turns green and crosses above the zero line, indicating potential buying momentum.
- Bearish Signal: The histogram turns red and falls below the zero line, indicating selling pressure.
- Reversal: A crossover between the histogram and signal line signals a possible trend change.
Applications:
This indicator is versatile and supports various trading styles:
- Scalping: Quickly identify volume trends for short-term trades.
- Swing Trading: Spot emerging trends for medium-term opportunities.
- Trend Following: Confirm the strength and continuation of long-term trends.
Notes for Users:
- Alert Conditions: Use the built-in alert settings to stay notified when the VFI crosses the signal line or when volume flow shifts occur.
- Customization: Adjust smoothing parameters and visualization settings to fit your trading strategy.
Read out more:
precisiontradingsystems.com
Samet-AL SAT SinyaL// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © Samce
//@version=5
indicator(title='Samet-AL SAT SinyaL', shorttitle='Samet-AL SAT SinyaL', overlay=true)
pSARbeginningValue = input.int(2, minval=0, maxval=10, title='PSAR başlangıç değeri')
pSARendValue = input.int(2, minval=1, maxval=10, title='PSAR bitiş değeri')
pSARmultiplierValue = input.int(2, minval=0, maxval=10, title=' PSAR katsayi değeri')
pSARbeginningMethod = pSARbeginningValue * .01
pSARendMethod = pSARendValue * .10
pSARmultiplierMethod = pSARmultiplierValue * .01
pSAR_UpValue = ta.sar(pSARbeginningMethod, pSARmultiplierMethod, pSARendMethod)
pSAR_DownValue = ta.sar(pSARbeginningMethod, pSARmultiplierMethod, pSARendMethod)
pSAR_UpColor = close >= pSAR_DownValue ? color.green : na
pSAR_DownColor = close <= pSAR_UpValue ? color.red : na
plot(pSAR_UpValue ? pSAR_UpValue : na, style=plot.style_columns, color=pSAR_UpColor, linewidth=0, title='PSAR yukarı', transp=85)
plot(pSAR_DownValue ? pSAR_DownValue : na, style=plot.style_columns, color=pSAR_DownColor, linewidth=1, title='PSAR aşağı', transp=85)
//Zone Identification - This is once again ATR based method to identify the zone based on its strength
zoneSource = input(hl2, title='Kaynak')
src = input(hl2, title='Kaynak')
zoneLength = input(defval=10, title='ATR Alan Uzunluğu')
zoneMultiplier = input.float(defval=3.0, step=0.1, title='ATR Alan Katsayısı')
zoneATR = ta.atr(zoneLength)
downZone = zoneSource + zoneMultiplier * zoneATR
downZoneNew = nz(downZone , downZone)
downZone := close < downZoneNew ? math.min(downZone, downZoneNew) : downZone
upZone = zoneSource - zoneMultiplier * zoneATR
upZoneNew = nz(upZone , upZone)
upZone := close > upZoneNew ? math.max(upZone, upZoneNew) : upZone
zoneDecider = 1
zoneDecider := nz(zoneDecider , zoneDecider)
zoneDecider := zoneDecider == -1 and close > downZoneNew ? 1 : zoneDecider == 1 and close < upZoneNew ? -1 : zoneDecider
redZone = zoneDecider == -1 and zoneDecider == 1
greenZone = zoneDecider == 1 and zoneDecider == -1
downZoneColor = zoneDecider == -1 ? color.red : color.gray
upZoneColor = zoneDecider == 1 ? color.green : color.gray
downZonePlot = plot(zoneDecider == 1 ? na : downZone, style=plot.style_linebr, linewidth=2, color=color.new(color.red, 0), title='Düşüş Bölgesi')
plotshape(redZone ? downZone : na, location=location.absolute, style=shape.diamond, size=size.tiny, color=color.new(color.red, 0), title='Düşüş Bölgesi Başlangıçı')
plotshape(redZone ? downZone : na, location=location.absolute, style=shape.labeldown, size=size.tiny, color=color.new(color.red, 0), textcolor=color.new(color.white, 0), title='SAT', text='Samet/ SAT(short)')
upZonePlot = plot(zoneDecider == 1 ? upZone : na, style=plot.style_linebr, linewidth=2, color=color.new(color.green, 0), title='Yükseliş Bölgesi')
plotshape(greenZone ? upZone : na, location=location.absolute, style=shape.diamond, size=size.tiny, color=color.new(color.green, 0), title='Yükseliş Bölgesi Başlangıçı')
plotshape(greenZone ? upZone : na, location=location.belowbar, style=shape.labelup, size=size.tiny, color=color.new(color.green, 0), textcolor=color.new(color.white, 0), title='AL', text='Samet/ AL(long)')
aldigimfiyat = str.tostring(ta.valuewhen(greenZone, zoneSource, 0))
sattigimfiyat = str.tostring(ta.valuewhen(redZone, zoneSource, 0))
Buy = greenZone
Sell = redZone
if greenZone == 1
l = label.new(bar_index, na)
label.set_text(l, aldigimfiyat)
label.set_color(l, color.green)
label.set_yloc(l, yloc.belowbar)
label.set_style(l, label.style_label_up)
if redZone == 1
l = label.new(bar_index, na)
label.set_text(l, sattigimfiyat)
label.set_color(l, color.red)
label.set_yloc(l, yloc.abovebar)
label.set_style(l, label.style_label_down)
neutralZonePlot = plot(ohlc4, style=plot.style_circles, linewidth=0, title='Alan Stili')
fill(neutralZonePlot, downZonePlot, color=downZoneColor, title='Düşüş Rengi', transp=90)
fill(neutralZonePlot, upZonePlot, color=upZoneColor, title='Yükseliş Rengi', transp=90)
emaLowerPeriod = input.int(9, minval=1, title='EMA Düşük Periyotlar için')
emaLower = ta.ema(input(close), emaLowerPeriod)
plot(emaLower, color=color.new(color.fuchsia, 0), linewidth=2, title='EMA Düşük Periyot')
showEMA2 = input(false, title='EMA - Orta Periyotlar için')
emaMediumPeriod = input.int(27, minval=1, title='EMA Orta Periyotlar için')
emaMedium = ta.ema(input(close), emaMediumPeriod)
plot(showEMA2 and emaMedium ? emaMedium : na, color=color.new(color.aqua, 0), linewidth=2, title='EMA Orta Periyotlar için')
hmaLongPeriod = input.int(200, minval=1, title='HMA Uzun Periyotlar için')
hmaLong = ta.hma(input(close), hmaLongPeriod)
plot(hmaLong, color=color.new(color.gray, 0), linewidth=2, title='HMA Uzun Periyotlar için')
isCloseAbove = close > emaLower and close > hmaLong
isCloseBelow = close < emaLower and close < hmaLong
isCloseBetween = close > emaLower and close < hmaLong or close < emaLower and close > hmaLong
isNeutral = close > pSAR_DownValue and isCloseBelow or close < pSAR_DownValue and isCloseAbove
barcolor(isNeutral or isCloseBetween ? color.yellow : isCloseBelow ? color.red : isCloseAbove ? color.green : color.black)
position = input(500)
h = ta.highest(position)
info_label_off = input(50, title='Bilgilendirme paneli gösterilsin mi?')
info_label_size = input.string(size.normal, options= , title='Info panel label size')
info_panel_x = timenow + math.round(ta.change(time) * 10)
info_panel_y = h
info_current_close = ' SON KAPANIŞ : ' + str.tostring(close)
disp_panels1 = input(true, title='ALIŞ BİLGİLENDİRME PANELİ İSTİYORMUSUNUZ?')
disp_panels2 = input(true, title='SATIŞ BİLGİLENDİRME PANELİ İSTİYORMUSUNUZ?')
Long = '-=-=-ALIŞ DETAY-=-=- '
Short = '-=-=-SATIŞ DETAY-=-=- '
pp1 = ' Aldıktan sonra geçen BAR : ' + str.tostring(ta.barssince(Buy), '##.##')
pp2 = ' Sattıktan sonra geçen BAR : ' + str.tostring(ta.barssince(Sell), '##.##')
Buyprice = ' Satın aldığımız fiyat : ' + str.tostring(ta.valuewhen(Buy, src, 0), '##.##') + ''
ProfitLong = ' KAR : ' + '(' + str.tostring(100 * ((src - ta.valuewhen(Buy, src, 0)) / ta.valuewhen(Buy, src, 0)), '##.##') + '%' + ')'
Sellprice = ' Satın aldığımız fiyat : ' + str.tostring(ta.valuewhen(Sell, src, 0), '##.##') + ''
ProfitShort = ' KAR : ' + '(' + str.tostring(100 * ((ta.valuewhen(Sell, src, 0) - src) / ta.valuewhen(Sell, src, 0)), '##.##') + '%' + ')'
info_textlongbuy = Long + info_current_close + pp1 + Buyprice + ProfitLong
info_textlongsell = Short + info_current_close + pp2 + Sellprice + ProfitShort
info_panellongbuy = zoneDecider == 1 and disp_panels1 ? label.new(x=info_panel_x, y=info_panel_y, text=info_textlongbuy, xloc=xloc.bar_time, yloc=yloc.price, color=color.green, style=label.style_label_up, textcolor=color.black, size=info_label_size) : na
info_panellongsell = zoneDecider == -1 and disp_panels2 ? label.new(x=info_panel_x, y=info_panel_y, text=info_textlongsell, xloc=xloc.bar_time, yloc=yloc.price, color=color.red, style=label.style_label_up, textcolor=color.black, size=info_label_size) : na
label.delete(info_panellongbuy )
label.delete(info_panellongsell )
Samet-AL SAT SinyaL // This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © Samce
//@version=5
indicator(title='Samet-AL SAT SinyaL', shorttitle='Samet-AL SAT SinyaL', overlay=true)
pSARbeginningValue = input.int(2, minval=0, maxval=10, title='PSAR başlangıç değeri')
pSARendValue = input.int(2, minval=1, maxval=10, title='PSAR bitiş değeri')
pSARmultiplierValue = input.int(2, minval=0, maxval=10, title=' PSAR katsayi değeri')
pSARbeginningMethod = pSARbeginningValue * .01
pSARendMethod = pSARendValue * .10
pSARmultiplierMethod = pSARmultiplierValue * .01
pSAR_UpValue = ta.sar(pSARbeginningMethod, pSARmultiplierMethod, pSARendMethod)
pSAR_DownValue = ta.sar(pSARbeginningMethod, pSARmultiplierMethod, pSARendMethod)
pSAR_UpColor = close >= pSAR_DownValue ? color.green : na
pSAR_DownColor = close <= pSAR_UpValue ? color.red : na
plot(pSAR_UpValue ? pSAR_UpValue : na, style=plot.style_columns, color=pSAR_UpColor, linewidth=0, title='PSAR yukarı', transp=85)
plot(pSAR_DownValue ? pSAR_DownValue : na, style=plot.style_columns, color=pSAR_DownColor, linewidth=1, title='PSAR aşağı', transp=85)
//Zone Identification - This is once again ATR based method to identify the zone based on its strength
zoneSource = input(hl2, title='Kaynak')
src = input(hl2, title='Kaynak')
zoneLength = input(defval=10, title='ATR Alan Uzunluğu')
zoneMultiplier = input.float(defval=3.0, step=0.1, title='ATR Alan Katsayısı')
zoneATR = ta.atr(zoneLength)
downZone = zoneSource + zoneMultiplier * zoneATR
downZoneNew = nz(downZone , downZone)
downZone := close < downZoneNew ? math.min(downZone, downZoneNew) : downZone
upZone = zoneSource - zoneMultiplier * zoneATR
upZoneNew = nz(upZone , upZone)
upZone := close > upZoneNew ? math.max(upZone, upZoneNew) : upZone
zoneDecider = 1
zoneDecider := nz(zoneDecider , zoneDecider)
zoneDecider := zoneDecider == -1 and close > downZoneNew ? 1 : zoneDecider == 1 and close < upZoneNew ? -1 : zoneDecider
redZone = zoneDecider == -1 and zoneDecider == 1
greenZone = zoneDecider == 1 and zoneDecider == -1
downZoneColor = zoneDecider == -1 ? color.red : color.gray
upZoneColor = zoneDecider == 1 ? color.green : color.gray
downZonePlot = plot(zoneDecider == 1 ? na : downZone, style=plot.style_linebr, linewidth=2, color=color.new(color.red, 0), title='Düşüş Bölgesi')
plotshape(redZone ? downZone : na, location=location.absolute, style=shape.diamond, size=size.tiny, color=color.new(color.red, 0), title='Düşüş Bölgesi Başlangıçı')
plotshape(redZone ? downZone : na, location=location.absolute, style=shape.labeldown, size=size.tiny, color=color.new(color.red, 0), textcolor=color.new(color.white, 0), title='SAT', text='Samet/ SAT(short)')
upZonePlot = plot(zoneDecider == 1 ? upZone : na, style=plot.style_linebr, linewidth=2, color=color.new(color.green, 0), title='Yükseliş Bölgesi')
plotshape(greenZone ? upZone : na, location=location.absolute, style=shape.diamond, size=size.tiny, color=color.new(color.green, 0), title='Yükseliş Bölgesi Başlangıçı')
plotshape(greenZone ? upZone : na, location=location.belowbar, style=shape.labelup, size=size.tiny, color=color.new(color.green, 0), textcolor=color.new(color.white, 0), title='AL', text='Samet/ AL(long)')
aldigimfiyat = str.tostring(ta.valuewhen(greenZone, zoneSource, 0))
sattigimfiyat = str.tostring(ta.valuewhen(redZone, zoneSource, 0))
Buy = greenZone
Sell = redZone
if greenZone == 1
l = label.new(bar_index, na)
label.set_text(l, aldigimfiyat)
label.set_color(l, color.green)
label.set_yloc(l, yloc.belowbar)
label.set_style(l, label.style_label_up)
if redZone == 1
l = label.new(bar_index, na)
label.set_text(l, sattigimfiyat)
label.set_color(l, color.red)
label.set_yloc(l, yloc.abovebar)
label.set_style(l, label.style_label_down)
neutralZonePlot = plot(ohlc4, style=plot.style_circles, linewidth=0, title='Alan Stili')
fill(neutralZonePlot, downZonePlot, color=downZoneColor, title='Düşüş Rengi', transp=90)
fill(neutralZonePlot, upZonePlot, color=upZoneColor, title='Yükseliş Rengi', transp=90)
emaLowerPeriod = input.int(9, minval=1, title='EMA Düşük Periyotlar için')
emaLower = ta.ema(input(close), emaLowerPeriod)
plot(emaLower, color=color.new(color.fuchsia, 0), linewidth=2, title='EMA Düşük Periyot')
showEMA2 = input(false, title='EMA - Orta Periyotlar için')
emaMediumPeriod = input.int(27, minval=1, title='EMA Orta Periyotlar için')
emaMedium = ta.ema(input(close), emaMediumPeriod)
plot(showEMA2 and emaMedium ? emaMedium : na, color=color.new(color.aqua, 0), linewidth=2, title='EMA Orta Periyotlar için')
hmaLongPeriod = input.int(200, minval=1, title='HMA Uzun Periyotlar için')
hmaLong = ta.hma(input(close), hmaLongPeriod)
plot(hmaLong, color=color.new(color.gray, 0), linewidth=2, title='HMA Uzun Periyotlar için')
isCloseAbove = close > emaLower and close > hmaLong
isCloseBelow = close < emaLower and close < hmaLong
isCloseBetween = close > emaLower and close < hmaLong or close < emaLower and close > hmaLong
isNeutral = close > pSAR_DownValue and isCloseBelow or close < pSAR_DownValue and isCloseAbove
barcolor(isNeutral or isCloseBetween ? color.yellow : isCloseBelow ? color.red : isCloseAbove ? color.green : color.black)
position = input(500)
h = ta.highest(position)
info_label_off = input(50, title='Bilgilendirme paneli gösterilsin mi?')
info_label_size = input.string(size.normal, options= , title='Info panel label size')
info_panel_x = timenow + math.round(ta.change(time) * 10)
info_panel_y = h
info_current_close = ' SON KAPANIŞ : ' + str.tostring(close)
disp_panels1 = input(true, title='ALIŞ BİLGİLENDİRME PANELİ İSTİYORMUSUNUZ?')
disp_panels2 = input(true, title='SATIŞ BİLGİLENDİRME PANELİ İSTİYORMUSUNUZ?')
Long = '-=-=-ALIŞ DETAY-=-=- '
Short = '-=-=-SATIŞ DETAY-=-=- '
pp1 = ' Aldıktan sonra geçen BAR : ' + str.tostring(ta.barssince(Buy), '##.##')
pp2 = ' Sattıktan sonra geçen BAR : ' + str.tostring(ta.barssince(Sell), '##.##')
Buyprice = ' Satın aldığımız fiyat : ' + str.tostring(ta.valuewhen(Buy, src, 0), '##.##') + ''
ProfitLong = ' KAR : ' + '(' + str.tostring(100 * ((src - ta.valuewhen(Buy, src, 0)) / ta.valuewhen(Buy, src, 0)), '##.##') + '%' + ')'
Sellprice = ' Satın aldığımız fiyat : ' + str.tostring(ta.valuewhen(Sell, src, 0), '##.##') + ''
ProfitShort = ' KAR : ' + '(' + str.tostring(100 * ((ta.valuewhen(Sell, src, 0) - src) / ta.valuewhen(Sell, src, 0)), '##.##') + '%' + ')'
info_textlongbuy = Long + info_current_close + pp1 + Buyprice + ProfitLong
info_textlongsell = Short + info_current_close + pp2 + Sellprice + ProfitShort
info_panellongbuy = zoneDecider == 1 and disp_panels1 ? label.new(x=info_panel_x, y=info_panel_y, text=info_textlongbuy, xloc=xloc.bar_time, yloc=yloc.price, color=color.green, style=label.style_label_up, textcolor=color.black, size=info_label_size) : na
info_panellongsell = zoneDecider == -1 and disp_panels2 ? label.new(x=info_panel_x, y=info_panel_y, text=info_textlongsell, xloc=xloc.bar_time, yloc=yloc.price, color=color.red, style=label.style_label_up, textcolor=color.black, size=info_label_size) : na
label.delete(info_panellongbuy )
label.delete(info_panellongsell )
Santa Clause RallyA Santa Claus rally is a calendar effect that involves a rise in stock prices during the last 5 trading days in December and the first 2 trading days in the following January.
The Santa Claus rally can potentially predict the future trend of stocks in the coming year.
Merry Christmas and Happy New Year 🎄🎄🎄
High Probability Signals (Test1)Combined buy and sell signals indicator made on 1/5/25 includes rise, ema,
dynamic up and down divergencethis indicator calculates divergence using up and down vectors and use it for buy sell signals