eha MA CrossIn the study of time series, and specifically technical analysis of the stock market, a moving-average cross occurs when, the traces of plotting of two moving averages each based on different degrees of smoothing cross each other. Although it does not predict future direction but at least shows trends.
This indicator uses two moving averages, a slower moving average and a faster-moving average. The faster moving average is a short term moving average. A short term moving average is faster because it only considers prices over a short period of time and is thus more reactive to daily price changes.
On the other hand, a long term moving average is deemed slower as it encapsulates prices over a longer period and is more passive. However, it tends to smooth out price noises which are often reflected in short term moving averages.
There are a bunch of parameters that you can set on this indicator based on your needs.
Moving Averages Algorithm
You can choose between three types provided of Algorithms
Simple Moving Average
Exponential Moving Average
Weighted Moving Average
I will update this study with more educational materials in the near future so be informed by following the study and let me know what you think about it.
Please hit the like button if this study is useful for you.
Tìm kiếm tập lệnh với "GOLD"
Bitcoin Stock to FlowModeling Bitcoin's Value With Scarcity
The Stock to Flow model for Bitcoin suggests that Bitcoin price is driven by scarcity over time.
Bitcoin is the first scarce digital object the world has ever seen. It is scarce like silver & gold, and can be sent over the internet, radio, satellite etc. Bitcoin includes a mathematical mechanism to restrict its supply over time making it more rare as time goes on. Digital Scarcity.
In 2017 BTC exceeded the market capitalization of Silver. After the next halving in 2024, Bitcoin will become the hardest asset the world has ever seen, rarer than Gold.
There is only enough Bitcoin in the world for each person to own .0023 BTC. Because of this, Bitcoin's value should continue to rise over time.
BTC 1D Alerts V1This script contains a variety of key indicator for bitcoin all-in-one and they can be activated individually in the menu. These are meant to be used on the 1D chart for Bitcoin.
1457 Day Moving Average: the bottom of the bitcoin price and arguably the rock bottom price target.
Ichimoku Cloud: a common useful indicator for bitcoin support and resistance.
350ma fibs (21 8 5 3 2 and 1.6) : Signify the tops of each logarthmic rise in bitcoin price. They are generally curving higher over the long term. For halvening #3, the predicted market crash would be after hitting the 350ma x3 fib. Also the 350 ma / 111 ma cross signifies bull market top within about 3 days as well. Using the combination of the 350ma fibs and the 350/111 crosses, reasonably identify when market top is about to occur.
50,120,200 ma: Common moving averages that bitcoin retests during bull market runs. Also, the 50/200 golden and death crosses.
1D EMA Superguppy Ribbons: green = bull market, gray is indeterminate, red = bear market. Very high specificity indicator of bull runs, especially for bitcoin. You can change to 3D candle for even more specificity for a bull market start. Use the 1W for even more specificity. 1D Superguppy is recommended for decisionmaking.
1W EMA21: a very good moving average programmed to be shown on both the daily and weekly candle time. Bitcoin commonly corrects to this repeatedly during past bull runs. Acts as support during bull run and resistance during a bear market.
Steps to identifying a bull market:
1. 50/200 golden cross
2. 1D EMA superguppy green
3. 3D EMA superguppy green (if you prefer more certainty than step 2).
4. Hitting the 1W EMA21 and bouncing off during the bull run signifies corrections.
Once a bull market is identified,
Additional recommended buying and selling techniques:
Indicators:
- Fiblines - to determine retracements from peaks (such as all time high or recent highs)
- Stochastic RSI - 1d, 3d, and 1W SRSI are great time to buy, especially the 1W SRSI which comes much less frequently.
- volumen consolidado - for multi exchange volumes compiled into a single line. I prefer buying on the lowest volume days which generally coincide with dips.
- MACD - somewhat dubious utility but many algorithms are programmed to buy or sell based on this.
Check out the Alerts for golden crosses and 350ma Fib crosses which are invaluable for long term buying planning.
I left this open source so that all the formulas can be understood and verified. Much of it hacked together from other sources but all indicators that are fundamental to bitcoin. I apologize in advance for not attributing all the articles and references... but then again I am making no money off of this anyway.
dmw_3SMACross3 SMA set to 5 10 20 used to find the crossing points for pattern reversals or breakouts.
Lysergik's Stochastic SynergyThis indicator shows the average Stochastic RSI output of the 15m, 1h, 2h, 4h, and Daily Stochastic RSI. It will change in its behavior depending on the time-frame you're using, but for many markets it works best on the 30m time-frame and the daily time-frame.
It is best used along with Lysergik's Fib Cross, which will allow you to avoid false signals in the stochastic synergy indicator. If your MA cross (50, 200) indicates a direction change opposite of the stochastic RSI synergy indicator then that is a signal to wait for more price action to determine your entry/exit points.
Using the Lysergik's Fib Cross, the same applies, but remember that a golden cross (white cross symbol) followed directly by a golden ratio cross (gold cross symbol) is even further indication that the stochastic RSI needs more breathing room before reversing.
This indicator is fully adjustable for you to back-test against charts and refine the indicator to your market.
The inputs in respective order are as follows:
RSI Length, Stoch Length, Smooth K, Smooth D, Upper Limit, Lower Limit, Basis
Enjoy and remember only make trades on your own terms.
Happy trading/investing! :)
SynergySynergy
This indicator was developed for use in an investigation/tutorial using Pine Script to analyse Gold and US Dollar Index correlation.
The first indicator shall measure the percentage change between the open and close of each bar and compare it to the same percentage change of an alternative asset. Additionally, we shall color the background when the two assets move in the same direction. This should allow us to more easily see when the two assets move together and spot trends in their moment.
The yellow bars show use the percentage change in the price of gold. The blue bars show the percentage change in the price of the US Dollar index. If the bar is above zero, it means that the asset closed up. Conversely, if it is below zero, it means the asset closed down. Finally, the grey bars show bars in which the two assets closed in the same direction.
It can be used in conjunction with a second indicator (to be published soon) that provides statistics generated from this indicator.
The full free post can be found here: backtest-rookies.com
BO Willians EMA'sBo Williams is a North America/Brazilian trader. He created a trading software called PHI CUBE.
This ema ratios are very used in Brazil. They a based in the Golden Number PHI.
"There is a special ratio that can be used to describe the proportions of everything from nature's smallest building blocks, such as atoms, to the most advanced patterns in the universe, such as unimaginably large celestial bodies. Nature relies on this innate proportion to maintain balance, but the financial markets also seem to conform to this "golden ratio." Here, we take a look at some technical analysis tools that have been developed to take advantage of it.
The Mathematics
Mathematicians, scientists and naturalists have known this ratio for centuries. It's derived from something known as the Fibonacci sequence, named after its Italian founder, Leonardo Fibonacci (whose birth is assumed to be around 1175 A.D. and death around 1250 A.D.). Each term in this sequence is simply the sum of the two preceding terms (1, 1, 2, 3, 5, 8, 13, etc.).
But this sequence is not all that important; rather, it is the quotient of the adjacent terms that possesses an amazing proportion, roughly 1.618, or its inverse 0.618. This proportion is known by many names: the golden ratio, the golden mean, PHI and the divine proportion, among others. So, why is this number so important? Well, almost everything has dimensional properties that adhere to the ratio of 1.618, so it seems to have a fundamental function for the building blocks of nature. "
More here www.goldennumber.net
EMA 50, 100 and 200Draw a set of 3 EMA: 50, 100 and 200. It highlight with a circle the crossing of EMA(50) with other EMAs
IV/HV ratio 1.0 [dime]This script compares the implied volatility to the historic volatility as a ratio.
The plot indicates how high the current implied volatility for the next 30 days is relative to the actual volatility realized over the set period. This is most useful for options traders as it may show when the premiums paid on options are over valued relative to the historic risk.
The default is set to one year (252 bars) however any number of bars can be set for the lookback period for HV.
The default is set to VIX for the IV on SPX or SPY but other CBOE implied volatility indexes may be used. For /CL you have OVX/HV and for /GC you have GVX/HV.
Note that the CBOE data for these indexes may be delayed and updated EOD
and may not be suitable for intraday information. (Future versions of this script may be developed to provide a realtime intraday study. )
There is a list of many volatility indexes from CBOE listed at:
www.cboe.com
(Some may not yet be available on Tradingview)
RVX Russell 2000
VXN NASDAQ
VXO S&P 100
VXD DJIA
GVX Gold
OVX OIL
VIX3M 3-Month
VIX6M S&P 500 6-Month
VIX1Y 1-Year
VXEFA Cboe EFA ETF
VXEEM Cboe Emerging Markets ETF
VXFXI Cboe China ETF
VXEWZ Cboe Brazil ETF
VXSLV Cboe Silver ETF
VXGDX Cboe Gold Miners ETF
VXXLE Cboe Energy Sector ETF
EUVIX FX Euro
JYVIX FX Yen
BPVIX FX British Pound
EVZ Cboe EuroCurrency ETF Volatility Index
Amazon VXAZN
Apple VXAPL
Goldman Sachs VXGS
Google VXGOG
IBM VXIBM
Moving Average Cross Strategy Simply define your fast and slow M then backtest the strategy.
*First script, work in progress. Will allow you to combine two TV indicators into one.
MA Cross 50/200 - Moving Averageindicates short-term 50-day moving average AND long-term 200-day moving average CROSS
@GateTicker
Multi-Timeframe Probability Zones [DW]This is an experimental study based on multi-timeframe price action and a simple average.
Use it to quickly identify MTF support and resistance, and high probability price levels.
NOTE: Because higher timeframe levels are not certain until the interval is closed, refresh your chart as new levels are drawn.
Line Break StrategyLine Break Strategy
Entry rule:
Long on a bullish line and short on a bearish line.
Backtest:
Profit factors are shown below for three-line break.
Daily time frame, FXCM broker.
EURUSD: 1.267, USDJPY: 1.039, GBPUSD: -0.816, AUDUSD: -0.959
S&P500: -0.783, Nikkei225: 1.099
CrudeOil: 1.03, Gold: 1.196
BTCUSD: -0.883
Reference:
Steve Nison, Beyond Candlesticks - New Japanese Charting Techniques Revealed
Note:
This strategy doesn't work properly on the linebreak chart.
A good example is shown below. The entry prices are not always correct.
If you have signal, but the next candle moves in the opposite direction, the entry price is drawn at the Open of the new candle instead of the Close of the previous candle.
The results of backtest are unreliable due to this reason.
Earnings MultiplesMultiplies Quarterly Earnings x 13, x 21, x 34, x 55, x 89, x 144, x 233.
Yes its a fibonacci sequence.
"Goldilocks zone" seems to be in the 55x - 89x area.
Also when companies become profitable, the indicator looks like a "starburst".
EMA & SMA with FRACTAL DEVIATION BANDS by @XeL_ArjonaEMA & SMA with FRACTAL DEVIATION BANDS
Ver. 1.0.25.08.2015
By Ricardo M Arjona @XeL_Arjona
DISCLAIMER:
DISCLAIMER:
The Following indicator/code IS NOT intended to be a formal investment advice or recommendation by the author, nor should be construed as such. Users will be fully responsible by their use regarding their own trading vehicles/assets. The embedded code and ideas within this work are FREELY AND PUBLICLY available on the Web for NON LUCRATIVE ACTIVITIES and must remain as is.
WHAT IS THIS?
This is the adaptation of the FRACTAL DEVIATION BANDS to be used on Traditional Moving Averages (Simple & Exponential).
ALL NEW IDEAS OR MODIFICATIONS to these indicator(s) are Welcome in favor to deploy a better and more accurate readings. I will be very glad to be notified at Twitter or TradingVew accounts at: @XeL_Arjona
Any important addition to this work MUST REMAIN PUBLIC by means of CreativeCommons CC & TradingView.
2015
First Opening Price of the YearOverview
This indicator identifies and plots the opening price of the first trading session of the calendar year. The "Yearly Open" is a significant psychological level for traders and institutions, often serving as a major pivot point for the entire year's trend.
How it Works
The script utilizes Pine Script v5's persistent variables to track the year change.
Detection: It compares the current bar's year (year) with the previous bar's year (year ).
Storage: When a discrepancy is found (indicating a new year has started), the script captures the open price of that specific bar.
Persistence: Using the var keyword, this price is stored in memory and carried forward for every subsequent bar of the year without being recalculated.
Visualization: The price is plotted as a series of blue crosses (style_cross) to clearly mark the level on the chart.
Chart Analysis & Examples
The following examples demonstrate how this simple level dictates market structure across different assets:
Historical Pivot Points (S&P 500):
This chart demonstrates how the Yearly Open acts as a critical pivot. Notice in 2022 how price struggled around the open before dropping, while in 2023 and 2024, the yearly open provided a solid base for the subsequent rallies.
Trend Confirmation (Bitcoin):
In strong trending markets, the Yearly Open serves as a trailing support. As seen in this Bitcoin example, price maintaining its position above the blue line confirms a sustained bullish bias for the year, acting as a "floor" for the trend.
Market Structure & Bias (Gold):
This example highlights the "Line in the Sand" concept. The indicator clearly marks the starting point of the year, allowing traders to instantly gauge if the asset is net positive or negative year-to-date. It filters out the noise and focuses on the macro direction.
How to Use
Traders can use this indicator to determine the higher-timeframe bias:
Bullish Bias: When the current price is trading above the blue crosses, the market is considered to be positive relative to the start of the year.
Bearish Bias: When the current price is trading below the blue crosses, the market is negative relative to the start of the year.
Settings
This script is "plug and play" and requires no manual input adjustments. It automatically detects the timeframe and year changes based on the chart data provided.
Disclaimer
This tool is for informational purposes only and DOES NOT constitute financial advice. Always manage your risk appropriately.
SMC BOS Strategy 1:1 RRThe SMC BOS Strategy 1:1 RR is a Smart Money Concepts–based trading strategy designed to capture high-probability market continuation moves after a Break of Structure (BOS). It focuses on trading in the direction of institutional momentum with clear risk control.
📌 Core Concept
Markets move in structure (higher highs & higher lows in an uptrend, lower highs & lower lows in a downtrend).
A Break of Structure (BOS) occurs when price closes beyond a previous swing high or swing low, signaling that smart money may be pushing price in a new or continued direction.
⚙️ Strategy Rules
1️⃣ Market Structure Identification
Swing highs and swing lows define key structure levels.
These levels act as institutional decision points.
2️⃣ Break of Structure (BOS)
Bullish BOS: Price closes above the previous structure high.
Bearish BOS: Price closes below the previous structure low.
3️⃣ Trade Entry
Buy after a bullish BOS.
Sell after a bearish BOS.
Entry is taken at the close of the BOS candle.
4️⃣ Risk Management (1:1 RR)
Stop Loss (SL):
Long trades → below previous structure low.
Short trades → above previous structure high.
Take Profit (TP):
Set equal to the stop-loss distance (1:1 risk–reward).
📊 Why 1:1 Risk–Reward?
Ensures high win-rate focus.
Suitable for scalping and intraday trading.
Protects capital with consistent, controlled risk.
✅ Key Advantages
✔ Clear and objective rules
✔ Institutional price-action logic (SMC)
✔ Automatic stop loss & take profit
✔ Works on Forex, Gold, Crypto, Indices
✔ Easy to backtest and optimize
Silver Projection DivergenceSILVER PROJECTION DIVERGENCE
Standardized Fair Value Divergence Oscillator
OVERVIEW
The Silver Projection Divergence oscillator is the companion indicator to the Silver Macro Projection Model. It quantifies the gap between silver's actual price and its projected fair value, displaying this divergence as a standardized z-score. This format makes it easier to identify extreme conditions and time entries/exits based on mean reversion.
HOW IT WORKS
The oscillator converts raw divergence (Actual Silver - Projected Silver) to a z-score by normalizing against its historical distribution:
Z-Score > 0 - Silver trading ABOVE projected value (overvalued)
Z-Score < 0 - Silver trading BELOW projected value (undervalued)
Z-Score > 2 - Extreme condition (2 standard deviations)
VISUAL ELEMENTS
Main Plot
Green line/histogram - Negative divergence (undervalued)
Red line/histogram - Positive divergence (overvalued)
Color intensity increases when divergence is expanding
Reference Lines
+2 sigma / -2 sigma (dashed) - Extreme zones
+1 sigma / -1 sigma (dotted) - Moderate deviation
Zero line - Fair value equilibrium
Signal Markers
Green Triangle (bottom) - Z-score crosses below -2 (STRONG BUY)
Red Triangle (top) - Z-score crosses above +2 (STRONG SELL)
Background
Light red background - Extreme overvaluation (Z > 2)
Light green background - Extreme undervaluation (Z < -2)
SIGNAL INTERPRETATION
Z > +2.0 - Extreme Overvaluation - STRONG SELL / Take profits
Z +1.0 to +2.0 - Moderate Overvaluation - Caution / Reduce exposure
Z -1.0 to +1.0 - Fair Value Range - Neutral / Hold
Z -2.0 to -1.0 - Moderate Undervaluation - Accumulate / Scale in
Z < -2.0 - Extreme Undervaluation - STRONG BUY signal
COMPONENT TABLE
The bottom-right table breaks down divergence by factor:
Gold Ratio - Deviation from gold-implied fair value
M2 Supply - Divergence from monetary-implied value
DXY Signal - Dollar strength bullish/bearish indication
Equities - Equity market positioning signal
OVERALL - Combined signal with Z-score
TRADING APPLICATIONS
Mean Reversion Strategy
Enter LONG when Z < -2 and begins rising
Enter SHORT when Z > +2 and begins falling
Use zero-line crossings for trend confirmation
Trend Following Filter
Only take long trades when Z < 0 (undervalued)
Only take short trades when Z > 0 (overvalued)
Divergence Confirmation
Bearish: Price makes new highs while Z-score makes lower highs
Bullish: Price makes new lows while Z-score makes higher lows
ALERTS
Extreme Undervaluation - Z crosses below -2
Extreme Overvaluation - Z crosses above +2
Divergence Turned Positive - Crossed above zero
Divergence Turned Negative - Crossed below zero
COMBINED USAGE
For best results, use both with Silver Macro Projection Model - indicator:
Main Indicator - Visual context of actual vs. projected on price chart
Divergence Oscillator - Precise measurement for timing decisions
The main indicator (Silver Macro Projection Model - ) shows where silver should be; this oscillator shows how extreme the mispricing is and when to act.
Disclaimer: This indicator is for educational purposes only. Past correlations do not guarantee future relationships. Market conditions can alter historical relationships. Always use proper risk management.
Silver Macro Projection ModelSILVER MACRO PROJECTION MODEL
Multi-Factor Fair Value Estimation for Silver
OVERVIEW
The Silver Macro Projection Model estimates silver's fair value based on its historical relationships with key macroeconomic drivers. By synthesizing data from gold, M2 money supply, the US Dollar Index, and major equity indices, this indicator projects where silver should theoretically be trading, helping traders identify potential overvaluation and undervaluation conditions.
HOW IT WORKS
This indicator employs three complementary projection methodologies:
Correlation-Weighted Z-Score Composite (50% weight) - Calculates rolling correlations between silver and each input factor. Factors with stronger correlations receive more influence. Each factor is normalized to a z-score, combined into a composite, then converted back to silver's price scale.
Gold/Silver Ratio Mean Reversion (35% weight) - The gold/silver ratio historically exhibits mean-reverting behavior. This component projects silver's implied price based on current gold prices and the historical average ratio.
M2 Money Supply Relationship (15% weight) - Silver tracks monetary expansion over long time horizons. This anchors the projection to the fundamental relationship between silver and the monetary base.
INPUT FACTORS
Gold - Strong Positive - Precious metals move together; silver amplifies gold
M2 Supply - Positive - Inflation hedge; expands with monetary base
DXY - Negative - Dollar strength pressures commodity prices
S&P 500 - Variable - Risk sentiment indicator
Dow Jones - Variable - Industrial/economic health proxy
Nasdaq 100 - Variable - Growth/risk appetite indicator
Russell 2000 - Variable - Small-cap risk sentiment
VISUAL ELEMENTS
Silver Line (Gray) - Actual silver price
Yellow Line - Model's projected fair value
Green Fill - Silver trading BELOW projection (potentially undervalued)
Red Fill - Silver trading ABOVE projection (potentially overvalued)
INFORMATION TABLE
The indicator displays a real-time panel showing:
Current correlation coefficients for each factor
Dynamic weight allocation based on correlation strength
Z-scores for each input factor
Actual vs. projected silver price
Percentage divergence from fair value
Signal classification (Strong Buy to Strong Sell)
SETTINGS
Lookback Settings
Correlation Period (default: 60) - Bars used for rolling correlations
Regression Period (default: 120) - Bars for z-score normalization
Smoothing Period (default: 10) - EMA smoothing on projection
Weight Settings
Use Auto Correlation Weights - Weights adjust dynamically based on correlation strength
Manual Weights - Override with custom factor weights
ALERTS
Silver Extremely Undervalued (Z < -2)
Silver Extremely Overvalued (Z > +2)
Price crossed above projection
Price crossed below projection
BEST PRACTICES
Use on daily timeframe for most reliable signals
Combine with the companion Divergence Oscillator for timing
Extreme divergences (>2 sigma) historically precede mean reversion
Consider macro environment as correlations shift during different regimes
Longer regression periods (150-250) for investing; shorter (60-90) for trading
Disclaimer: This indicator is for educational purposes only. Past correlations do not guarantee future relationships. Always use proper risk management.
Chainbey Ai - HTF Trend Matrix (Clean)Chainbey Ai – HTF Trend Matrix is a professional, higher-timeframe trend detection indicator designed to give traders a clean, reliable market bias, regardless of the chart timeframe they are trading on.
This indicator automatically analyzes multiple higher timeframes (HTFs) and combines:
EMA trend direction
Trend strength (ADX)
Market structure (trend vs range)
Trend disagreement across HTFs
Reversal probability estimation
All results are displayed in a compact table at the bottom-right, making it perfect for scalpers, day traders, and swing traders who need fast, decision-ready information.
🧠 What This Indicator Solves
❌ No more guessing the higher-timeframe trend
❌ No more trading against the main market bias
❌ No more confusion between trend vs range
✅ Clear BULLISH / BEARISH / RANGE bias
✅ Strength score to avoid weak trends
✅ Reversal probability to manage risk
📊 How to Read the Table (User Manual)
🔹 FINAL Row
Example:
FINAL | BEARISH TREND | -46
Text (BEARISH / BULLISH / RANGE) → Overall market bias
Number (-46) → Trend Strength Score
Trend Score Guide:
Score Meaning
0 to ±20 No trend / Choppy
±20 to ±40 Weak trend
±40 to ±70 Healthy trend
±70+ Very strong / extended trend
📌 Negative = Bearish
📌 Positive = Bullish
🔹 REVERSAL – Possibility (%)
Example:
REVERSAL | Possibility | 45%
This shows the chance of trend exhaustion or reversal.
Reversal % Meaning
0–30% Strong trend continuation
30–50% Normal pullback risk
50%+ High reversal probability
70%+ Dangerous to chase trades
📌 Use this to avoid late entries.
🔹 HTF Rows (60 / 240 / D)
Each row shows:
DIR / STRUCT
Direction from EMA trend
Market structure (TREND / RANGE)
ADX
Trend strength
STRONG / MEDIUM / CHOP
📌 If multiple HTFs agree → higher confidence
📌 If HTFs conflict → reduce position size or wait
🛠 Recommended Trading Usage
✅ Best Practices
Trade in the direction of FINAL trend
Enter on pullbacks, not breakouts
Use lower timeframes only for entries
❌ Avoid
Trading against FINAL bias
Chasing trades when reversal % is high
Over-leveraging in CHOP conditions
🎯 Ideal For
Crypto traders (Spot & Futures)
Forex traders
Gold / Commodity traders
Scalping, Intraday & Swing trading
⚠️ Disclaimer
This indicator is a decision-support tool, not financial advice. Always combine it with proper risk management, confirmations, and your trading plan.






















