UT Bot Alerts + Hull SuiteUT Bot Alerts + Hull Suite Indicator is a powerful combination of trading tools designed to assist traders in identifying trends, potential entry, and exit points with enhanced accuracy
Индикаторы и стратегии
Portfolio [Afnan]🚀 Portfolio - Advanced Portfolio Management Indicator 📊
A game-changing portfolio management tool designed to help traders stay on top of their positions and manage risk efficiently. This indicator combines detailed tracking, real-time analytics, and visual clarity to ensure traders are well-equipped for the dynamic world of financial markets.
📈 Key Features 💡
Track up to 14 positions with ease
Real-time Profit & Loss (P&L) updates and risk metrics
Visual representation of entry, stop-loss (SL), and target levels
Alerts for stop-loss breaches and target achievements
Comprehensive portfolio summaries for quick analysis
Customizable options to suit individual trading styles
🔍 Main Components ⚙️
📊 1. Position Tracking
Detailed position data: entry, stop-loss, target levels, and more
Real-time risk-reward ratios
Insights into position size and exposure percentages
Continuous updates on P&L in real-time
📉 2. Visual Indicators
Clear visual markers for entry, SL, and target prices
Price labels with detailed percentage changes
Indicators that show the current position's market status
💼 3. Portfolio Summary
Aggregate account values and exposure
Summarized P&L metrics across all positions
Risk management insights for better decision-making
Daily performance tracking to evaluate strategies
⚠️ 4. Alert System
Instant notifications for stop-loss breaches
Alerts when target prices are hit
Alerts operate for the current chart symbol
⚡ Customization Options 🎨
Show or hide specific data columns
Adjust the table's position and size for better visibility
Personalize color schemes and text styles
Switch between full portfolio view and single symbol focus
📱 How to Use 📝
Input your positions in the indicator's settings
Enable or disable specific positions dynamically
Customize display preferences to your liking
Set up alerts for proactive risk management
Monitor all your trading activities in one comprehensive dashboard
📌 Important Notes ℹ️
Compatible with any trading symbol
Updates seamlessly during market hours
Alerts are specific to the currently active chart symbol
Maximum capacity: 14 simultaneous positions
Created by: @AfnanTAjuddin
⚠️ Disclaimer ⚠️
This indicator is a tool for informational purposes only. Ensure all calculations are verified and consult a financial professional before making investment decisions.
🎯 "Stay disciplined, trade smart, and let data guide your decisions." 📊
Whale Supertrend (V1.0)The script "Whale Supertrend (V1.0)" is an advanced trend indicator that uses multiple Supertrends with different factors to determine entry and exit points in the market. The Supertrend is a popular indicator that combines price and volatility to help identify trend direction. The script displays buy and sell signals based on the confluence of Supertrends.
How the script works
Configuring Supertrends
The script configures six Supertrends with different factors (factor, factor1, factor2, factor3, factor4, factor5) while using the same ATR period (atrPeriod = 10).
Supertrend 1: factor = 3
Supertrend 2: factor1 = 4
Supertrend 3: factor2 = 6
Supertrend 4: factor3 = 9
Supertrend 5: factor4 = 13
Supertrend 6: factor5 = 18
For each Supertrend, the bullish (blue) and bearish (purple) trend conditions are plotted on the chart.
Signal Calculation
The script calculates the number of Supertrends in bullish and bearish trend:
bullishCount: Number of Supertrends indicating a bullish trend.
bearishCount: Number of Supertrends indicating a bearish trend.
Signal Detection
The script triggers a buy or sell signal when at least three of the six Supertrends indicate the same trend:
Buy Signal (buySignal): Triggers when bullishCount is greater than or equal to 3.
Sell Signal (sellSignal): Triggers when bearishCount is greater than or equal to 3.
To avoid repetition, signals are only displayed when the state changes:
triggerBuy: Buy signal only when buySignal becomes true for the first time.
triggerSell: Sell signal only when sellSignal becomes true for the first time.
Fractal Trail [UAlgo]The Fractal Trail is designed to identify and utilize Williams fractals as dynamic trailing stops. This tool serves traders by marking key fractal points on the chart and leveraging them to create adaptive stop-loss trails, enhancing risk management and trade decision-making.
Williams fractals are pivotal in identifying potential reversals and critical support/resistance levels. By plotting fractals dynamically and providing configurable options, this indicator allows for personalized adjustments based on the trader's strategy.
This script integrates both visual fractal markers and adjustable trailing stops, offering insights into market trends while catering to a wide variety of trading styles and timeframes.
🔶 Key Features
Williams Fractals Identification: The indicator marks Williams Fractals on the chart, which are significant highs and lows within a specified range. These fractals are crucial for identifying potential reversal points in the market.
Dynamic Trailing Stops: The indicator generates dynamic trailing stops based on the identified fractals. These stops adjust automatically as new fractals are formed, providing a responsive and adaptive approach to risk management.
Fractal Range: Users can specify the number of bars to the left and right for analyzing fractals, allowing for flexibility in identifying significant price points.
Trail Buffer Percentage: A percentage-based safety margin can be added between the fractal price and the trailing stop, providing additional control over risk management.
Trail Invalidation Source: Users can choose whether the trailing stop flips based on candle closing prices or the extreme points (high/low) of the candles.
Alerts and Notifications: The indicator provides alerts for when the price crosses the trailing stops, as well as when new Williams Fractals are confirmed. These alerts can be customized to fit the trader's notification preferences.
🔶 Interpreting the Indicator
Fractal Markers: The triangles above and below the bars indicate Williams Fractals. These markers help traders identify potential reversal points in the market.
Trailing Stops: The dynamic trailing stops are plotted as lines on the chart. These lines adjust based on the latest identified fractals, providing a visual representation of potential support and resistance levels.
Fill Colors: The optional fill colors between the trailing stops and the price action help traders quickly identify the current trend and potential pullback zones.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Social SentimentThe Social Sentiment Indicator aggregates social sentiment data from Telegram and LunarCrush , normalizing and smoothing the data to create an intuitive, adaptive sentiment signal. By comparing positive and negative sentiment from Telegram with LunarCrush's sentiment percentages, this indicator provides a visual representation of aggregated market sentiment.
This script provides context for market sentiment, helping traders understand crowd psychology and its potential impact on price action. It excels at identifying moments of extreme optimism or pessimism, which can act as confirmations or warnings in a broader trading strategy.
This tool provides context but lacks direct buy/sell signals. Works best in trending or volatile markets but should be combined with other indicators for a complete trading strategy.
Risk Indicator# Risk Indicator
A dynamic risk analysis tool that helps traders identify optimal entry and exit points using a normalized risk scale from 0 to 1. The indicator combines price action, moving averages, and logarithmic scaling to provide clear visual signals for different risk zones.
### Key Features
• Displays risk levels on a scale of 0-1 with intuitive color gradients (blue → cyan → green → yellow → orange → red)
• Shows predicted price levels for different risk values
• Divides the chart into 5 DCA (Dollar Cost Average) zones
• Includes customizable alerts for rapid risk changes and zone transitions
• Automatically adjusts to market conditions using dynamic ATH/ATL calculations
### Customizable Parameters
• SMA Period: Adjust the smoothing period for the baseline moving average
• Power Factor: Fine-tune the sensitivity of risk calculations
• Initial ATL Value: Set the starting point for ATL calculations
• Label Offset: Adjust the position of price level labels
• Visual Options: Toggle price levels and zone labels
• Alert Settings: Customize alert thresholds and enable/disable notifications
### Risk Zones Explained
The indicator divides the chart into five distinct zones:
- 0.0-0.2: DCA 5x (Deep Blue) - Strongest buy zone
- 0.2-0.4: DCA 4x (Cyan) - Strong buy zone
- 0.4-0.6: DCA 3x (Green) - Neutral zone
- 0.6-0.8: DCA 2x (Yellow/Orange) - Take profit zone
- 0.8-1.0: DCA 1x (Red) - Strong take profit / potential sell zone
### Alerts
Built-in alerts for:
• Rapid increases in risk level
• Rapid decreases in risk level
• Entry into buy zones
• Entry into sell zones
### How to Use
1. Add the indicator to your chart
2. Adjust the SMA period and power factor to match your trading timeframe
3. Monitor the risk level and corresponding price predictions
4. Use the DCA zones to guide your position sizing
5. Set up alerts for your preferred risk thresholds
### Tips
- Lower risk values (blue/cyan) suggest potentially good entry points
- Higher risk values (orange/red) suggest taking profits or reducing position size
- Use in conjunction with other technical analysis tools for best results
- Adjust the power factor to fine-tune sensitivity to price movements
### Notes
- Past performance is not indicative of future results
- This indicator is meant to be used as part of a complete trading strategy
- Always manage your risk and position size according to your trading plan
Version 1.0
RSI + Normalized Fisher Transform with SignalsThis indicator combines three tools for market analysis: the Relative Strength Index (RSI), the RSI's moving average, and the Fisher Transform. RSI is a momentum oscillator that measures the speed and change of price movements, helping identify overbought and oversold conditions. The RSI moving average is a smoothed version of the RSI that filters noise and confirms trends. The Fisher Transform is a mathematical technique that transforms price data into a Gaussian normal distribution, making it easier to identify turning points. It has been normalized to the same scale as the RSI (0-100) for consistency.
Purpose
The goal of this indicator is to identify potential buy and sell opportunities with varying degrees of strength (strong and weak). By combining the RSI, its moving average, and the Fisher Transform, the indicator ensures signals are based on both momentum and reversals, making it highly versatile across different market conditions.
Key Features
This indicator provides strong and weak buy and sell signals. A strong buy occurs when the RSI crosses above its moving average while both the RSI and its moving average are oversold (below the default threshold of 30), and the Fisher Transform reverses direction within the same or prior bar while also being oversold. A weak buy occurs when the Fisher Transform is oversold, and the RSI crosses above its moving average while its value is between the default oversold threshold (30) and 50. A strong sell occurs when the RSI crosses below its moving average while both the RSI and its moving average are overbought (above the default threshold of 70), and the Fisher Transform reverses direction within the same or prior bar while also being overbought. A weak sell occurs when the Fisher Transform is overbought, and the RSI crosses below its moving average while its value is between 50 and the default overbought threshold (70).
The indicator includes customizable thresholds and lengths. Users can adjust the oversold and overbought thresholds to suit their trading style. The RSI length, moving average length, and Fisher Transform length are also customizable. The Fisher Transform is scaled to the RSI’s range of 0-100 to simplify analysis and signal interpretation.
How to Use the Indicator
On the chart, you will see the RSI line in blue, the RSI moving average in orange, and the Fisher Transform in purple. Horizontal lines at the default oversold (30) and overbought (70) levels mark critical zones for signals. Adjust these thresholds in the indicator settings as needed.
Strong buy signals are shown as larger, darker green arrows below the price. Weak buy signals are small lime arrows below the price. Strong sell signals are larger, darker red arrows above the price. Weak sell signals are small fuchsia arrows above the price.
Signal Interpretation
A strong buy indicates a highly favorable buying opportunity. This typically occurs when the asset is in a downtrend but shows signs of reversal, particularly in oversold zones. A weak buy suggests a potential buying opportunity but with less conviction, often when the market is neutral to slightly bearish but showing upward momentum. A strong sell indicates a highly favorable selling opportunity, usually occurring when the asset is in an uptrend but shows signs of reversal, particularly in overbought zones. A weak sell suggests a potential selling opportunity but with less conviction, often in neutral to slightly bullish markets showing downward momentum.
Practical Tips
Avoid using signals in isolation. Combine this indicator with other tools such as trendlines, moving averages, or support/resistance levels for greater accuracy. Adjust the parameters for different assets to match their volatility. For volatile assets, consider wider thresholds like 20/80 for oversold/overbought levels. For less volatile assets, tighter thresholds like 35/65 may be more appropriate. Use higher timeframes to confirm signals before trading on lower timeframes. Be cautious in sideways markets, as both RSI and the Fisher Transform perform better in trending conditions.
Instructions for Adjustments
To change the oversold or overbought levels, open the indicator settings by clicking the gear icon and modify the "Oversold Threshold" and "Overbought Threshold" values. To adjust lengths for RSI and Fisher Transform, update the "RSI Length," "RSI Moving Average Length," and "Fisher Transform Length" settings. If needed, toggle signal visibility by enabling or disabling specific arrows (Strong Buy, Weak Buy, Strong Sell, Weak Sell) in the "Style" tab.
Best Practices
Risk management is essential. Always set appropriate stop-loss levels and position sizes based on your risk tolerance. Backtest the indicator on historical data to understand its performance and behavior for your chosen asset and timeframe. Combining this indicator with volume or volatility analysis (Bollinger Band Width, for example) can help confirm signal validity.
This indicator simplifies decision-making by identifying high-probability trading opportunities using a combination of momentum, trend, and reversals. Follow these instructions to fully utilize its capabilities without needing to analyze the underlying code.
Detrended Price Oscillator [NexusSignals]Detrended Price Oscillator (DPO) is a detrended price oscillator, used in technical analysis, strips out price trends in an effort to estimate the length of price cycles from peak to peak or trough to trough.
DPO is not a momentum indicator, instead highlights peaks and troughs in price, which are used to estimate buy and sell points in line with the historical cycle. (cf. to investopedia)
DPO indicator made by NexusSignals components :
a filled area that allow users to see easy the trend of an asset;
a sma moving average on chart (default length is 20)
a 20 sma on oscillator, both ma's are color coded to show uptrend / downtrend
a donchian channel applied to the dpo to show breakouts, breakdowns and resistances/support, reversals
few alerts for price crossing above ma, cross above the 0 dpo line, and for cross above and below the donchian channels top and bottom
How you can use DPO indicator ?
The detrended price oscillator (DPO) can be used for measuring the distance between peaks and troughs in the indicator that may help traders to make future decisions as they can locate the most recent trough and determine when the next one may occur in the meassured distance on oscillator between peaks and troughs.
You can use the indicator to find the potential price reversals, for example when the price of an asset is in a bearish trend and the dpo is bouncing from the donchian channel bottom, that may be a potential swing low for that asset, same thing in a bullish trend when the dpo rejecting at top of donchian channel may be a trend reversal, a pullback or swing high.
When DPO is above the 0 trend is in an uptrend and when dpo is below the zero the asset is possible to move into a downtrend.
Also crosses of DPO above and below the DPO moving average may signalising a trend change.
BacktestLibraryLibrary "BacktestLibrary"
A library providing functions for equity calculation and performance metrics.
since(date, active)
: Calculates the number of candles since a specified date.
Parameters:
date (simple float) : (simple float): The starting date in timestamp format (e.g., input.time(timestamp()))
active (simple bool) : (simple bool): If true, counts the number of candles since the date; if false, returns 0.
Returns: (int): The number of candles since the specified date.
buy_and_hold(r, startDate)
: Calculates the Buy and Hold Equity from a specified date.
Parameters:
r (float) : (series float): Daily returns of the asset (e.g., 0.02 for 2% move).
startDate (simple float) : (simple float): Timestamp of the starting date for the equity calculation.
Returns: (float): Buy and Hold Equity of the asset from the specified date.
equity(sig, threshold, r, startDate, signals)
: Calculates the strategy's equity on a candle-by-candle basis.
Parameters:
sig (float) : (series float): Signal values; positive for long, negative for short.
threshold (simple float) : (simple float): Signal threshold for entering trades.
r (float) : (series float): Daily returns of the asset (e.g., 0.02 for 2% move).
startDate (simple float) : (simple float): Timestamp of the starting date for the equity calculation.
signals (simple string) : (simple string): Type of signals to backtest ("Long & Short", "Long Only", "Short Only").
Returns: (float): Strategy equity on a candle-by-candle basis.
PerformanceMetrics(base, Lookback, startDate)
: Calculates performance metrics of a strategy from a specified date.
Parameters:
base (float) : (series float): Equity values of the strategy or Buy and Hold equity.
Lookback (int) : (series int): Number of periods since the start date; recommended to use the 'since' function.
startDate (simple float) : (simple float): Timestamp of the starting date for the equity calculation.
Returns: (float ): Array of performance metrics.
PerfMetricTable(buy_and_hold, strategy)
: Plots a table comparing performance metrics of Buy and Hold and Strategy equity.
Parameters:
buy_and_hold (array) : (float ): Metrics from the PerformanceMetrics() function for Buy and Hold.
strategy (array) : (float ): Metrics from the PerformanceMetrics() function for the strategy.
Returns: : Table displaying the performance metrics comparison.
Adapted RSI w/ Multi-Asset Regime Detection v1.1This adapted RSI (Relative Strength Index) indicator combines multi-timeframe analysis with multi-asset monitoring, offering traders a comprehensive view of market conditions across different assets and time horizons.
The Adapted RSI w/ Multi-Asset Regime Detection sets itself apart from the traditional RSI by presenting crucial data you would not otherwise have. This data is then inputted into a table format to allow you to easily identify the RSI strength across multiple higher timeframes for your desired asset.
Regime detection clearly determines whether the asset momentum is supporting bullish or bearish regimes, whilst the signal generation will help you determine whether your desired asset is overbought, oversold or trading neutral strength (typically associated with consolidating markets)
Ever filtered through dozens of tickers and timeframes with the original RSI, making a pointless mental note? This solves that issue.
Key Differences to traditional to the traditional RSI:
Multi-Timeframe Analysis: Monitors Daily, Weekly, and Monthly RSI values simultaneously
Multi-Asset Tracking: Compare RSI readings across 4 different assets (this can be increased if requested)
Regime Detection: Automatically identifies market regimes (Bullish/Bearish)
Smart Signal Generation: Provides trading signals based on RSI strength (Buy, Neutral or Sell)
Dynamic Colour Coding: Visual colour indicators for different market conditions
Dual Table Display: Separate tables for timeframe analysis and comparison between tickers
Indicator Settings
RSI Settings: Overbought and Oversold levels can be adjusted if required
Multi-Asset Selection: Choose any 4 assets to monitor
Visual Settings: Customise colours, line styles, and table positions
Table Display: Flexible positioning and formatting options
Regime Detection:
Strong Buy: RSI below 15
Buy: RSI below 30
Neutral: RSI between 30-70
Sell: RSI above 70
Strong Sell: RSI above 85
Perfect for traders who want to:
Monitor multiple assets simultaneously
Analyse asset strength and momentum across different timeframes
Identify potential trend changes and market regimes
Get clear trading signals based on RSI levels
Compare market strength across different assets
The indicator helps identify potential entry and exit points while providing a broader market context through its multi-timeframe and multi-crypto RSI analysis.
Coming soon...
RSI Divergence plotting
Pienscript by,
iGREY.Trading
Automatic Fibonacci Levels with EMAAutomatic Fibonacci Levels with EMA
Description:
This script automatically calculates and displays Fibonacci retracement levels based on the highest and lowest prices over a dynamic lookback period. The Fibonacci levels are recalculated on every bar to adapt to price changes, providing an ongoing analysis of key support and resistance areas.
The Fibonacci levels are dynamically colored to reflect the trend direction, determined by the position of the price relative to the Exponential Moving Average (EMA). When the market is in an uptrend (price above EMA), Fibonacci levels are displayed in green, and in a downtrend (price below EMA), they are shown in red. This color coding helps traders quickly identify the current market direction.
Key Features:
Dynamic Fibonacci Levels: Automatically adjusts Fibonacci retracement levels based on recent price action, recalculated with each new bar.
EMA Trend Confirmation: The trend is confirmed by the position of the price relative to the 20-period EMA. Fibonacci levels are color-coded to reflect this trend.
Customizable Lookback Period: Adjust the base lookback period (default 50) and scale it according to your preferred timeframe for more or less sensitivity to recent price action.
Flexible Fibonacci Duration: The Fibonacci levels remain on the chart for a customizable duration (default 2 bars), allowing for visual clarity while adapting to new price action.
Timeframe Scaling: The script automatically adjusts the lookback period based on a scaling factor, making it suitable for different timeframes.
How to Use:
Use the Fibonacci levels to identify potential support and resistance zones based on the market's current price range.
Combine the trend color coding with your own strategy to enhance decision-making, whether for long or short entries.
Adjust the Lookback Period and Fibonacci Duration based on your trading style and timeframe preferences.
This script provides an automatic and customizable way to visualize Fibonacci retracements in a dynamic manner, helping traders make informed decisions based on trend direction and key price levels.
Note: As with any trading tool, always use proper risk management and test the script before using it in live trading.
Options Buy EntryKey Adjustments for Long Entries Only:
Removed Short Entry Logic:
All references to sell signals, short trades, and bearish order blocks were removed.
Only Buy Signals:
The script detects bullish order blocks and generates buy signals when the price revisits these blocks and meets the entry criteria.
Long Trade Entry and Exit:
Trades are initiated only when a buy signal appears, and the next candle breaks the high of the signal candle.
Stop-loss is set at the previous swing low.
Take-profit is calculated based on the user-defined risk_reward_ratio.
How It Works:
Buy Signal:
A green "BUY" label is plotted when the conditions for a long entry are met.
Long Entry:
The strategy enters a long trade when the next candle breaks the high of the signal candle.
Stop-loss is placed at the previous swing low.
Take-profit is calculated using the Risk-Reward Ratio.
Visualization:
Only bullish order blocks and buy signals are highlighted on the chart.
ICT FVG by OxycodoneThis indicator will show you every FVG bullish or bearish on the chart with a line in the 50% of that gap, you can decide how many you want to see.
OstadiOSTADI is a comprehensive trading tool combining RSI, volume analysis, pin bar candlestick patterns, and divergence detection to identify potential buy and sell opportunities. This indicator is designed to help traders capture key market signals by using multiple timeframes and diverse technical analysis methods. Ideal for those looking to enhance their trading strategy with a sophisticated approach to market psychology."
NSDT HAMA Candles Strategy//@version=5
strategy("NSDT HAMA Candles Strategy", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=10, initial_capital=10000, currency=currency.USD)
// -----------------------------
// Gradient Function
// -----------------------------
f_c_gradientAdvDecPro(_source, _center, _steps, _c_bearWeak, _c_bearStrong, _c_bullWeak, _c_bullStrong) =>
var float _qtyAdvDec = 0.0
var float _maxSteps = math.max(1, _steps)
bool _xUp = ta.crossover(_source, _center)
bool _xDn = ta.crossunder(_source, _center)
float _chg = ta.change(_source)
bool _up = _chg > 0
bool _dn = _chg < 0
bool _srcBull = _source > _center
bool _srcBear = _source < _center
_qtyAdvDec :=
_srcBull ? (_xUp ? 1 : _up ? math.min(_maxSteps, _qtyAdvDec + 1) : _dn ? math.max(1, _qtyAdvDec - 1) : _qtyAdvDec) :
_srcBear ? (_xDn ? 1 : _dn ? math.min(_maxSteps, _qtyAdvDec + 1) : _up ? math.max(1, _qtyAdvDec - 1) : _qtyAdvDec) :
_qtyAdvDec
var color _return = na
_return :=
_srcBull ? color.new(color.lime, 0) :
_srcBear ? color.new(color.red, 0) :
color.new(color.yellow, 0) // Neutral color as yellow
_return
// -----------------------------
// MA Calculation Function
// -----------------------------
mat(source, length, type) =>
switch type
"SMA" => ta.sma(source, length)
"EMA" => ta.ema(source, length)
"RMA" => ta.rma(source, length)
"WMA" => ta.wma(source, length)
"VWMA" => ta.vwma(source, length)
"HMA" => ta.hma(source, length)
"TMA" => ta.sma(ta.sma(source, length), length)
=> na
// -----------------------------
// Inputs
// -----------------------------
bull = input.color(color.new(color.green, 0), title = "Bull Color")
bear = input.color(color.new(color.red, 0), title = "Bear Color")
neutral = input.color(color.new(color.yellow, 0), title = "Neutral Color")
show_ma = input.bool(true, title = "Show MA")
ma_type = input.string("WMA", title = "MA Type", options= )
ma_source = input.source(close, title = "MA Source")
ma_length = input.int(55, title = "MA Length", minval=1)
UseGradient = input.bool(true, title = "Use Gradient Colors")
stepn = input.int(5, title = "Max Gradient Steps", minval=1)
// Calculate MA and Gradient Color
ma = mat(ma_source, ma_length, ma_type)
col = f_c_gradientAdvDecPro(ma, ta.ema(ma, 3), stepn, neutral, bear, neutral, bull)
// -----------------------------
// MA Info Inputs
// -----------------------------
WickColor = input.color(color.new(color.gray, 80), title = "Wick Color", tooltip="Suggest Full Transparency.")
OpenLength = input.int(25, minval=1, title="Length Open", inline="Open")
OpenType = input.string('EMA', title='Type', options= , inline="Open")
HighLength = input.int(20, minval=1, title="Length High", inline="High")
HighType = input.string('EMA', title='Type', options= , inline="High")
LowLength = input.int(20, minval=1, title="Length Low", inline="Low")
LowType = input.string('EMA', title='Type', options= , inline="Low")
CloseLength = input.int(20, minval=1, title="Length Close", inline="Close")
CloseType = input.string('EMA', title='Type', options= , inline="Close")
LengthMA = input.int(55, minval=1, title="MA Line Length", inline="MA Info")
MAType = input.string('EMA', title='MA Line Type', options= , inline="MA Info")
MASource = input.source(hl2, title="MA Source")
// Function to Calculate Moving Averages
funcCalcMA1(type1, src1, len1) =>
switch type1
"EMA" => ta.ema(src1, len1)
"SMA" => ta.sma(src1, len1)
"WMA" => ta.wma(src1, len1)
=> na
funcCalcOpen(type_open, src_open, len_open) =>
switch type_open
"EMA" => ta.ema(src_open, len_open)
"SMA" => ta.sma(src_open, len_open)
"WMA" => ta.wma(src_open, len_open)
=> na
funcCalcHigh(type_high, src_high, len_high) =>
switch type_high
"EMA" => ta.ema(src_high, len_high)
"SMA" => ta.sma(src_high, len_high)
"WMA" => ta.wma(src_high, len_high)
=> na
funcCalcLow(type_low, src_low, len_low) =>
switch type_low
"EMA" => ta.ema(src_low, len_low)
"SMA" => ta.sma(src_low, len_low)
"WMA" => ta.wma(src_low, len_low)
=> na
funcCalcClose(type_close, src_close, len_close) =>
switch type_close
"EMA" => ta.ema(src_close, len_close)
"SMA" => ta.sma(src_close, len_close)
"WMA" => ta.wma(src_close, len_close)
=> na
// Calculate MA and Candle Components
MA1 = funcCalcMA1(MAType, MASource, LengthMA)
CandleOpen = funcCalcOpen(OpenType, (open + close )/2, OpenLength)
CandleHigh = funcCalcHigh(HighType, math.max(high, close), HighLength)
CandleLow = funcCalcLow(LowType, math.min(low, close), LowLength)
CandleClose = funcCalcClose(CloseType, (open + high + low + close)/4, CloseLength)
// Determine Candle Body Color
BodyColor = CandleOpen > CandleOpen ? color.green : color.red
// Apply Colors to Candles and MA Line
barcolor(UseGradient ? col : BodyColor)
plotcandle(CandleOpen, CandleHigh, CandleLow, CandleClose, color=UseGradient ? col : BodyColor, title="HAMA Candles", wickcolor=WickColor, bordercolor=na)
plot(show_ma ? MA1 : na, title="MA Line", color=UseGradient ? col : BodyColor, style=plot.style_line, linewidth=2)
// -----------------------------
// Alerts
// -----------------------------
// Existing Alerts
alertcondition(ta.rising(MA1, 2), title="MA Rising", message="MA Rising")
alertcondition(ta.falling(MA1, 2), title="MA Falling", message="MA Falling")
alertcondition(ta.crossover(high, MA1), title="High Crossing MA", message="High Crossing MA")
alertcondition(ta.crossunder(low, MA1), title="Low Crossing MA", message="Low Crossing MA")
// Custom Alert: Yellow Candle Followed by Higher/Lower Open with Additional Conditions
yellowCandle = (UseGradient ? col == color.new(color.yellow, 0) : BodyColor == color.yellow)
yellowCandleDetected = yellowCandle // Previous candle was yellow
// New Conditions based on user requirements
// For Buy: Previous yellow candle's close < close of candle before yellow candle, and current open > open of yellow candle
previousYellowClose = CandleClose // Close of yellow candle
previousCloseBeforeYellow = close // Close of the candle before yellow candle
currentOpen = open
openOfYellowCandle = CandleOpen // Open of yellow candle
buyCondition = yellowCandleDetected and (previousYellowClose < previousCloseBeforeYellow) and (currentOpen > openOfYellowCandle)
alertcondition(buyCondition, title="Buy Signal", message="Buy signal: A yellow candle was followed by a candle with a higher open and the yellow candle's close was lower than the previous candle's close.")
// For Sell: Previous yellow candle's close > close of candle before yellow candle, and current open < open of yellow candle
sellCondition = yellowCandleDetected and (previousYellowClose > previousCloseBeforeYellow) and (currentOpen < openOfYellowCandle)
alertcondition(sellCondition, title="Sell Signal", message="Sell signal: A yellow candle was followed by a candle with a lower open and the yellow candle's close was higher than the previous candle's close.")
// Additional Alerts When a Yellow Candle Appears
alertcondition(yellowCandle, title="Yellow Candle Appeared", message="A yellow candle has appeared on the chart.")
// -----------------------------
// Strategy Entry and Exit
// -----------------------------
// Strategy Entry based on Buy and Sell Conditions
if (buyCondition)
strategy.entry("Buy", strategy.long)
if (sellCondition)
strategy.entry("Sell", strategy.short)
// Example Exit Conditions (Bạn có thể tùy chỉnh thêm)
exitLongCondition = ta.crossunder(ma, ta.ema(ma, 3)) // Exit long when MA crosses under its EMA
if (exitLongCondition)
strategy.close("Buy")
exitShortCondition = ta.crossover(ma, ta.ema(ma, 3)) // Exit short when MA crosses over its EMA
if (exitShortCondition)
strategy.close("Sell")
// -----------------------------
// Watermark
// -----------------------------
var table Watermark = table.new(position.bottom_left, 1, 1, border_width = 0)
if barstate.islast
table.cell(Watermark, 0, 0, text="North Star Day Trading - NSDT HAMA Candles Strategy", text_color=color.new(color.white, 95), text_size=size.small, bgcolor=color.new(color.black, 100))
LRSI-TTM Squeeze - AynetThis Pine Script code creates an indicator called LRSI-TTM Squeeze , which combines two key concepts to analyze momentum, squeeze conditions, and price movements in the market:
Laguerre RSI (LaRSI): A modified version of RSI used to identify trend reversals in price movements.
TTM Squeeze: Identifies market compressions (low volatility) and potential breakouts from these squeezes.
Functionality and Workflow of the Code
1. Laguerre RSI (LaRSI)
Purpose:
Provides a smoother and less noisy version of RSI to track price movements.
Calculation:
The script uses a filtering coefficient (alpha) to process price data through four levels (L0, L1, L2, L3).
Movement differences between these levels calculate buying pressure (cu) and selling pressure (cd).
The ratio of these pressures forms the Laguerre RSI:
bash
Kodu kopyala
LaRSI = cu / (cu + cd)
The LaRSI value indicates:
Below 20: Oversold condition (potential buy signal).
Above 80: Overbought condition (potential sell signal).
2. TTM Squeeze
Purpose:
Analyzes the relationship between Bollinger Bands (BB) and Keltner Channels (KC) to determine whether the market is compressed (low volatility) or expanded (high volatility).
Calculation:
Bollinger Bands:
Calculated based on the moving average (SMA) of the price, with an upper and lower band.
Keltner Channels:
Created using the Average True Range (ATR) to calculate an upper and lower band.
Squeeze States:
Squeeze On: BB is within KC.
Squeeze Off: BB is outside KC.
Other States (No Squeeze): Neither of the above applies.
3. Momentum Calculation
Momentum is computed using the linear regression of the difference between the price and its SMA. This helps anticipate the direction and strength of price movements when the squeeze ends.
Visuals on the Chart
Laguerre RSI Line:
An RSI indicator scaled to 0-100 is plotted.
The line's color changes based on its movement:
Green line: RSI is rising.
Red line: RSI is falling.
Key levels:
20 level: Oversold condition (buy signal can be triggered).
80 level: Overbought condition (sell signal can be triggered).
Momentum Histogram:
Displays momentum as histogram bars with colors based on its direction and strength:
Lime (light green): Positive momentum increasing.
Green: Positive momentum decreasing.
Red: Negative momentum decreasing.
Maroon (dark red): Negative momentum increasing.
Squeeze Status Indicator:
A marker is plotted on the zero line to indicate the squeeze state:
Yellow: Squeeze On (compression active).
Blue: Squeeze Off (compression ended, movement expected).
Gray: No Squeeze.
Information Table
A table is displayed in the top-right corner of the chart, showing closing prices for different timeframes (e.g., 1 minute, 5 minutes, 1 hour, etc.). Each timeframe is color-coded.
Alerts
LaRSI Alerts:
Crosses above 20: Exiting oversold condition (buy signal).
Crosses below 80: Exiting overbought condition (sell signal).
Squeeze Alerts:
When the squeeze ends: Indicates a potential price move.
When the squeeze starts: Indicates volatility is decreasing.
Summary
This indicator is a powerful tool for determining market trends, momentum, and squeeze conditions. It helps users identify periods when the market is likely to move or remain stagnant, providing alerts based on these analyses to support trading strategies.
Welborg 2024
This script was not built directly by me; but then it is as a result of combining other existing indicators and I would want to say a big thank you to them all; Smoothed Heiken Ashi - SamX by SamAccountX, UT Bot Alerts by QuantNomad, Volumatic Variable Index Dynamic Average by Bigbeluga. The reason for the mashup is that I noticed an increased win rate upon combining them up as per only one indicator use. and modifying the initial settings and back-testing it on GOLD; XAUUSD.
I would love to share with the community so we all can make some money; As the saying goes; sharing is caring.
Secondly; the best time frame for the strategy is 5min, 10min, 15min and 30min.
WHEN YOU GO TO SETTINGS;
Turn off HIGHLIGHTS TREND
GO TO INPUTS;
Turn off the "SHOW WICKS"
And keep the VIDYA Momentum at 1
SAVE AS DEFAULT AND CLICK OKAY.
ON the main chart; hide the candles of the commodity or pair you are on, so you have only the WELBORG displaying it prints.
BUY = Yellow Candle
SELL = Pink Candle
Hit me up on Whatsapp +233501429489; for video tutorial enquiries.
Trend Following Strategy - JonerPMình đã tạo một hệ thống chỉ báo giao dịch theo chiến lược Trend Following trong ngôn ngữ Pine Script. Hệ thống sử dụng EMA (Exponential Moving Average), MACD, và RSI để xác định xu hướng và tạo tín hiệu giao dịch (Buy/Sell).
Chi tiết hệ thống:
EMA (50): Xác định xu hướng tổng thể của thị trường.
Giá đóng cửa cao hơn EMA → xu hướng tăng.
Giá đóng cửa thấp hơn EMA → xu hướng giảm.
MACD:
Dòng tín hiệu (Signal Line) và đường MACD được sử dụng để xác nhận giao dịch:
Crossover (MACD > Signal) → tín hiệu Buy.
Crossunder (MACD < Signal) → tín hiệu Sell.
RSI (14):
RSI > 50: Xu hướng tăng mạnh.
RSI < 50: Xu hướng giảm.
Khung thời gian: Chiến lược này phù hợp với khung thời gian dài như H1 hoặc H4 để giảm nhiễu.
Hệ thống tạo tín hiệu:
Buy Signal: Khi MACD giao cắt trên Signal Line, giá đóng cửa cao hơn EMA, và RSI > 50.
Sell Signal: Khi MACD giao cắt dưới Signal Line, giá đóng cửa thấp hơn EMA, và RSI < 50.
Intraday GOLD Trading Indicator BY JUGNUThis intraday trading indicator for GOLD, focusing on 5–15 minute charts. It combines two exponential moving averages to identify trend direction, volume filtering to confirm strength, and an RSI threshold to ensure momentum aligns with the trend. Buy signals occur when the short EMA crosses above the long EMA, volume is above average, and RSI is above 50, while sell signals occur when the short EMA crosses below the long EMA, volume is high, and RSI is below 50. Signals are color-coded and plotted on the chart for easy visualization. This setup aims to provide reliable entry and exit points for short-term trades in GOLD.
last zigzag++The Last ZigZag Trend Detector is a custom Pine Script strategy designed to identify significant price swings in the market using the popular ZigZag indicator. The ZigZag indicator helps traders filter out smaller price movements, allowing them to focus on larger, more meaningful price changes. This tool highlights the key trend points such as Higher Highs (HH), Higher Lows (HL), Lower Lows (LL), and Lower Highs (LH), which are essential for understanding market direction and making informed trading decisions.
In addition to identifying these price patterns, the Last ZigZag Trend Detector offers advanced features like extending ZigZag lines into the future, displaying key price levels in a table, and providing alert conditions for trend reversals. By analyzing significant price changes, this tool helps traders spot the most relevant trend signals and stay ahead of the market.
With customizable settings, including the option to extend the ZigZag lines and receive notifications when important price levels are reached, the Last ZigZag Trend Detector is an invaluable tool for any trader looking to refine their technical analysis and make data-driven decisions. Whether you are a beginner or an experienced trader, this script can be a game-changer for identifying and acting on major trend shifts in the market.
Creen Bollinger BreakoutStrategy Description
This Pine Script strategy is designed for trading on the 1-hour (1H) timeframe. It leverages multiple timeframes and indicators to identify entry and exit opportunities for long and short positions.
Key Features:
Multi-Timeframe Factor (M7F):
If M7F is related to the concept of multiple timeframes, it could indicate an aggregated condition where certain thresholds are met across different time intervals (5-minute, 1-hour, 3-hour in your case). This factor might combine the signals from all timeframes into a unified rule.
Indicators:
Weighted Moving Averages (VWMA) and Hull Moving Averages (HMA) are applied on 5-minute, 1-hour, and 3-hour timeframes to evaluate trend direction and momentum.
Deviation Thresholds: Price deviations are calculated to set thresholds for entry and exit.
Entry Conditions:
Long Positions: Triggered when the price is above all VWMA and HMA indicators across the monitored timeframes, combined with a breakout above an upper threshold.
Short Positions: Triggered when the price is below all VWMA and HMA indicators, combined with a breakdown below a lower threshold.
Exit Conditions:
Take Profit/Stop Loss (TP/SL): Positions close when the price reaches preset take-profit or stop-loss levels.
Dynamic Thresholds: Exits are based on additional thresholds such as breakdowns, outbreaks, or signal line deviations.
Visualization:
Colored signal lines and arrows mark potential breakouts, breakdowns, and high-volatility conditions, improving chart readability.
Green lines and arrows indicate bullish signals, while red signals bearish conditions.
Position Sizing:
Positions are dynamically sized based on account equity and user-defined leverage to ensure responsible risk management.
Default Settings: Multiple closing variables are listed in settings, m7f works the best for the hourly.
Bigger sample size available with deep backtest feature of tradingview.