Combined Support Resistance & Moving AveragesConverted the script to Pine Script version 6 syntax.
Replaced outdated functions like pivothigh and pivotlow with ta.pivothigh and ta.pivotlow.
Updated the input and plot methods to match version 6 standards.
Fixed any syntax issues related to brackets or line continuation.
Let me know if this works or needs further refinements!
Wskaźniki Billa Williamsa
Volume Spike & RSI Scalping (Session Restricted)//@version=6
strategy("Volume Spike & RSI Scalping (Session Restricted)", overlay=true)
// Inputs
rsi_length = input(14, title="RSI Length")
overSold = input(30, title="RSI Oversold Level")
overBought = input(70, title="RSI Overbought Level")
volume_threshold = input(1.5, title="Volume Spike Multiplier (e.g., 1.5x avg volume)")
risk_reward_ratio = input(2.0, title="Risk-Reward Ratio (1:X)")
atr_length = input(14, title="ATR Length")
session_start_london = input.time(timestamp("0000-01-01 08:00 +0000"), title="London Session Start (UTC)")
session_end_london = input.time(timestamp("0000-01-01 16:00 +0000"), title="London Session End (UTC)")
session_start_ny = input.time(timestamp("0000-01-01 13:00 +0000"), title="New York Session Start (UTC)")
session_end_ny = input.time(timestamp("0000-01-01 21:00 +0000"), title="New York Session End (UTC)")
// Helper Functions
is_session = (time >= session_start_london and time <= session_end_london) or (time >= session_start_ny and time <= session_end_ny)
// RSI Calculation
vrsi = ta.rsi(close, rsi_length)
// Volume Spike Detection
avg_volume = ta.sma(volume, 20)
volume_spike = volume > avg_volume * volume_threshold
// Entry Signals Based on RSI and Volume
long_condition = is_session and volume_spike and vrsi < overSold and close > open // Bullish price action
short_condition = is_session and volume_spike and vrsi > overBought and close < open // Bearish price action
// Execute Trades
if (long_condition)
stop_loss = low - ta.atr(atr_length)
take_profit = close + (close - stop_loss) * risk_reward_ratio
strategy.entry("Buy", strategy.long, comment="Buy Signal")
strategy.exit("Take Profit/Stop Loss", "Buy", stop=stop_loss, limit=take_profit)
if (short_condition)
stop_loss = high + ta.atr(atr_length)
take_profit = close - (stop_loss - close) * risk_reward_ratio
strategy.entry("Sell", strategy.short, comment="Sell Signal")
strategy.exit("Take Profit/Stop Loss", "Sell", stop=stop_loss, limit=take_profit)
// Background Highlighting for Signals
bgcolor(long_condition ? color.new(color.green, 85) : na, title="Long Signal Background")
bgcolor(short_condition ? color.new(color.red, 85) : na, title="Short Signal Background")
Kaldıraçlı İşlem StratejisiKaldıraçlı İşlem Stratejisi Kaldıraçlı İşlem Stratejisi Kaldıraçlı İşlem Stratejisi
Pivot Points Standardthis will help in using vwap and piviot together you can use one indicator for both.
Parabolic SAR + EMA 200 + MACD Signals// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © Saleh_Toodarvari
//@version=5
indicator(title="Parabolic SAR + EMA 200 + MACD Signals", shorttitle="SAR EMA MACD", overlay=true, timeframe="", timeframe_gaps=true)
// Inputs
sar_start = input(0.02)
sar_increment = input(0.02)
sar_maximum = input(0.2, "Max Value")
ema_len = input.int(200, minval=1, title="Length")
ema_src = input(close, title="Source")
ema_offset = input.int(title="Offset", defval=0, minval=-500, maxval=500)
macd_fast_length = input(title="Fast Length", defval=12)
macd_slow_length = input(title="Slow Length", defval=26)
macd_src = input(title="Source", defval=close)
signal_length = input.int(title="Signal Smoothing", minval = 1, maxval = 50, defval = 9)
sma_source = input.string(title="Oscillator MA Type", defval="EMA", options= )
sma_signal = input.string(title="Signal Line MA Type", defval="EMA", options= )
// Colors
col_macd = input(#2962FF, "MACD Line ", group="Color Settings", inline="MACD")
col_signal = input(#FF6D00, "Signal Line ", group="Color Settings", inline="Signal")
col_grow_above = input(#26A69A, "Above Grow", group="Histogram", inline="Above")
col_fall_above = input(#B2DFDB, "Fall", group="Histogram", inline="Above")
col_grow_below = input(#FFCDD2, "Below Grow", group="Histogram", inline="Below")
col_fall_below = input(#FF5252, "Fall", group="Histogram", inline="Below")
// Parabolic SAR
SAR = ta.sar(sar_start, sar_increment, sar_maximum)
plot(SAR, "ParabolicSAR", style=plot.style_circles, color=#2962FF)
// EMA 200
EMA_200 = ta.ema(ema_src, ema_len)
plot(EMA_200, title="EMA", color=color.blue, offset=ema_offset)
// MACD
fast_ma = sma_source == "SMA" ? ta.sma(macd_src, macd_fast_length) : ta.ema(macd_src, macd_fast_length)
slow_ma = sma_source == "SMA" ? ta.sma(macd_src, macd_slow_length) : ta.ema(macd_src, macd_slow_length)
macd = fast_ma - slow_ma
signal = sma_signal == "SMA" ? ta.sma(macd, signal_length) : ta.ema(macd, signal_length)
delta = macd - signal
// Conditions
main_trend=if ohlc4high
true
else
false
macd_long = if (ta.crossover(delta, 0))
true
else
false
macd_short = if (ta.crossunder(delta, 0))
true
else
false
// Long
buy_signal= sar_long and macd_long and (main_trend=="Bullish")
// Short
sell_signal= sar_short and macd_short and (main_trend=="Bearish")
// Plots
plotshape(buy_signal, title="Buy Label", text="Buy", location=location.belowbar, style=shape.labelup, size=size.tiny, color=color.green, textcolor=color.white)
plotshape(sell_signal, title="Sell Label", text="Sell", location=location.abovebar, style=shape.labeldown, size=size.tiny, color=color.red, textcolor=color.white)
//_________________alerts_________________
alertcondition(buy_signal, title='SAR EMA200 MACD Buy signal!', message='Buy signal')
alertcondition(sell_signal, title='SAR EMA200 MACD Sell signal!', message='Sell signal')
BALA IndicatorThe BALA Indicator is a custom trading tool designed to simplify decision-making by combining multiple technical analysis strategies into one cohesive system. It provides buy and sell signals based on a combination of trend-following and momentum indicators, ensuring traders can identify optimal entry and exit points in the market.
EMA and SMA Buy/Sell Signals with 1:2 RRHere's a Pine Script for TradingView that provides buy and sell signals using the EMA (Exponential Moving Average) and SMA (Simple Moving Average). It also calculates targets for a 1:2 risk-reward ratio. You can modify the parameters such as EMA length, SMA length, and stop-loss distance to suit your strategy.
Ema Sma Signal
Answer in chat instead
This script calculates buy and sell signals based on the crossover of the EMA and SMA. When a crossover occurs, it displays the entry price, stop-loss, and take-profit levels on the chart with labels.
Key Features:
Inputs for EMA/SMA Lengths: Easily configurable EMA and SMA lengths.
Dynamic Stop-Loss and Take-Profit: Automatically calculates levels based on the input risk-reward ratio.
Visual Signals: Labels and background highlights for buy/sell signals.
ARAZ - Günlük AL/SAT SinyaliARAZ - Daily Buy/Sell Signal" Indicator
This script is designed to provide buy (long) and sell (short) signals based on price and RSI divergence analysis using daily price data.
Features:
Price and RSI Data: The script uses daily price data (open, high, low, close) and the 14-period Relative Strength Index (RSI).
Pivot Point Detection: It calculates pivot highs and lows for both price and RSI over a 5-day period.
Divergence Signals:
Bullish Divergence (Buy Signal): A buy signal is triggered when the price makes a new low, but RSI is making higher lows (indicating a potential reversal to the upside). Additionally, RSI should be below 30 (oversold condition).
Bearish Divergence (Sell Signal): A sell signal is triggered when the price makes a new high, but RSI is making lower highs (indicating a potential reversal to the downside). Additionally, RSI should be above 70 (overbought condition).
RSI Reference Lines: The script draws reference lines for RSI at 30 (oversold), 50 (neutral), and 70 (overbought) to visually aid traders in identifying potential overbought and oversold conditions.
Signals:
Buy Signal (Bullish Divergence): A green triangle pointing upwards below the price bar.
Sell Signal (Bearish Divergence): A red triangle pointing downwards above the price bar.
RSI Indicator:
The script also displays the RSI with dotted lines marking key levels (30, 50, and 70) on the chart.
Static Gann High and Low Across All TimeframesStatic Gann High and Low Across All Timeframes
Static Gann High and Low Across All Timeframes
Static Gann High and Low Across All Timeframes
Static Gann High and Low Across All Timeframes
Static Gann High and Low Across All Timeframes
Static Gann High and Low Across All Timeframes
Static Gann High and Low Across All Timeframes
GANN DATE HIGH N LOWGann Date High n Low depends on New and Full Moon Dates
Gann Date High n Low depends on New and Full Moon Dates
Gann Date High n Low depends on New and Full Moon Dates
Gann Date High n Low depends on New and Full Moon Dates
Gann Date High n Low depends on New and Full Moon Dates
Zero Lag EMA 100 200 300I have added Zero Lag EMA calculations for fast (100), slow (200), and long (300) periods. These are plotted as Fast ZLEMA, Slow ZLEMA, and Long ZLEMA.
VWAP + EMA 20, 200El indicador VWAP con SMAs combina el Precio Promedio Ponderado por Volumen (VWAP) con dos Medias Móviles Simples (SMAs) de 20 y 200 períodos. Este indicador es útil para analizar tanto la tendencia del precio ponderado por volumen como las tendencias a corto y largo plazo a través de las medias móviles.
AMG Supply and Demand ZonesSupply and Demand Zones Indicator
This indicator identifies and visualizes supply and demand zones on the chart to help traders spot key areas of potential price reversals or continuations. The indicator uses historical price data to calculate zones based on high/low ranges and a customizable ATR-based fuzz factor.
Key Features:
Back Limit: Configurable look-back period to identify zones.
Zone Types: Options to display weak, untested, and turncoat zones.
Customizable Parameters: Adjust fuzz factor and visualization settings.
Usage:
Use this indicator to enhance your trading strategy by identifying key supply and demand areas where price is likely to react.
You can customize this further based on how you envision users benefiting from your indicator. Let me know if you'd like to add or adjust anything!
Support Resistance with Moving AveragesFilter Lambda Issue:
Removed the array.filter() lambda call and replaced it with a loop to maintain compatibility.
Improved Support/Resistance Level Management:
Added explicit checks to ensure levels are within the loopback period.
Syntax Fixes:
Verified all parentheses and lambda functions to prevent mismatched input errors.
Streamlined Logic:
Cleaned up redundant or unnecessary conditions.
STOCKDALE VERSION1EMA 골든크로스, RSI 상승 다이버전스, Stochastic RSI 골든크로스, MACD 양수, OBV 상승 조건이 모두 충족되었을 때, 매수 신호를 생성합니다. 또한, 거래량이 높은 구간에서만 신호를 필터링합니다.
PDL By iofexPrevious day levels
A Previous Day Level Indicator is a trading tool designed to highlight the key levels from the previous trading session, such as the high, low, and close prices. These levels act as significant support and resistance points, helping traders make informed decisions. By analyzing these levels, traders can anticipate potential price reversals, breakouts, or continuations in the current trading session. This indicator is particularly useful for day traders and scalpers aiming to align their strategies with market trends.
RSI & Williams %R StrategyRSI 14 is calculated using the default rsi formula.
RSI's Moving Average is calculated using a simple moving average (default length is 7 but adjustable).
Williams %R is calculated over the specified length (default is 14).
Buy Signal:
RSI crosses above its moving average.
Williams %R crosses above the -80 level.
Sell Signal:
RSI crosses below its moving average.
Williams %R crosses below the -20 level.
Visual Indicators:
Green upward labels for buy signals.
Red downward labels for sell signals.
Williams %R and RSI are plotted for better visualization with threshold levels.
1 Minute Candle Strategythe script will work on any time frame, but specifically mentioned on 1 minutes candles. when applied on a 1 minutes chart the script will execute based on minute candle.