MA Crossover with RSI FilterExplanation of Key Components
Input Parameters:
shortMaLength and longMaLength: Configure the lengths for the short and long moving averages.
rsiLength: RSI period length, typically set to 14.
rsiOverbought and rsiOversold: Levels used to filter entry signals and avoid trades when the market may be too overbought or oversold.
Moving Averages:
shortMa and longMa calculate the short and long moving averages.
Entry Conditions:
Long Condition: Enters a long position when the short MA crosses above the long MA, indicating an uptrend, and RSI is below the overbought level.
Short Condition: Enters a short position when the short MA crosses below the long MA, indicating a downtrend, and RSI is above the oversold level.
Exit Conditions:
Take Profit and Stop Loss: Optional criteria for exiting trades based on percentage gains or losses. For instance, you can take profit at 2% gain and stop at 1% loss.
Plotting:
Plots the short and long moving averages on the chart and displays the RSI with overbought/oversold levels.
How to Use
Copy the code and paste it into TradingView’s Pine Script editor.
Click “Add to Chart” to see the signals plotted on your chart.
Open the “Strategy Tester” tab to view the backtest results, including net profit, win rate, and other key metrics.
Tips for Optimization
Adjust Moving Average Periods: Test different values for shortMaLength and longMaLength to find the most profitable combination for the specific asset or timeframe.
Change Take Profit and Stop Loss Percentages: Fine-tuning these levels can significantly affect your overall profit and risk.
Add Additional Filters: Volume filters or additional indicators can be added to refine the entries.
This strategy is versatile and performs well in trending markets. You can further customize it for other indicators if needed!
指標和策略
saeedmesbah//@version=5
indicator("Weekly Open Vertical Line", overlay=true, scale=scale.none, max_lines_count=100)
// تنظیمات مربوط به خط
weekly_line_color = input.color(color.red, "Weekly Open Line Color")
weekly_line_width = input.int(1, title="Weekly Line Width", minval=1, maxval=5)
// تنظیم زمان باز شدن هفته (یکشنبه ساعت 5 عصر به وقت نیویورک)
opening_day = dayofweek.sunday // روز یکشنبه
opening_hour = 17 // ساعت 17 (5 بعدازظهر به وقت نیویورک)
// چک کردن اینکه آیا الان زمان باز شدن هفته است
is_weekly_open = (dayofweek == opening_day) and (hour == opening_hour) and (minute == 0)
// رسم خط عمودی برای شروع هفته
if is_weekly_open
line.new(bar_index, 100, bar_index, -100, color=weekly_line_color, width=weekly_line_width, style=line.style_solid)
RawCuts_01Library "RawCuts_01"
A collection of functions by:
mutantdog
The majority of these are used within published projects, some useful variants have been included here aswell.
This is volume one consisting mainly of smaller functions, predominantly the filters and standard deviations from Weight Gain 4000.
Also included at the bottom are various snippets of related code for demonstration. These can be copied and adjusted according to your needs.
A full up-to-date table of contents is located at the top of the main script.
WEIGHT GAIN FILTERS
A collection of moving average type filters with adjustable volume weighting.
Based upon the two most common methods of volume weighting.
'Simple' uses the standard method in which a basic VWMA is analogous to SMA.
'Elastic' uses exponential method found in EVWMA which is analogous to RMA.
Volume weighting is applied according to an exponent multiplier of input volume.
0 >> volume^0 (unweighted), 1 >> volume^1 (fully weighted), use float values for intermediate weighting.
Additional volume filter switch for smoothing of outlier events.
DIVA MODULAR DEVIATIONS
A small collection of standard and absolute deviations.
Includes the weightgain functionality as above.
Basic modular functionality for more creative uses.
Optional input (ct) for external central tendency (aka: estimator).
Can be assigned to alternative filter or any float value. Will default to internal filter when no ct input is received.
Some other useful or related functions included at the bottom along with basic demonstration use.
weightgain_sma(src, len, xVol, fVol)
Simple Moving Average (SMA): Weight Gain (Simple Volume).
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
Returns: Standard Simple Moving Average with Simple Weight Gain applied.
weightgain_hsma(src, len, xVol, fVol)
Harmonic Simple Moving Average (hSMA): Weight Gain (Simple Volume).
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
Returns: Harmonic Simple Moving Average with Simple Weight Gain applied.
weightgain_gsma(src, len, xVol, fVol)
Geometric Simple Moving Average (gSMA): Weight Gain (Simple Volume).
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
Returns: Geometric Simple Moving Average with Simple Weight Gain applied.
weightgain_wma(src, len, xVol, fVol)
Linear Weighted Moving Average (WMA): Weight Gain (Simple Volume).
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
Returns: Basic Linear Weighted Moving Average with Simple Weight Gain applied.
weightgain_hma(src, len, xVol, fVol)
Hull Moving Average (HMA): Weight Gain (Simple Volume).
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
Returns: Basic Hull Moving Average with Simple Weight Gain applied.
diva_sd_sma(src, len, xVol, fVol, ct)
Standard Deviation (SD SMA): Diva / Weight Gain (Simple Volume)
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
ct (float) : Central tendency (optional, na = bypass). Internal: weightgain_sma().
Returns:
diva_sd_wma(src, len, xVol, fVol, ct)
Standard Deviation (SD WMA): Diva / Weight Gain (Simple Volume).
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
ct (float) : Central tendency (optional, na = bypass). Internal: weightgain_wma().
Returns:
diva_aad_sma(src, len, xVol, fVol, ct)
Average Absolute Deviation (AAD SMA): Diva / Weight Gain (Simple Volume).
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
ct (float) : Central tendency (optional, na = bypass). Internal: weightgain_sma().
Returns:
diva_aad_wma(src, len, xVol, fVol, ct)
Average Absolute Deviation (AAD WMA): Diva / Weight Gain (Simple Volume) .
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
ct (float) : Central tendency (optional, na = bypass). Internal: weightgain_wma().
Returns:
weightgain_ema(src, len, xVol, fVol)
Exponential Moving Average (EMA): Weight Gain (Elastic Volume).
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
Returns: Exponential Moving Average with Elastic Weight Gain applied.
weightgain_dema(src, len, xVol, fVol)
Double Exponential Moving Average (DEMA): Weight Gain (Elastic Volume).
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
Returns: Double Exponential Moving Average with Elastic Weight Gain applied.
weightgain_tema(src, len, xVol, fVol)
Triple Exponential Moving Average (TEMA): Weight Gain (Elastic Volume).
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
Returns: Triple Exponential Moving Average with Elastic Weight Gain applied.
weightgain_rma(src, len, xVol, fVol)
Rolling Moving Average (RMA): Weight Gain (Elastic Volume).
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
Returns: Rolling Moving Average with Elastic Weight Gain applied.
weightgain_drma(src, len, xVol, fVol)
Double Rolling Moving Average (DRMA): Weight Gain (Elastic Volume).
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
Returns: Double Rolling Moving Average with Elastic Weight Gain applied.
weightgain_trma(src, len, xVol, fVol)
Triple Rolling Moving Average (TRMA): Weight Gain (Elastic Volume).
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
Returns: Triple Rolling Moving Average with Elastic Weight Gain applied.
diva_sd_ema(src, len, xVol, fVol, ct)
Standard Deviation (SD EMA): Diva / Weight Gain: (Elastic Volume).
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
ct (float) : Central tendency (optional, na = bypass). Internal: weightgain_ema().
Returns:
diva_sd_rma(src, len, xVol, fVol, ct)
Standard Deviation (SD RMA): Diva / Weight Gain: (Elastic Volume).
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
ct (float) : Central tendency (optional, na = bypass). Internal: weightgain_rma().
Returns:
weightgain_vidya_rma(src, len, xVol, fVol)
VIDYA v1 RMA base (VIDYA-RMA): Weight Gain (Elastic Volume).
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
Returns: VIDYA v1, RMA base with Elastic Weight Gain applied.
weightgain_vidya_ema(src, len, xVol, fVol)
VIDYA v1 EMA base (VIDYA-EMA): Weight Gain (Elastic Volume).
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
Returns: VIDYA v1, EMA base with Elastic Weight Gain applied.
diva_sd_vidya_rma(src, len, xVol, fVol, ct)
Standard Deviation (SD VIDYA-RMA): Diva / Weight Gain: (Elastic Volume).
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
ct (float) : Central tendency (optional, na = bypass). Internal: weightgain_vidya_rma().
Returns:
diva_sd_vidya_ema(src, len, xVol, fVol, ct)
Standard Deviation (SD VIDYA-EMA): Diva / Weight Gain: (Elastic Volume).
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
xVol (float) : Volume exponent multiplier (0 = unweighted, 1 = fully weighted).
fVol (bool) : Volume smoothing filter.
ct (float) : Central tendency (optional, na = bypass). Internal: weightgain_vidya_ema().
Returns:
weightgain_sema(src, len, xVol, fVol)
Parameters:
src (float)
len (simple int)
xVol (float)
fVol (bool)
diva_sd_sema(src, len, xVol, fVol)
Parameters:
src (float)
len (simple int)
xVol (float)
fVol (bool)
diva_mad_mm(src, len, ct)
Median Absolute Deviation (MAD MM): Diva (no volume weighting).
Parameters:
src (float) : Source input.
len (int) : Length (number of bars).
ct (float) : Central tendency (optional, na = bypass). Internal: ta.median()
Returns:
source_switch(slct, aux1, aux2, aux3, aux4)
Custom Source Selector/Switch function. Features standard & custom 'weighted' sources with additional aux inputs.
Parameters:
slct (string) : Choose from custom set of string values.
aux1 (float) : Additional input for user-defined source, eg: standard input.source(). Optional, use na to bypass.
aux2 (float) : Additional input for user-defined source, eg: standard input.source(). Optional, use na to bypass.
aux3 (float) : Additional input for user-defined source, eg: standard input.source(). Optional, use na to bypass.
aux4 (float) : Additional input for user-defined source, eg: standard input.source(). Optional, use na to bypass.
Returns: Float value, to be used as src input for other functions.
colour_gradient_ma_div(ma1, ma2, div, bull, bear, mid, mult)
Colour Gradient for plot fill between two moving averages etc, with seperate bull/bear and divergence strength.
Parameters:
ma1 (float) : Input for fast moving average (eg: bullish when above ma2).
ma2 (float) : Input for slow moving average (eg: bullish when below ma1).
div (float) : Input deviation/divergence value used to calculate strength of colour.
bull (color) : Colour when ma1 above ma2.
bear (color) : Colour when ma1 below ma2.
mid (color) : Neutral colour when ma1 = ma2.
mult (int) : Opacity multiplier. 100 = maximum, 0 = transparent.
Returns: Colour with transparency (according to specified inputs)
Price Move Exceed % Threshold & BE Evaluation1Handy to see history or quick back test of moves. Enter a decimal for percentage wanted and choose the time frame wanted . The occurrences of the up or down threshold are plotted in the panel as maroon or green squares and can be read as red or green text in the panel data and on the right hand scale . The last number in the panel is the average move for the chosen period.
My usage is mostly to see what % has been exceeded for break even prices of option trades. Example: in SPY a spread has a break even of 567 when the price is 570; I get the percentage of the $3 move by dividing 3/570 to get 0.0526 ; the results show as described above.
Kuri's 9ema 5/3m Candle Close ScriptCustom Entry Script. Uses 9ema cross on 3 and 5 minute candle confirmations.
MA Crossover with RSI FilterThis script combines a short-term moving average crossover with an RSI filter to reduce false signals. A buy is triggered when the short-term MA crosses above the long-term MA, provided RSI is above a threshold (indicating an uptrend), and a sell is triggered when the crossover reverses.
stefan_k/v indicatorIndikator mit Kauf bzw. Verkaufssymbol.
Dieser soll Kennzeichnen wann man "theoretisch" den aktuell offenen Markt kaufen oder verkaufen soll. Allerdings sollte berücksichtigt werden, dass es nur als Hilfe für die Analyse zählen soll und es nicht zu 100% funktioniert. Danke für das Verständnis.
MMAPMarket Maker Aggression & Panic
Here's how it works:
Bollinger Bands: The script calculates and plots the Bollinger Bands, which helps you identify potential aggressive buying or panic selling when the price breaks above or below the bands.
Volume Analysis: It checks for volume spikes compared to the average volume over a specified period. If the volume exceeds a defined threshold, the background color changes to orange, indicating a potential market maker reaction.
Alerts: Alerts are set for volume spikes, aggressive buying (when the price breaks above the upper Bollinger Band), and panic selling (when it drops below the lower Bollinger Band).
Feel free to customize the parameters to fit your trading style!
Pritesh-Intraday This script is a customized TradingView indicator designed to identify potential intraday buy and sell opportunities using a combination of technical indicators and filters to enhance signal quality. It leverages multiple parameters and timeframes to assess market momentum, trend strength, and volume conditions, aiming to capture price swings during the day. Key features include:
1. **Multi-Timeframe Analysis**: Core signals, such as RSI, SMA, EMA, and ADX, are calculated on a 5-minute timeframe to enhance short-term trend detection.
2. **RSI and ADX Conditions**: Buy signals are generated when the short-term moving average is above the long-term moving average, the RSI is over 60, and ADX exceeds a set threshold, indicating a strong upward trend. Sell signals follow the opposite conditions with a lower RSI threshold. This combination helps validate signal strength based on price momentum.
3. **Stochastic and Volume Filters**: Optional volume and stochastic filters reduce noise by checking for high-volume conditions and avoiding overbought/oversold levels, making signals more reliable.
4. **Trend Confirmation with EMA**: A long-term EMA filter aligns entries with the prevailing trend, minimizing counter-trend signals and improving signal accuracy in trending markets.
5. **In-Position State Management**: The indicator tracks whether it’s currently "in position," ensuring that only one active signal—either buy or sell—is followed at a time, with appropriate exit conditions for each position.
6. **Custom Exit Logic**: Exit points for buy and sell positions are triggered by a trend reversal, declining RSI, or stochastic levels, optimizing the entry and exit timing for each trade.
7. **Visual Signals and Plotting**: The script includes buy and sell markers, along with the plotted short- and long-term SMAs, EMA, ADX, and stochastic levels, allowing easy visual confirmation of conditions and signal points on the chart.
Refined Gold Liquidity Strategy Reno/Corne reno kyk maar wat jy kan uitrig dankie ou seun kyk of jy kan iets regkry 5min chart en algeheel 1h en 4h
Monday Friday breakoutĐiều kiện Mua: Khi giá đóng cửa phá vỡ đỉnh của ngày thứ Hai hoặc thứ Sáu, chiến lược sẽ vào lệnh mua.
Điều kiện Bán: Khi giá đóng cửa phá vỡ đáy của ngày thứ Hai hoặc thứ Sáu, chiến lược sẽ vào lệnh bán.
Cắt lỗ và Chốt lời: Mức cắt lỗ được đặt dưới đáy đối với lệnh mua và trên đỉnh đối với lệnh bán. Mức chốt lời được tính với tỷ lệ R
là 1:1.
RSI & Impulse MACD Buy/Sell Signal//@version=5
indicator("RSI & Impulse MACD Buy/Sell Signal", overlay=true)
// Define RSI settings
rsiPeriod = 14
rsiSource = close
rsi = ta.rsi(rsiSource, rsiPeriod)
// Define MACD settings
macdFastLength = 12
macdSlowLength = 26
macdSignalSmoothing = 9
= ta.macd(close, macdFastLength, macdSlowLength, macdSignalSmoothing)
// Detect MACD crossing above and below zero
macdAboveZero = ta.crossover(macdLine, 0)
macdBelowZero = ta.crossunder(macdLine, 0)
// Function to check for RSI bullish divergence
isBullishDivergence(rsiSource, rsi) =>
// Find the lowest low of the last 5 bars
low1 = ta.valuewhen(low == ta.lowest(low, 5), low, 0)
low2 = ta.valuewhen(low == ta.lowest(low, 5), low, 1)
// Find corresponding RSI values at those lows
rsi1 = ta.valuewhen(low == ta.lowest(low, 5), rsi, 0)
rsi2 = ta.valuewhen(low == ta.lowest(low, 5), rsi, 1)
// Check if we have a bullish divergence: price makes a lower low, and RSI makes a higher low
priceDivergence = (low1 < low2) and (rsi1 > rsi2)
priceDivergence
// Function to check for RSI bearish divergence
isBearishDivergence(rsiSource, rsi) =>
// Find the highest high of the last 5 bars
high1 = ta.valuewhen(high == ta.highest(high, 5), high, 0)
high2 = ta.valuewhen(high == ta.highest(high, 5), high, 1)
// Find corresponding RSI values at those highs
rsi1 = ta.valuewhen(high == ta.highest(high, 5), rsi, 0)
rsi2 = ta.valuewhen(high == ta.highest(high, 5), rsi, 1)
// Check if we have a bearish divergence: price makes a higher high, and RSI makes a lower high
priceDivergence = (high1 > high2) and (rsi1 < rsi2)
priceDivergence
// Check for bullish and bearish divergences in RSI
bullishDivergence = isBullishDivergence(rsiSource, rsi)
bearishDivergence = isBearishDivergence(rsiSource, rsi)
// Condition for Buy Signal: MACD crossing above zero + RSI bullish divergence
buySignal = macdAboveZero and bullishDivergence
// Condition for Sell Signal: MACD crossing below zero + RSI bearish divergence
sellSignal = macdBelowZero and bearishDivergence
// Plot buy and sell signals on the chart
plotshape(buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// Plot RSI and MACD on the chart for reference
plot(rsi, title="RSI", color=color.blue, linewidth=1)
hline(70, "Overbought", color=color.red)
hline(30, "Oversold", color=color.green)
plot(macdLine, title="MACD Line", color=color.blue)
plot(signalLine, title="Signal Line", color=color.orange)
hline(0, "MACD Zero Line", color=color.gray)
Dynamic Market Correlation Analyzer (DMCA) v1.0Description
The Dynamic Market Correlation Analyzer (DMCA) is an advanced TradingView indicator designed to provide real-time correlation analysis between multiple assets. It offers a comprehensive view of market relationships through correlation coefficients, technical indicators, and visual representations.
Key Features
- Multi-asset correlation tracking (up to 5 symbols)
- Dynamic correlation strength categorization
- Integrated technical indicators (RSI, MACD, DX)
- Customizable visualization options
- Real-time price change monitoring
- Flexible timeframe selection
## Use Cases
1. **Portfolio Diversification**
- Identify highly correlated assets to avoid concentration risk
- Find negatively correlated assets for hedging strategies
- Monitor correlation changes during market events
2. Pairs Trading
- Detect correlation breakdowns for potential trading opportunities
- Track correlation strength for pair selection
- Monitor technical indicators for trade timing
3. Risk Management
- Assess portfolio correlation risk in real-time
- Monitor correlation shifts during market stress
- Identify potential portfolio vulnerabilities
4. **Market Analysis**
- Study sector relationships and rotations
- Analyze cross-asset correlations (e.g., stocks vs. commodities)
- Track market regime changes through correlation patterns
Components
Input Parameters
- **Timeframe**: Custom timeframe selection for analysis
- **Length**: Correlation calculation period (default: 20)
- **Source**: Price data source selection
- **Symbol Selection**: Up to 5 customizable symbols
- **Display Options**: Table position, text color, and size settings
Technical Indicators
1. **Correlation Coefficient**
- Range: -1 to +1
- Strength categories: Strong/Moderate/Weak (Positive/Negative)
2. **RSI (Relative Strength Index)**
- 14-period default setting
- Momentum comparison across assets
3. **MACD (Moving Average Convergence Divergence)**
- Standard settings (12, 26, 9)
- Trend direction indicator
4. **DX (Directional Index)**
- Trend strength measurement
- Based on DMI calculations
Visual Components
1. **Correlation Table**
- Symbol identifiers
- Correlation coefficients
- Correlation strength descriptions
- Price change percentages
- Technical indicator values
2. **Correlation Plot**
- Real-time correlation visualization
- Multiple correlation lines
- Reference levels at -1, 0, and +1
- Color-coded for easy identification
Installation and Setup
1. Load the indicator on TradingView
2. Configure desired symbols (up to 5)
3. Adjust timeframe and calculation length
4. Customize display settings
5. Enable/disable desired components (table, plot, RSI)
Best Practices
1. **Symbol Selection**
- Choose related but distinct assets
- Include a mix of asset classes
- Consider market cap and liquidity
2. **Timeframe Selection**
- Match timeframe to trading strategy
- Consider longer timeframes for strategic analysis
- Use shorter timeframes for tactical decisions
3. **Interpretation**
- Monitor correlation changes over time
- Consider multiple timeframes
- Combine with other technical analysis tools
- Account for market conditions and volatility
Performance Notes
- Calculations update in real-time
- Resource usage scales with number of active symbols
- Historical data availability may affect initial calculations
Version History
- v1.0: Initial release with core functionality
- Multi-symbol correlation analysis
- Technical indicator integration
- Customizable display options
Future Enhancements (Planned)
- Additional technical indicators
- Advanced correlation algorithms
- Enhanced visualization options
- Custom alert conditions
- Statistical significance testing
[Volatility] [Gain & Loss] - OverviewFX:EURUSD
Indicator Overview: Volatility & Gain/Loss - Forex Pair Analysis
This indicator, " —Overview" , is designed for users interested in analyzing the volatility and gain/loss metrics of multiple forex pairs. The tool is especially useful for traders aiming to assess currency pair volatility alongside gain and loss percentages over selected periods. It enables a clearer understanding of pair behavior and aids in decision-making.
Key Features
Customizable Volatility and Gain/Loss Periods : Define your preferred calculation periods and timeframes for both volatility and gain/loss to tailor the indicator to specific trading strategies. Multi-Pair Analysis : This indicator supports up to six forex pairs (default pairs include EURUSD, GBPUSD, USDJPY, USDCHF, AUDUSD, and USDCAD) and allows you to adjust these pairs as needed. Visual Ranking : Forex pairs are sorted by volatility, displaying the highest pairs at the top for quick reference. Top Gain/Loss Highlighting : The pair with the maximum gain and the pair with the maximum loss are highlighted in the table, making it easy to identify the best and worst performers at a glance.
Indicator Settings
Volatility Settings : Period : Adjust the number of periods used in the ATR (Average True Range) calculation. A default period of 14 is set. Timeframe : Select a timeframe (e.g., Daily, Weekly) for volatility calculation to match your analysis preference.
Gain/Loss Settings : Period : Choose the number of periods for gain/loss calculation. The default is set to 1. Timeframe : Select the timeframe for gain/loss calculation, independent of the volatility timeframe.
Symbol Selection : Configure up to six forex pairs. By default, popular forex pairs are pre-loaded but can be customized to include other currency pairs.
Output and Visualization
Table Display : This indicator displays data in a neatly structured table positioned in the top-right corner of your chart. Columns : Includes columns for the Forex Pair, Volatility Percentage, Gain Percentage, and Loss Percentage. Color Coding : Volatility is displayed in a standard color for clear readability. Gain values are highlighted in green, and Loss values are highlighted in red, allowing for quick visual differentiation. Highlighting : Rows representing the pair with the highest gain and the pair with the most significant loss are especially highlighted for emphasis.
How to Use
Volatility Analysis : This metric gives insight into the average price range movements for each pair over the specified period and timeframe, helping you evaluate the potential for rapid price changes. Gain/Loss Tracking : Gain or loss percentages show the pair's recent performance, allowing you to observe whether a currency pair is trending positively or negatively over the chosen period. Comparative Pair Ranking : Use the table to identify pairs with the highest volatility and extremes in gain or loss to guide trading decisions based on market conditions.
Ideal For
Swing Traders and Day Traders looking to understand short-term market fluctuations in currency pairs. Risk Management : Helps traders gauge pairs with higher risk (volatility) and recent performance (gain/loss) for informed position sizing and risk control.
This indicator is a comprehensive tool for visualizing and analyzing key forex pairs, making it an essential addition for traders looking to stay updated on volatility trends and recent price changes.
cmc_dataLibrary "cmc_data"
method getSupplyInfo(tick)
Namespace types: series string, simple string, input string, const string
Parameters:
tick (string)
SupplyInfo
Fields:
circulating_supply (series float)
total_supply (series float)
Time Shift Indicator - Harry Final London EditionThis is a script that uses london time frame to map out gold trading overtime
Sunday MarkerColor Definition: The sundayColor variable sets the color as black with 95% transparency, creating a subtle shading effect.
Sunday Detection: The isSunday variable checks if the current day is Sunday using dayofweek.
Background Application: The bgcolor function applies the sundayColor background only on Sundays, leaving other days unaffected.
Stablecoin Supplyusdt usdc dai busd supply
shows the total amount of stable coins in crypto
this can used to view how much capital can be deployed into the market