Export Datathis script widmsfsnklfdsmsfklmdklmskldskl;mgfksldmgklsdmglksdfnmgkldsmngvlksdmnvlkdmsnklvndsklvnsdklv ndvdsklvdsklvlksdvmsdklmvsldkkvd
Indicators and strategies
Manual Pivot Highs & lows.You can use the script to find pivot highs & lows.
Even for bars existing in right side of your current bar. (Given the bar exists)
Sessions [MiAn]A session script is a set of commands or instructions that are executed in a specific order to automate tasks, interact with systems, or perform other actions.
Here's a general breakdown of what a session script typically includes:
1. *Initialization*: The script initializes the session, which may involve setting up environment variables, loading libraries or modules, or establishing connections to external systems.
2. *Commands or Instructions*: The script executes a series of commands or instructions, which can include tasks such as:
- Data processing or manipulation
- File operations (e.g., copying, moving, deleting)
- System interactions (e.g., launching applications, sending notifications)
- Network interactions (e.g., sending requests, receiving data)
3. *Logic and Control Flow*: The script may include conditional statements, loops, and other control structures to manage the flow of execution based on various conditions or inputs.
4. *Error Handling*: The script may include error handling mechanisms to catch and manage errors or exceptions that occur during execution.
5. *Cleanup*: The script may perform cleanup tasks, such as closing connections, releasing resources, or deleting temporary files.
Session scripts can be written in various programming languages, such as shell scripts (e.g., Bash, PowerShell), Python, or other scripting languages.
What specific type of session script are you interested in learning more about?
Shanmu Important Levels 1.3The pivot point is simply the average of the high, low, and closing prices from the previous trading day. On the subsequent day, trading above the pivot point is thought to indicate ongoing bullish sentiment, while trading below the pivot point indicates bearish sentiment.
Simplified HMM for Regime DetectionSimplified HMM made possible in PineScript
This is a very basic version of Hidden Markov Model used to detect market regimes. To not confuse with the real model.
There are 3 possible states:
Bull: Positive momentum and strong uptrend.
Bear: Negative momentum and strong downtrend.
Ranging: Weak momentum or indecisive market.
The table shows the current probability of convergence, aka. what's the probability that the market will stay in the same regime and the transition probability.
How to use?
This indicator doesn't generate entry signals and is best used to asses the current trend and trend strength. For more questions, don't hesitate to ask me.
[Helper] Trade Journal TableThis indicator serves as a starting point for creating a customized trade journal that meets individual requirements. It provides a basic structure for visualizing trade data in table form which can be adapt to specific needs. The trade data must be maintained directly within the script using the Pine Editor.
Basic Structure:
The example table consists of six columns: Date, Entry Price, Exit Price, Profit/Loss (color-coded), Strategy, and Notes. It is displayed centrally on the chart and dynamically adjusts to the number of recorded trades.
Example Data:
To demonstrate its functionality, the indicator includes predefined example trades, which should be replaced with actual trading data. Additional information, such as strategies and notes, can be added to improve trade documentation.
P T Supertrend CustomPT Supertrend Custom Indicator Description
The PT Supertrend Custom indicator is a dual Supertrend-based tool designed to help traders identify market trends and potential reversals with enhanced accuracy. This custom indicator plots two Supertrend lines with different ATR (Average True Range) lengths and multipliers, providing a broader perspective on price movements across varying market conditions.
Key Features:
1. Dual Supertrend Lines:
- The indicator calculates two separate Supertrend values using customizable ATR lengths (default: 7 and 21) and factors (default: 3.0 for both).
- This dual-layered approach helps identify both short-term and long-term trends for better decision-making.
2. Customizable Parameters:
- ATR Length (ATR Length & ATR Length2): Determines the lookback period for volatility calculation.
- Factor (Factor & Factor2): Defines the multiplier for the ATR, controlling the sensitivity of the Supertrend lines.
3. Visual Trend Representation:
- Green and red line plots represent uptrends and downtrends, respectively.
- The indicator overlays on the price chart, offering a clear visual representation of trend direction.
- Trend fill areas provide additional clarity, with green shading for uptrends and red shading for downtrends.
4. Dynamic Trend Shifts:
- The indicator adapts dynamically based on price action, switching from an uptrend to a downtrend and vice versa when conditions change.
- Two independent trend signals allow traders to compare short-term and long-term trend confirmations.
5. Overlay on Price Chart:
- The indicator is plotted directly on the price chart for easy visualization without cluttering the workspace.
How to Use:
- Trend Identification:
- A green Supertrend line below price indicates an uptrend.
- A red Supertrend line above price signals a downtrend.
- When both Supertrends align, it indicates a strong trend; divergence may signal potential reversals.
- Entry & Exit Signals:
- Consider long positions when both Supertrend lines turn green.
- Consider short positions when both Supertrend lines turn red.
- Use the shorter ATR period for quicker entries and exits, while the longer ATR period provides confirmation.
- Risk Management:
- The Supertrend lines can serve as dynamic support/resistance levels for placing stop-loss orders.
Best Used In:
- Trend-following strategies
- Swing trading and day trading
- Volatile markets where ATR-based signals are effective
This indicator provides a comprehensive view of market trends by combining short- and long-term trend filters, making it a valuable tool for traders seeking precision and clarity in their trading decisions.
Created by Prince Thomas
Fibonacci Channel (365 SMA with Labels)This script dynamically combines Fibonacci levels with the 365-period simple moving average (SMA), offering a powerful tool for identifying high-probability support and resistance zones. By adjusting to the changing 365 SMA, the script remains relevant across different market phases.
Key Features:
Dynamic Fibonacci Levels:
The script automatically calculates Fibonacci retracements and extensions relative to the 365SMA.
These levels adapt to market trends, offering more relevant zones compared to static Fibonacci tools.
Support and Resistance Zones:
In uptrends, price often respects retracement levels above the 365SMA (e.g., 38.2%, 50%, 61.8%).
In downtrends, price may interact with retracements and extensions below the 365 SMA (e.g., 23.6%, 1.618).
Customizable Confluence Zones:
Key levels such as the golden pocket (61.8%–65%) are highlighted as high-probability zones for reversals or continuations.
Extensions (e.g., 1.618) can serve as profit targets or bearish continuation points.
Practical Applications:
Identifying Reversal Zones:
Look for confluence between Fibonacci levels and the 365 SMA to identify potential reversal points.
Example: A pullback to the 61.8%–65% golden pocket near the 365 SMA often signals a bullish reversal.
Trend Confirmation:
In uptrends, price respecting Fibonacci retracements above the 365 SMA (e.g., 38.2%, 50%) confirms strength.
Use Fibonacci extensions (e.g., 1.618) as profit targets during strong trends.
Dynamic Risk Management:
Place stop-losses just below key Fibonacci retracement levels near the 365 SMA to minimize risk.
Bearish Scenarios:
Below the 365 SMA, Fibonacci retracements and extensions act as resistance levels and bearish targets.
How to Use:
Volume Confirmation: Watch for volume spikes near Fibonacci levels to confirm support or resistance.
Price Action: Combine with candlestick patterns (e.g., engulfing candles, pin bars) for precise entries.
Trend Indicators: Use in conjunction with shorter moving averages or RSI to confirm market direction.
Example Setup:
Scenario: Price retraces to the 61.8% Fibonacci level while holding above the 365 SMA.
Confirmation: Volume spikes, and a bullish engulfing candle forms.
Action: Enter long with a stop-loss just below the 365 SMA and target extensions like 1.618.
Key Takeaways:
The 365 SMA serves as a reliable long-term trend anchor.
Fibonacci retracements and extensions provide dynamic zones for trade entries, exits, and risk management.
Combining this tool with volume, price action, or other indicators enhances its effectiveness.
Breakout Trading with ATR MenaVerseNombre del Indicador
Breakout Trading with ATR
Propósito del Script
Este indicador está diseñado para ayudar a los traders a identificar posibles rompimientos en los precios, ya sea al alza o a la baja, utilizando el ATR (Average True Range) como medida de volatilidad. Combina niveles de soporte y resistencia con la volatilidad del mercado para establecer puntos de entrada en operaciones de compra y venta.
Características Principales
Identificación de Soporte y Resistencia:
Utiliza un período definido por el usuario (lookback) para identificar el precio más alto (resistencia) y más bajo (soporte) en un rango específico de barras.
Niveles de Rompimiento:
Calcula dos niveles:
Rompimiento Superior: Para señales de compra.
Rompimiento Inferior: Para señales de venta.
Estos niveles se basan en la resistencia, el soporte y el ATR multiplicado por un factor ajustable (multiplier).
Señales de Compra y Venta:
Señal de Compra: Cuando el precio cierra por encima del nivel de rompimiento superior.
Señal de Venta: Cuando el precio cierra por debajo del nivel de rompimiento inferior.
Alertas de Trading:
Notificaciones automáticas para las señales de compra y venta:
"Señal de Compra: El precio rompió la resistencia."
"Señal de Venta: El precio rompió el soporte."
Visualización Intuitiva:
Líneas verdes y rojas para los niveles de rompimiento.
Líneas punteadas naranja y azul para los niveles originales de resistencia y soporte.
Flechas que indican claramente las señales de compra y venta en el gráfico.
Opcional: Mostrar ATR en el Gráfico:
Permite al usuario ver el valor del ATR como una línea adicional en el gráfico, para entender mejor la volatilidad del mercado.
Parámetros Personalizables
ATR Length: El número de períodos para calcular el ATR.
Predeterminado: 14.
ATR Multiplier: Factor que amplifica los niveles de rompimiento con base en la volatilidad.
Predeterminado: 1.5.
Lookback Period for Levels: Número de barras hacia atrás para calcular soporte y resistencia.
Predeterminado: 50.
Show ATR: Opción para mostrar o no el ATR en el gráfico.
Predeterminado: Desactivado.
Cálculos Importantes
ATR (Average True Range):
Calcula la volatilidad promedio de las últimas ATR Length barras.
Niveles de Soporte y Resistencia:
Resistencia: Precio más alto en el rango de lookback.
Soporte: Precio más bajo en el rango de lookback.
Niveles de Rompimiento:
Rompimiento Superior:
Resistencia
+
(
ATR
×
Multiplicador
)
Resistencia+(ATR×Multiplicador)
Rompimiento Inferior:
Soporte
−
(
ATR
×
Multiplicador
)
Soporte−(ATR×Multiplicador)
Visualización
Línea Verde: Nivel de rompimiento superior.
Línea Roja: Nivel de rompimiento inferior.
Línea Naranja: Nivel de resistencia original.
Línea Azul: Nivel de soporte original.
Flechas:
Verde hacia arriba para señales de compra.
Roja hacia abajo para señales de venta.
Uso Práctico
Identificación de Rompimientos:
Usa las líneas de colores para detectar cuando el precio supera los niveles clave.
Señales de Entrada:
Ejecuta operaciones de compra o venta basándote en las flechas y alertas.
Confirmación con ATR:
Utiliza el ATR para evaluar si el mercado tiene suficiente volatilidad para justificar el rompimiento.
vix//@version=5
indicator("Mikfiton Vix", overlay=false)
// India VIX input using the chart's timeframe
vixSource = request.security("NSE:INDIAVIX", timeframe.period, close)
// Determine the color of the VIX line based on the trend
vixColor = vixSource > vixSource ? color.red : color.green
// Plot India VIX with dynamic color based on trend
plot(vixSource, title="India VIX", color=vixColor, linewidth=2)
// Define volatility ranges
stableRange = vixSource >= 9 and vixSource < 12
volatileRange = vixSource >= 12 and vixSource < 14
highlyVolatileRange = vixSource >= 14 and vixSource <= 20
// Fill area based on volatility ranges
bgcolor(stableRange ? color.new(color.green, 90) : na, title="Stable Zone")
bgcolor(volatileRange ? color.new(color.yellow, 90) : na, title="Volatile Zone")
bgcolor(highlyVolatileRange ? color.new(color.red, 90) : na, title="Highly Volatile Zone")
CPR, Pivot Levels, PDH/PDL, and EMAs BY HSEThis indicator include cpr with pivot levels, previous day high and low, and also you can add 3 ema's
Trader Ahliman Indicator 1
This indicator has been created by combining multiple indicators. The signals provided by the indicator are not investment advice. I would like to thank everyone who contributed to the indicators within this tool. Best regards.
Gelişmiş Bollinger Bands & RSI StrategyUzun bir şekilde açıklamak gerekirse Bollinger ve RSI kullanarak strateji oluşturdum.
5-Min Open Candle BreakoutThis indicator provies buy sell signal based on 5 min open candle breakout strategy.
Turn of the Month Strategy on Steroids█ STRATEGY DESCRIPTION
The "Turn of the Month Strategy on Steroids" is a seasonal mean-reversion strategy designed to capitalize on price movements around the end of the month. It enters a long position when specific conditions are met and exits when the Relative Strength Index (RSI) indicates overbought conditions. This strategy is optimized for use on daily or higher timeframes.
█ WHAT IS THE TURN OF THE MONTH EFFECT?
The Turn of the Month effect refers to the observed tendency of stock prices to rise around the end of the month. This strategy leverages this phenomenon by entering long positions when the price shows signs of a reversal during this period.
█ SIGNAL GENERATION
1. LONG ENTRY
A Buy Signal is triggered when:
The current day of the month is greater than or equal to the specified `dayOfMonth` threshold (default is 25).
The close price is lower than the previous day's close (`close < close `).
The previous day's close is also lower than the close two days ago (`close < close `).
The signal occurs within the specified time window (between `Start Time` and `End Time`).
There is no existing open position (`strategy.position_size == 0`).
2. EXIT CONDITION
A Sell Signal is generated when the 2-period RSI exceeds 65, indicating overbought conditions. This prompts the strategy to exit the position.
█ ADDITIONAL SETTINGS
Day of Month: The day of the month threshold for triggering a Buy Signal. Default is 25.
Start Time and End Time: The time window during which the strategy is allowed to execute trades.
█ PERFORMANCE OVERVIEW
This strategy is designed to exploit seasonal price patterns around the end of the month.
It performs best in markets where the Turn of the Month effect is pronounced.
Backtesting results should be analyzed to optimize the `dayOfMonth` threshold and RSI parameters for specific instruments.
PD/EMA by L00T3RThis indicator calculates the distance between the closing price and its Exponential Moving Average (EMA) over a user-defined period. It plots the distance as a line, along with histograms to highlight positive and negative values, and optionally overlays the EMA on the chart.
Optimized Impulse Wave Strategy for Speedy BTC Trades (3-Min)Looking to capitalize on rapid price movements in Bitcoin? The Optimized Impulse Wave Strategy is designed for high-frequency traders who thrive on short-term opportunities. Leveraging a combination of key technical indicators, this strategy aims to provide timely entries and exits with dynamic risk management.
Key Features:
📊 Indicators Used:
MACD Crossover: To identify momentum shifts.
200 EMA Trend Confirmation: For directional bias.
RSI (14): To gauge overbought/oversold conditions.
ADX (14): To confirm strong trends with a threshold filter.
ATR-based Stop Loss & Take Profit: Adaptive risk management.
⚡ Timeframe: 3-minute chart – ideal for scalping and short-term trades.
💡 Entry Logic:
Long Entry: Price above EMA, MACD bullish crossover, RSI > 50, and ADX strength confirmation.
Short Entry: Price below EMA, MACD bearish crossover, RSI < 50, and ADX strength confirmation.
🎯 Risk-Reward Ratio: Customizable with built-in ATR calculations to ensure strategic exits.
Performance:
✅ Win Rate: ~40% on BTC/USDT (3-min timeframe) in backtesting.
✅ Profit Factor: Carefully optimized to balance risk and reward.
✅ Trade Frequency: Frequent, perfect for active traders seeking volatility.
How to Use:
Apply the script to BTC/USDT on the 3-minute chart.
Watch for green buy arrows and red sell arrows to trigger trades.
Manage your risk using ATR-based stop-loss and take-profit levels.
Enable alerts for real-time trade signals.
⚠ Disclaimer: Past performance does not guarantee future results. Use proper risk management and test in a demo environment before live trading.
Follow for more trading strategies and share your thoughts below! 📩🔥
ContraSuperTrend @DrGS atr 55,8xthis is a contrarian supertrend strategy for buy at low and sell on high. only long trades to be done in good scripts