SessionRangeLevels_v0.1SessionRangeLevels_v0.1 - Indicator Description
Overview:
SessionRangeLevels_v0.1 is a customizable Pine Script (v6) indicator designed to plot key price levels based on a user-defined trading session. It identifies the high and low of the session and calculates intermediate levels (75%, 50% "EQ", and 25%) within that range. These levels are projected forward as horizontal lines with accompanying labels, providing traders with dynamic support and resistance zones. The indicator supports extensive customization for session timing, time zones, line styles, colors, and more.
Key Features:
Session-Based Range Detection: Tracks the high and low prices during a specified session (e.g., 0600-0900) and updates them dynamically as the session progresses.
Customizable Levels: Displays High, 75%, EQ (50%), 25%, and Low levels, each with independent toggle options, styles (Solid, Dashed, Dotted), colors, and widths.
Session Anchor: Optional vertical line marking the session start, with customizable style, color, and width.
Projection Offset: Extends level lines forward by a user-defined number of bars (default: 24) for future price reference.
Labels: Toggleable labels for each level (e.g., "High," "75%," "EQ") with adjustable size (Tiny, Small, Normal, Large).
Time Zone Support: Aligns session timing to a selected time zone (e.g., America/New_York, UTC, Asia/Tokyo, etc.).
Alert Conditions: Triggers alerts when the price crosses any of the plotted levels (High, 75%, EQ, 25%, Low).
Inputs:
Session Time (HHMM-HHMM): Define the session range (e.g., "0600-0900" for 6:00 AM to 9:00 AM).
Time Zone: Choose from options like UTC, America/New_York, Europe/London, etc.
Anchor Settings: Toggle the session start line, adjust its style (default: Dotted), color (default: Black), and width (default: 1).
Level Settings:
High (Solid, Black, Width 2)
75% (Dotted, Blue, Width 1)
EQ/50% (Dotted, Orange, Width 1)
25% (Dotted, Blue, Width 1)
Low (Solid, Black, Width 2)
Each level includes options to show/hide, set style, color, width, and label visibility.
Projection Offset: Number of bars to extend lines (default: 24).
Label Size: Set label size (default: Small).
How It Works:
The indicator detects the start and end of the user-defined session based on the specified time and time zone.
During the session, it tracks the highest high and lowest low, updating the levels in real-time.
At the session start, it plots the High, Low, and intermediate levels (75%, 50%, 25%), projecting them forward.
Lines and labels dynamically adjust as new highs or lows occur within the session.
Alerts notify users when the price crosses any active level.
Usage:
Ideal for traders who focus on session-based strategies (e.g., London or New York open). Use it to identify key price zones, monitor breakouts, or set targets. Customize the appearance to suit your chart preferences and enable alerts for real-time trading signals.
Notes:
Ensure your chart’s timeframe aligns with your session duration for optimal results (e.g., 1-minute or 5-minute charts for short sessions).
The indicator overlays directly on the price chart for easy integration with other tools.
Feedback and suggestions are welcome!
Chart patterns
D'Trade&Chill - SMC V2.01-1Price action and supply and demand is a key strategy use in trading. We wanted it to be easy and efficient for user to identify these zones, so the user can focus less on marking up charts and focus more on executing trades.
This indicator shows you supply and demand zones by using pivot points to show you the recent highs and the recent lows.
Features
This indicator includes some features relevant to SMC , these are highlighted below:
Full internal & swing market structure labeling in real-time
Swing Structure: Displays the swing structure labels & solid lines on the chart (BOS).
Supply & demand ( bullish & bearish )
Swing Points: Displays swing points labels on chart such as HH, HL, LH, LL.
Options to style the indicator to more easily display these concepts
White OB (supply): search for short opportunities
Blue OB (demand): search for long opportunities
Break of structure ( BOS )
For markets to move up and down a break in market structure must occur. A break in market structure occurs when the market begins to shift direction and break the previous HH and HL or HL and LL of the market. We also integrated the feature that you can see the BOS lines. In the indicator settings you can adjust the color of the label.
Copy từ tác giả FluidTrades - SMC Lite . Cảm Ơn tác giả đã có 1 chỉ báo tuyệt vời.
Settings
SwingHigh/Low Length: Allows the user to select Historical (default) or Present, which displays only recent data on the chart.
Supply/demand box width: Allows user to change the size of the supply and demand box
History to keep: allows the user to select how many most recent supply & demand box appear on the chart.
Visual settings
Show zig zag : allow user to see market patters within the market
Show price action labels: allow user to turn on/off the (swing points)
Supply box color : allow users to change the color of their supply box
Demand box color : allow users to change the color of their supply box
Bos label color : allow users to change the color of their BOS label
Poi label color : allow user to change the color of their POI label
Price action label : allow users to change the color of their swing points labels
Zig zag color : allow users to change the color of the zig/zag market patters
Warning
Never blindly take a trade on a supply/demand box - wait for a proper market structure to occur before considering a trade
Xfera Trading Bot Automation1. Objetivo da Automação
Esta automação é baseada em um trailing stop dinâmico calculado usando o ATR (Average True Range) . O objetivo é identificar pontos de entrada (compra e venda) e saída (fechamento) com base na relação entre o preço (src) e o trailing stop (xATRTrailingStop).
Compra : Quando o preço cruza acima do trailing stop.
Venda : Quando o preço cruza abaixo do trailing stop.
Fechamento Automático : Quando o preço reverte em relação ao trailing stop, todas as posições abertas são fechadas.
2. Lógica da Automação
(a) Cálculo do Trailing Stop
O trailing stop é calculado dinamicamente com base no ATR e no parâmetro a (sensibilidade). Aqui está como ele funciona:
pinescript
Copy
1
2
xATR = ta.atr(c) // Calcula o ATR com o período definido (input `c`)
nLoss = a * xATR // Define a distância do trailing stop com base na sensibilidade (`a`)
O ATR mede a volatilidade do mercado. Quanto maior o ATR, mais distante o trailing stop fica do preço, permitindo que a posição acompanhe movimentos maiores.
O parâmetro a ajusta a sensibilidade do trailing stop:
Valores menores (a = 1) tornam o trailing stop mais próximo do preço (mais sensível).
Valores maiores (a = 2) tornam o trailing stop mais distante do preço (menos sensível).
O trailing stop é recalculado a cada barra:
pinescript
Copy
1
xATRTrailingStop := src > nz(xATRTrailingStop , 0) ? src - nLoss : src + nLoss
Se o preço estiver acima do trailing stop anterior (src > xATRTrailingStop ), o trailing stop segue o preço subtraindo nLoss.
Se o preço estiver abaixo do trailing stop anterior (src < xATRTrailingStop ), o trailing stop segue o preço adicionando nLoss.
(b) Condições de Compra e Venda
As condições de compra e venda são baseadas em cruzamentos simples entre o preço (src) e o trailing stop (xATRTrailingStop):
pinescript
Copy
1
2
buyCondition = ta.crossover(src, xATRTrailingStop)
sellCondition = ta.crossunder(src, xATRTrailingStop)
Compra (buyCondition) : Ocorre quando o preço cruza acima do trailing stop.
Venda (sellCondition) : Ocorre quando o preço cruza abaixo do trailing stop.
Essas condições garantem que os sinais sejam claros e objetivos, evitando ruídos ou sinais falsos.
(c) Gestão de Posições
A gestão de posições é feita automaticamente pelo TradingView usando os comandos strategy.entry e strategy.close:
pinescript
Copy
1
2
3
4
5
6
7
if (buyCondition)
strategy.close("Sell") // Fecha posição de venda, se existir
strategy.entry("Buy", strategy.long) // Abre posição de compra
if (sellCondition)
strategy.close("Buy") // Fecha posição de compra, se existir
strategy.entry("Sell", strategy.short) // Abre posição de venda
Compra : Quando um sinal de compra é gerado, qualquer posição de venda (Sell) é fechada antes de abrir uma nova posição de compra (Buy).
Venda : Quando um sinal de venda é gerado, qualquer posição de compra (Buy) é fechada antes de abrir uma nova posição de venda (Sell).
(d) Fechamento Automático
Se o preço reverter em relação ao trailing stop, todas as posições abertas são fechadas automaticamente:
pinescript
Copy
1
2
if (close_position)
strategy.close_all(comment="Close Position")
Isso garante que você não fique exposto a grandes reversões no mercado.
3. Plotagem Visual
Para facilitar a análise dos sinais, o código inclui plotagens visuais:
Linha do Trailing Stop :
pinescript
Copy
1
plot(xATRTrailingStop, color=color.blue, title="Trailing Stop")
Uma linha azul representa o trailing stop no gráfico.
Marcadores de Sinais :
pinescript
Copy
1
2
plotshape(buyCondition, title='Buy Signal', text='Buy', style=shape.labelup, location=location.belowbar, color=color.new(color.green, 0), textcolor=color.new(color.white, 0), size=size.tiny)
plotshape(sellCondition, title='Sell Signal', text='Sell', style=shape.labeldown, location=location.abovebar, color=color.new(color.red, 0), textcolor=color.new(color.white, 0), size=size.tiny)
Marcadores verdes (Buy) aparecem abaixo das barras para sinais de compra.
Marcadores vermelhos (Sell) aparecem acima das barras para sinais de venda.
Barcolor :
pinescript
Copy
1
barcolor(src > xATRTrailingStop ? color.green : color.red)
As barras mudam de cor para verde (tendência de alta) ou vermelho (tendência de baixa) com base na relação entre o preço e o trailing stop.
4. Alertas Automáticos
Os alertas automáticos permitem que você receba notificações sempre que um sinal for gerado. Eles estão configurados no código:
pinescript
Copy
1
2
alertcondition(buyCondition, title='Buy Signal', message='🔔 SINAL DE COMPRA GERADO! 🟢 📊 Ativo: {{ticker}} ⏰ Timeframe: {{interval}} 💵 Preço Atual: {{close}} 🗓 Data/Hora: {{time}}')
alertcondition(sellCondition, title='Sell Signal', message='🔔 SINAL DE VENDA GERADO! 🔴 📊 Ativo: {{ticker}} ⏰ Timeframe: {{interval}} 💵 Preço Atual: {{close}} 🗓 Data/Hora: {{time}}')
Você pode configurar esses alertas no TradingView para receber notificações via Telegram, Discord, e-mail ou outros serviços.
5. Como Usar Essa Automação
Teste em Dados Históricos :
Use o modo "Estratégia" no TradingView para testar o desempenho da automação com dados históricos.
Avalie métricas como lucro líquido, drawdown máximo e taxa de acerto.
Ajuste os Parâmetros :
Experimente diferentes valores para a (sensibilidade) e c (período do ATR) para otimizar a estratégia para o ativo e timeframe escolhidos.
Configure Alertas :
Configure alertas no TradingView para receber notificações automáticas sempre que um sinal for gerado.
Integre com Plataformas de Trading :
Use os alertas para executar ordens automaticamente em plataformas como MetaTrader, 3Commas ou TradingView Alerts.
6. Considerações Finais
Esta automação é ideal para traders que desejam seguir tendências de mercado usando um trailing stop dinâmico.
Ela funciona bem em mercados com tendência clara, mas pode gerar sinais falsos em mercados laterais ou muito voláteis.
Certifique-se de usar stop loss e take profit adequados para proteger seu capital.
Se precisar de mais explicações ou quiser ajustar algo no código, é só pedir! 😊
Boa sorte com seus trades! 🚀📈
Ask
Explain
Send a Message
ICT PO3 Indicator This indicator hels to understand the Po3 Strategy. Never rely on it 100%. It is just an indicator.
TrendPredator FOTrendPredator Fakeout Highlighter (FO)
The TrendPredator Fakeout Highlighter is designed to enhance multi-timeframe trend analysis by identifying key market behaviors that indicate trend strength, weakness, and potential reversals. Inspired by Stacey Burke’s trading approach, this tool focuses on trend-following, momentum shifts, and trader traps, helping traders capitalize on high-probability setups.
At its core, this indicator highlights peak formations—anchor points where price often locks in trapped traders before making decisive moves. These principles align with George Douglas Taylor’s 3-day cycle and Steve Mauro’s BTMM method, making the FO Highlighter a powerful tool for reading market structure. As markets are fractal, this analysis works on any timeframe.
How It Works
The TrendPredator FO highlights key price action signals by coloring candles based on their bias state on the current timeframe.
It tracks four major elements:
Breakout/Breakdown Bars – Did the candle close in a breakout or breakdown relative to the last candle?
Fakeout Bars (Trend Close) – Did the candle break a prior high/low and close back inside, but still in line with the trend?
Fakeout Bars (Counter-Trend Close) – Did the candle break a prior high/low, close back inside, and against the trend?
Switch Bars – Did the candle lose/ reclaim the breakout/down level of the last bar that closed in breakout/down, signalling a possible trend shift?
Reading the Trend with TrendPredator FO
The annotations in this example are added manually for illustration.
- Breakouts → Strong Trend
Multiple candles closing in breakout signal a healthy and strong trend.
- Fakeouts (Trend Close) → First Signs of Weakness
Candles that break out but close back inside suggest a potential slowdown—especially near key levels.
- Fakeouts (Counter-Trend Close) → Stronger Reversal Signal
Closing against the trend strengthens the reversal signal.
- Switch Bars → Momentum Shift
A shift in trend is confirmed when price crosses back through the last closed breakout candles breakout level, trapping traders and fuelling a move in the opposite direction.
- Breakdowns → Trend Reversal Confirmed
Once price breaks away from the peak formation, closing in breakdown, the trend shift is validated.
Customization & Settings
- Toggle individual candle types on/off
- Customize colors for each signal
- Set the number of historical candles displayed
Example Use Cases
1. Weekly Template Analysis
The weekly template is a core concept in Stacey Burke’s trading style. FO highlights individual candle states. With this the state of the trend and the developing weekly template can be evaluated precisely. The analysis is done on the daily timeframe and we are looking especially for overextended situations within a week, after multiple breakouts and for peak formations signalling potential reversals. This is helpful for thesis generation before a session and also for backtesting. The annotations in this example are added manually for illustration.
📈 Example: Weekly Template Analysis snapshot on daily timeframe
2. High Timeframe 5-Star Setup Analysis (Stacey Burke "ain't coming back" ACB Template)
This analysis identifies high-probability trade opportunities when daily breakout or down closes occur near key monthly levels mid-week, signalling overextensions and potentially large parabolic moves. Key signals for this are breakout or down closes occurring on a Wednesday. This is helpful for thesis generation before a session and also for backtesting. The annotations in this example are added manually for illustration. Also an indicator can bee seen on this chart shading every Wednesday to identify the signal.
📉 Example: High Timeframe Setup snapshot
3. Low Timeframe Entry Confirmation
FO helps confirm entry signals after a setup is identified, allowing traders to time their entries and exits more precisely. For this the highlighted Switch and/ or Fakeout bars can be highly valuable.
📊 Example (M15 Entry & Exit): Entry and Exit Confirmation snapshot
📊 Example (M5 Scale-In Strategy): Scaling Entries snapshot
The annotations in this examples are added manually for illustration.
Disclaimer
This indicator is for educational purposes only and does not guarantee profits.
None of the information provided shall be considered financial advice.
Users are fully responsible for their trading decisions and outcomes.
Forex Power Indicator [FindBetterTrades]The Forex Power Indicator is designed to help traders quickly assess the relative strength and weakness of key forex pairs over a set period.
This tool calculates the percentage change in price over the last 5 days and highlights the strongest and weakest performing pairs in a simple table format.
Features:
Scans 10 major forex pairs (EURUSD, GBPUSD, USDJPY, AUDUSD, NZDUSD, USDCAD, CHFJPY, EURGBP, EURJPY, GBPJPY).
Calculates the percentage change over the last 5 days.
Identifies and labels the strongest and weakest pair based on performance.
Displays results in a customizable table, allowing traders to quickly interpret market trends.
How to Use:
The strongest pair (🟢) indicates the currency with the highest performance in the selected period.
The weakest pair (🔴) shows the currency that has lost the most value.
Alerts feature:
Once you add the script to your chart, go to "Create Alert"
Under "Condition", select "Forex Power Indicator ".
The system will use the messages set in the alert() function.
When triggered, the alert will display the message like:
"New strongest currency pair: USDJPY"
"New weakest currency pair: AUDUSD"
Use this information to spot momentum opportunities, potential reversals, or trend continuations in forex trading.
This indicator is for informational purposes only and should be used alongside other technical analysis tools to support trading decisions.
PriorRange v0.3 [OmarxQQQ/dc_77]PriorRangeLevels is a versatile indicator that plots key price levels based on prior period ranges across multiple timeframes. This tool helps traders identify potential support, resistance, and breakout zones by displaying the High, Low, 75%, 50% (EQ), and 25% levels from the previous period.
Key Features:
- Multi-timeframe analysis from 1-minute to Monthly charts
- Time zone flexibility with options for major global markets (NYC, London, Tokyo, etc.)
- Customizable display for each level (High, Low, 75%, EQ, 25%, Open)
- Clean, organized settings interface with grouped options
- Anchor line marking the start of prior periods
- Current period open price reference
How It Works:
The indicator detects new periods based on your selected timeframe and calculates the range of the previous period. It then plots horizontal lines at the High, Low, and three internal levels (75%, 50%, 25%) extending forward by your specified number of bars. These levels serve as potential support/resistance zones and decision points for your trading strategy.
Trading Applications:
- Use High/Low levels as potential breakout targets or reversal zones
- Monitor price reaction to the EQ (50%) level to gauge trend strength
- Identify intraday support/resistance based on previous period ranges
- Plan entries and exits around established market structure
Each component can be individually customized with different line styles, colors, and widths to match your chart preferences and analytical needs.
Originally created by @dc_77 with enhanced organization, multi-timeframe capabilities, and improved user interface. As Requested by many people.
populi a populo pro populo
GLGT
Linear Dominion
### Indicator Note: Linear Dominion
**Overview:**
The "Linear Dominion" indicator is a Pine Script v6 implementation of a Linear Regression Channel, designed to overlay on price charts in TradingView. It calculates a linear regression line based on a user-defined length and source, then constructs upper and lower channel boundaries around this line using either standard deviation or maximum price deviations. The indicator provides visual trend analysis, statistical correlation (Pearson's R), and alert conditions for price movements.
**Key Components:**
1. **Linear Regression Line (Base Line):**
- Calculated using the least squares method over a specified `Length` period.
- Represents the best-fit straight line through the price data (default source: close price).
- Displayed in red (solid line, no transparency).
2. **Upper and Lower Channels:**
- **Upper Channel**: Plotted above the base line (blue, semi-transparent).
- **Lower Channel**: Plotted below the base line (red, semi-transparent).
- Channel width can be set using:
- Standard deviation multiplied by a user-defined factor (`Upper Deviation` and `Lower Deviation`).
- Maximum price deviation from the regression line (if deviation multipliers are disabled).
3. **Inputs:**
- **Length**: Number of bars used for regression calculation (default: 100, range: 1-5000).
- **Source**: Price data to analyze (default: close).
- **Channel Settings**:
- `Upper Deviation`: Toggle and multiplier for upper channel width (default: true, 2.0).
- `Lower Deviation`: Toggle and multiplier for lower channel width (default: true, 2.0).
- **Display Settings**:
- `Show Pearson's R`: Displays correlation coefficient (default: true).
- `Extend Lines Left`: Extends channel lines to the left (default: false).
- `Extend Lines Right`: Extends channel lines to the right (default: true).
- **Color Settings**:
- Upper channel: Light blue (85% transparency).
- Lower channel: Light red (85% transparency).
4. **Statistical Features:**
- **Pearson's R**: Measures the linear correlation between price and time, displayed as a label below the lower channel when enabled.
- Range: -1 to 1 (1 = perfect positive correlation, -1 = perfect negative correlation, 0 = no correlation).
5. **Alerts:**
- **Dominion Channel Exited**: Triggers when price crosses above the upper channel or below the lower channel.
- **Switched to Uptrend**: Triggers when the trend changes from downtrend to uptrend (base line slope becomes positive).
- **Switched to Downtrend**: Triggers when the trend changes from uptrend to downtrend (base line slope becomes negative).
**How It Works:**
- The `calcSlope` function computes the slope, average, and intercept of the regression line using the formula: \( slope = \frac{n\sum(xy) - \sum x \sum y}{n\sum(x^2) - (\sum x)^2} \).
- The `calcDev` function calculates:
- Standard deviation of price from the regression line.
- Maximum upward and downward deviations (based on high/low prices).
- Pearson’s R correlation coefficient.
- Lines are dynamically updated each bar:
- Base line connects the start price (intercept + slope * (length-1)) to the end price (intercept).
- Upper/lower channels are offset from the base line based on the chosen deviation method.
- The area between lines is filled with semi-transparent colors for visual clarity.
**Usage:**
- **Trend Identification**: The slope of the base line indicates the overall trend direction.
- **Support/Resistance**: Upper and lower channels act as dynamic levels where price might reverse or break out.
- **Volatility Analysis**: Wider channels indicate higher volatility; narrower channels suggest consolidation.
- **Correlation Insight**: Pearson's R helps assess how well price follows a linear trend.
**Notes:**
- The lower channel line currently uses `colorUpper` (blue) instead of `colorLower` (red), which may be a bug (should be fixed to `colorLower` for consistency).
- The indicator updates only on the last bar (`barstate.islast`) to optimize performance.
- Maximum bars back is set to 5000, which should match or exceed the maximum `Length` input.
**Potential Improvements:**
- Fix the lower line color to use `colorLower`.
- Add options for line width customization.
- Include additional statistical metrics (e.g., R-squared).
SBS INTRA PROIndicator is useful for both intraday and long term purposes.
use 5 MIn, 15Min TF for intraday
and for long term use Weekly TF.
Range Filter Buy and Sell 5minstudy("폴MACD", overlay=false)
// 폴MACD
lengthMA_MACD = input(34, title="폴MACD Length") // 변수명 변경
lengthSignal = input(9, title="폴MACD Signal Length")
calc_smma(src, len) =>
smma=na(smma ) ? sma(src, len) : (smma * (len - 1) + src) / len
smma
calc_zlema(src, length) =>
ema1=ema(src, length)
ema2=ema(ema1, length)
d=ema1-ema2
ema1+d
src=hlc3
hi=calc_smma(high, lengthMA_MACD) // 수정된 변수명 적용
lo=calc_smma(low, lengthMA_MACD) // 수정된 변수명 적용
mi=calc_zlema(src, lengthMA_MACD) // 수정된 변수명 적용
md=(mi>hi)? (mi-hi) : (mimi?src>hi?blue:blue:src ema(s,l)
wa=sma(src-ma(src, alength), lengthMA_Trend) // 수정된 변수명 적용
wb=sma(src-ma(src, blength), lengthMA_Trend) // 수정된 변수명 적용
wc=sma(src-ma(src, clength), lengthMA_Trend) // 수정된 변수명 적용
wcf=(wb != 0) ? (wc/wb > cutoff) : false
wbf=(wa != 0) ? (wb/wa > cutoff) : false
// 컬럼 색상 변경: 0선 위 파랑, 0선 아래 빨강
plot(wc, color=wc > 0 ? aqua : red, style=columns, linewidth=3, title="WaveC", transp=80)
plot(mse and wcf?wc:na, color=fuchsia, style=columns, linewidth=3, title="Wave Trend", transp=70)
plot(wb, color=wb > 0 ? black : black, style=columns, linewidth=3, title="WaveB", transp=90)
plot(mse and wbf?wb:na, color=fuchsia, style=columns, linewidth=3, title="WaveB Trend", transp=70)
plot(wa, color=wa > 0 ? black : black, style=columns, linewidth=3, title="WaveA", transp=90
Auto Fib Retracement with Buy/SellKey Features of the Advanced Script:
Multi-Timeframe (MTF) Analysis:
We added an input for the higher timeframe (higher_tf), where the trend is checked on a higher timeframe to confirm the primary trend direction.
Complex Trend Detection:
The trend is determined not only by the current timeframe but also by the trend on the higher timeframe, giving a more comprehensive and reliable signal.
Dynamic Fibonacci Levels:
Fibonacci lines are plotted dynamically, extending them based on price movement, with the Fibonacci retracement drawn only when a trend is identified.
Background Color & Labels:
A background color is added to give a clear indication of the trend direction. Green for uptrend, red for downtrend. It makes it visually easier to understand the current market structure.
"Buy" or "Sell" labels are shown directly on the chart to mark possible entry points.
Strategy and Backtesting:
The script includes strategy commands (strategy.entry and strategy.exit), which allow for backtesting the strategy in TradingView.
Stop loss and take profit conditions are added (loss=100, profit=200), which can be adjusted according to your preferences.
Next Steps:
Test with different timeframes: Try changing the higher_tf to different timeframes (like "60" or "240") and see how it affects the trend detection.
Adjust Fibonacci settings: Modify how the Fibonacci levels are calculated or add more Fibonacci levels like 38.2%, 61.8%, etc.
Optimize Strategy Parameters: Fine-tune the entry/exit logic by adjusting stop loss, take profit, and other strategy parameters.
This should give you a robust foundation for creating advanced trend detection strategies
Merged Trading Script [BigBeluga]Merger Of two pole oscillator and Volumatic variable dynamic average to create perfect sell and buy signals
Exponential MAThis script is a Pine Script indicator that plots multiple exponential moving averages (EMAs) or simple moving averages (SMAs) on a TradingView chart. It provides a visual representation of market trends and momentum by calculating moving averages for different periods.
The script allows users to toggle between EMAs and SMAs using a boolean flag (exponential). Each moving average is assigned a color based on its trend direction and relationship to a reference moving average (MMA100). The primary moving average (MMA05) is highlighted with dynamic color changes, while the others follow a similar trend-based color scheme.
By displaying multiple moving averages, this indicator helps traders identify trend strength, potential reversals, and overall market direction.
1-3-1 Detector with LevelsWhen you apply this script to your chart you must do the following to get alerts.
1. Apply to chart
2. Make sure you are on the 12HR time frame on the stock you want to detect the setup
3. Go to alerts and make a new alert with this script and the specific stock. (it will not work with watchlist because the watchlist feature is bugged, so it has to be a specific stock)
4. On the alert UI make sure you click
Condition - 1-3-1 Levels
(under that you will click 1-3-1 setup alert)
Trigger - Once per bar close
Expiration - open ended
5. Make sure not to touch anything else, the code will automatically detect the stock its tracking.
6. Change notifications to what you prefer.
7. Enjoy, at 8pm EST if there is a valid 1 in a 1-3-1 setup it will notify you and give you the levels you need to chart.
Machine Learning + Geometric Moving Average 250/500Indicator Description - Machine Learning + Geometric Moving Average 250/500
This indicator combines password-protected market analysis levels with two powerful Geometric Moving Averages (GMA 250 & GMA 500).
🔒 Password-Protected Custom Levels
Access pre-defined long and short price levels for select assets (crypto, stocks, and more) by entering the correct password in the indicator settings.
Once the correct password is entered, the indicator automatically displays:
Green horizontal lines for long entry zones.
Red horizontal lines for short entry zones.
If the password is incorrect, a warning label will appear on the chart.
📈 Geometric Moving Averages (GMA)
This indicator calculates GMA 250 and GMA 500, two long-term trend-following tools.
Unlike traditional moving averages, GMAs use logarithmic smoothing to better handle exponential price growth, making them especially useful for assets with strong trends (e.g., crypto and tech stocks).
GMA 250 (white line) tracks the medium-term trend.
GMA 500 (gold line) tracks the long-term trend.
⚙️ Customizable & Flexible
Works on multiple assets, including cryptocurrencies, equities, and more.
Adaptable to different timeframes and trading styles — ideal for both swing traders and long-term investors.
This indicator is ideal for traders who want to blend custom support/resistance levels with advanced geometric trend analysis to better navigate both volatile and trending markets.
MohMaayaaa### **Good Trading Habits for Success**
1️⃣ **Have a Trading Plan** – Define your strategy, entry & exit points, and risk management rules before executing trades.
2️⃣ **Risk Management** – Never risk more than **1-2%** of your capital per trade to avoid major losses.
3️⃣ **Use Stop-Loss & Take-Profit** – Protect your trades with stop-loss to limit losses and take-profit to secure gains.
4️⃣ **Position Sizing** – Adjust trade size based on risk, ensuring no single trade can wipe out your account.
5️⃣ **Emotional Discipline** – Avoid revenge trading, overtrading, or making impulsive decisions. Stick to your plan.
6️⃣ **Keep a Trading Journal** – Track your trades, analyze mistakes, and refine your strategy.
7️⃣ **Continuous Learning** – Stay updated with market trends, technical analysis, and improve your strategy over time.
🔹 **Key Rule:** **Survive first, profit later.** Focus on **capital preservation** before chasing big wins. 🚀
Çoklu Zaman Aralıklı Smoothed Heiken Ashi Al-Sat SinyalleriMulti-Timeframe Smoothed Heiken Ashi Buy-Sell Signals
The Multi-Timeframe Smoothed Heiken Ashi Buy-Sell Signals indicator is a powerful tool designed for traders who seek to enhance their decision-making process by combining the clarity of Heiken Ashi candles with the precision of multi-timeframe analysis. This innovative indicator provides smoothed Heiken Ashi signals across multiple timeframes, allowing traders to identify trends, reversals, and potential entry/exit points with greater confidence.
Key Features:
Smoothed Heiken Ashi Calculation:
The indicator uses a smoothed version of Heiken Ashi candles, which reduces market noise and provides a clearer representation of price trends.
Heiken Ashi candles are recalculated to highlight the underlying momentum, making it easier to spot trend continuations and reversals.
Multi-Timeframe Analysis:
Traders can analyze Heiken Ashi signals across three customizable timeframes simultaneously (e.g., 1-minute, 5-minute, and 15-minute).
This multi-timeframe approach helps confirm trends and signals by aligning short-term and long-term perspectives.
Buy-Sell Signals:
The indicator generates buy signals when the smoothed Heiken Ashi candles indicate a strong uptrend across all selected timeframes.
Sell signals are triggered when the candles show a strong downtrend, helping traders exit positions or consider short-selling opportunities.
Trend Confirmation:
By combining signals from multiple timeframes, the indicator ensures higher accuracy and reduces false signals.
Traders can use this feature to confirm the strength of a trend before entering a trade.
Customizable Settings:
Users can customize the timeframes, smoothing parameters, and signal thresholds to suit their trading style and preferences.
The indicator also allows for adjustable stop-loss and take-profit levels, enabling better risk management.
Visual Clarity:
The indicator plots buy and sell signals directly on the chart, making it easy to interpret.
Color-coded signals and trend zones (e.g., overbought, oversold) provide a clear visual representation of market conditions.
How It Works:
The indicator calculates smoothed Heiken Ashi values for each selected timeframe.
It then compares the trends across these timeframes to identify high-probability buy and sell opportunities.
When all timeframes align (e.g., uptrend on 1-minute, 5-minute, and 15-minute charts), a strong buy signal is generated. Conversely, a sell signal is triggered when downtrends align across timeframes.
Benefits:
Improved Trend Identification: Smoothed Heiken Ashi candles make it easier to identify and follow trends.
Enhanced Signal Accuracy: Multi-timeframe analysis reduces false signals and increases confidence in trade setups.
Flexible and Adaptable: Customizable settings allow traders to tailor the indicator to their specific needs.
Risk Management: Built-in stop-loss and take-profit features help traders manage risk effectively.
Ideal For:
Swing Traders: Identify and capitalize on medium-term trends.
Day Traders: Use multi-timeframe signals to make quick, informed decisions.
Scalpers: Benefit from the smoothed Heiken Ashi calculations for short-term trades.
Conclusion:
The Multi-Timeframe Smoothed Heiken Ashi Buy-Sell Signals indicator is a versatile and reliable tool for traders of all experience levels. By combining the simplicity of Heiken Ashi candles with the power of multi-timeframe analysis, it provides a clear and actionable roadmap for navigating the markets. Whether you're a day trader, swing trader, or scalper, this indicator can help you make smarter, more confident trading decisions.
DOMINION
Here's a breakdown of what the code does:
1. **Indicators Used**:
- SMA 9 (red line)
- SMA 50 (blue line)
- SMA 180 (white line)
- EMA 20 (yellow line)
2. **Input Parameters**:
- `smaInput1 = 9`: First SMA period (editable)
- `smaInput2 = 50`: Second SMA period (editable)
- `smaInput3 = 180`: Third SMA period (editable)
- `emaInput1 = 20`: EMA period (editable)
- `no = 3`: Lookback period for swing high/low calculation
- `Barcolor`: Toggle for bar coloring
- `Bgcolor`: Toggle for background coloring
3. **Buy/Sell Signal System**:
- Uses a swing-based trailing stop loss (TSL) system
- `res`: Highest high over 'no' periods
- `sup`: Lowest low over 'no' periods
- Buy signal: When price crosses above the trailing stop
- Sell signal: When price crosses below the trailing stop
- Visual indicators:
- Green up arrow for Buy signals
- Red down arrow for Sell signals
- Green/red line for the trailing stop level
- Optional bar and background coloring
4. **Logic Breakdown**:
- `avd`: Determines trend direction (1 for up, -1 for down, 0 for neutral)
- `avn`: Captures the last significant trend direction
- `tsl`: Sets trailing stop level based on trend direction
- Color coding:
- Green when price is above TSL
- Red when price is below TSL
5. **Features**:
- Plots all moving averages as an overlay on price chart
- Shows entry/exit signals with arrows
- Includes alert conditions for Buy and Sell signals
- Customizable colors and visibility of elements
This is a trend-following system that:
- Uses multiple timeframe moving averages for trend confirmation
- Implements a swing-based trailing stop for trade management
- Provides clear visual signals for entries and exits