Ultimate Moving Average Package (17 MA's)Included is the:
VWAP
Current time frame 10 EMA
Current time frame 20 EMA
Current time frame 50 EMA
Current time frame 10 SMA
Current time frame 20 SMA
Current time frame 50 SMA
Daily 10 EMA
Daily 20 EMA
Daily 50 EMA
Daily 50 SMA
Daily 100 SMA
Daily 200 SMA
Weekly 100 SMA
Weekly 200 SMA
Monthly 100 SMA
Monthly 200 SMA
All Daily/Weekly/Monthly MA's can be seen on intraday charts. Current time frame MA's change depending on your time frame. Obviously you dont need all 17 on your chart but you can pick the ones you like and disable the rest.
Cerca negli script per "weekly"
Consensio Vision MA - Tribute to Late Dean Tyler JenksA wonderful mentor, fearless leader and incredibly humble man, father alike and world renowned bitcoin influencer also known for the invention of robust money management system named consensio moving averages, Tribute to Late Dean Tyler Jenks who made this possible.
Explanation
this indicator make use of three simple moving averages, idea is to incrementally invest little by little in the bull market when all moving average is moving up
A more in-depth guide for consensio is available here
How to use this indicator?
This indicator plots weekly moving average on daily and/or hourly time frame, the basic idea is to see how smaller time frame like daily and hourly trend reacts to larger time frame like weekly moving averages and what are the possible support and resistance area on these smaller time frame and also to arrive at better entry points while doing that.
The name Consensio Vision is chosen cuz.. it's a free reminder to never loose long-term vision (in this case weekly trend) of where you're going
Consensio Vision MA - Tribute to Late Dean Tyler Jenks
Lucid's Principles Of Investing - These are principles foretold by Late dean tyler jenks.. he goes on to saying that those 12 principles will keep you out of trouble or will identify trouble or will identify your human behavioral problems
1. CASH IS KING - in terms of my investing principles is very simple cash is king, I would rather be in cash than any other asset class, unless an asset class is trending to the upside (or bull market) the cash is king
2. Market doesn't move in straight line - all asset classes trimmed up and down, as tyler goes on to say he dont believe in buy and hold strategy, i'm giving you the tools to get you out of market so you dont have drive down bear events like 2009 crash, he further suggests you sould react (or make decision) before a 10% drop in market.
3. Timeframe - trends are short days or weeks intermediate weeks or months and long months or years so principle number three is don't just talk about something is in a trend be precise are you talking about a short-term trend an intermediate term trend or a long-term trend...
just saying something is in a trend is irresponsible, you've got to identify your time frame
4. Wait! Bear market is different - cash is king and unless asset class is trending up there are times that you want to take advantage of a trend that is down but it is not the equivalent of investing in a trend that is up it is far more dangerous far more difficult it can be done but that's not one of the main principles, (also check rule number 7 as both are related)
5. Only long-term trends are investments - word trading is not really an investment term trading means buying or selling it has nothing to do with what you're attempting to achieve in terms of either speculation gambling investing ... those are not opportunities for investing because they're short or they're intermediate.. that doesn't mean that you can't speculate and have that turn into a position trade and have it turn into a possible swing trade and then have it turn in to an investment however be prepared once you've made an investment where that investment in a short or an intermediate term time frame to move against you
6. Never invest in a FOMO (fear of missing out)- loss of money loss of cash loss of wealth is not equivalent to a loss of opportunity
it is 100 times more important than a loss of opportunity
7. understand the importance of Percentage - a 50% gain is not an inverse equivalence of a 50% loss that is the single most important rule or principle that Lucid uses in determining when to get into or out of an investment and it goes back to number six that a loss of money is not equivalent to a loss of opportunity
8. all long-term trends are fundamentally based, repeat all long-term trends are fundamentally based
9. number nine is a corollary but it's separate all short and intermediate term trends are not fundamentally based, long term trends are not affected by news are not affected by headlines are not affected by company announcements or country announcements they are affected in the short in the intermediate term and therefore your probability of success goes way up as your timeframe frame goes longer
10. Fundamental vs technical - technical tools are invaluable in identifying trends fundamental tools are not invaluable in identifying trends - that's why technical analysis is so important it gives you something that fundamental analysis will never give you in time so technical a pro active mechanism or money management tool and fundamental is a lagging indicator hoever its what drives the market in log term
11. Profitability based on time aka VISION- I see even very sophisticated investors doing is they let the technical tools give them a signal on the short-termer intermediate-term and they believe because it's the tool that they're using that it's giving them an equivalent probability of success and it is not!
it's probability of success at the short-term is less than at the intermediate term and is less than at the long-term
12. the last one long-term trends are more important than intermediate which are more important than short term, tyler developed a scale where he ranks
long-term trend 5,
intermediate term trend 3,
short-term with a 1
(note: if you add both 3 & 1 its still smaller then 5)
if you add together my intermediate term weighting of 3 and the short term weighting of 1 that you do not equal the long term weighting of 5 that means that both the short and the intermediate term can be going in a direction but that does not negate the direction of the long term trend it's a simple way of looking at it and I use the word in number 12 important not simply to mean importance in terms of the weighting system but the probability of success of each of those 3
so if you're using a short term 15 minute 30 minute one hour signals or probability of success drops dramatically and therefore you've got to factor in where your stops are relative to that probability when you're in a long term trend a five waiting you don't need to use stops when you're in an intermediate term trend you've got to use stops and when you're in a short term trend you've got to use closed stops
official website- lucidinvestmentstrategies.com
Pivot Point Monthly - bitcoin by Simon-RoseMonthly Version:
I have written 3 Indicators because i couldn't find what i was looking for in the library, so you can turn each one on and off individually for better visibility.
This are Daily, Weekly and Monthly Pivot Points with their Resistance and Support Points
and also on the Daily with the range between them.
I will also publish some Ideas to show you how to use them if you are not familiar with the traditional pivot points strategy already.
Unlike the usually 3 support & resistances i added 4 of them, specifically for trading bitcoin (on traditional markets this level of volatility usually never gets touched)
Here you can see which lines are what for reference, as the Feature to label lines is missing in Pinescript (if you have a workaround pls tell me ;) )
This is the basic calculation used :
PP = (xHigh+xLow+xClose) / 3
R1 = vPP+(vPP-Low)
R2 = vPP + (High - Low)
R3 = xHigh + 2 * (vPP - Low)
R4 = xHigh + 3 * (vPP - Low)
S1 = vPP-(High - vPP)
S2 = vPP - (High - Low)
S3 = xLow - 2 * (High - PP)
S4 = xLow - 3 * (High - PP)
If you have any questions or suggestions pls write me :)
Happy trading
Cheers
Daily Version:
Weekly Version:
Pivot Points Daily - bitcoin by Simon-RoseDaily Version:
I have written 3 Indicators because i couldn't find what i was looking for in the library, so you can turn each one on and off individually for better visibility.
This are Daily, Weekly and Monthly Pivot Points with their Resistance and Support Points
and also on the Daily with the range between them.
I will also publish some Ideas to show you how to use them if you are not familiar with the traditional pivot points strategy already.
Unlike the usually 3 support & resistances i added 4 of them, specifically for trading bitcoin (on traditional markets this level of volatility usually never gets touched)
Here you can see which lines are what for reference, as the Feature to label lines is missing in Pinescript (if you have a workaround pls tell me ;) )
This is the basic calculation used :
PP = (xHigh+xLow+xClose) / 3
R1 = vPP+(vPP-Low)
R2 = vPP + (High - Low)
R3 = xHigh + 2 * (vPP - Low)
R4 = xHigh + 3 * (vPP - Low)
S1 = vPP-(High - vPP)
S2 = vPP - (High - Low)
S3 = xLow - 2 * (High - PP)
S4 = xLow - 3 * (High - PP)
If you have any questions or suggestions pls write me :)
Happy trading
Cheers
Weekly Version:
Monthly Version:
Overlay Higher Timeframe EMA 10Plot the daily and weekly EMA 10 on any timeframe.
The Daily EMA 10 is useful for helping a trader decide whether the price is overextended without switching back to the daily timeframe and losing focus. It will change colour to indicate which order the EMA 10 and EMA 20 is in.
The Weekly EMA 10 is useful for helping a trader decide whether to take a trade based on long term momentum. If it is over the current price then the market has more momentum to the downside and if it is under then the market has more momentum to the upside. It will also change colour depending on which order the EMA 10 and EMA 20 is in. The weekly is often forgotten in trade planning.
You can switch the Daily and the Weekly on and off independently and change styles if you wish.
Multi-Timeframe VWAPShows the Daily, Weekly, Monthly, Quarterly, and Yearly VWAP.
Also shows the previous closing VWAP, which is usually very near the HLC3 standard pivot for the previous time frame. i.e. The previous daily VWAP closing price is usually near the current Daily Pivot. Tickers interact well with the previous Daily and Weekly closing VWAP.
Enabling the STDEV bands shows 3 separate standard deviation levels, defaulted at 1, 2, and 3. The lookback period for the bands is always changing with each new bar, since the standard deviation is calculated from the current bar to the beginning of the period. This is different from bollinger bands, as the lookback is constant (usually 20 periods is the textbook default).
The STDEV bands interval of interest can be changed from Day (D), Week (W), Month (M), Quarter (Q), Year (Y).
Tickers tend to bounce very well on Daily, Weekly, and Yearly VWAP (Yes... Year). Use this code and observe the Year VWAP on several major symbols through the past few years and eyes will be opened.
Relative Strength of 2 securities - Jayy This is an update of the Relative Strength to index as used by Leaf_West.. 4th from the top. my original RS script is 3rd from the top.
In this use of the term " Relative Strength" (RS) what is meant is a ratio of one security to another.
The RS can be inerpreted in a fashion similar to price action on a regual security chart.
If you follow his methods be aware of the different moving averages for the different time periods.
From Leaf_West: "on my weekly and monthly R/S charts, I include a 13 EMA of the R/S (brown dash line) and
an 8 SMA of the 13 EMA (pink solid line). The indicator on the bottom of the weekly/monthly charts is an
8 period momentum indicator of the R/S line. The red horizontal line is drawn at the zero line.
For daily or 130-minute time periods (or shorter), my R/S charts are slightly different
- the moving averages of the R/S line include a 20EMA (brown dash line), a 50 EMA (blue dash line) and
an 8 SMA of the20 EMA (pink solid line). The momentum indicator is also slightly different from the weekly/monthly
charts – here I use a 12 period calculation (vs 8 SMA period for the weekly/monthly charts)."
Leaf's website has gone but I if you are interested in his methods message me.
What is different from my previous RS: The RS now displays RS candles. So if you prefer to watch price action of candles to
a line chart which only plots the ratio of closes then this will be more interesting to you.
I have also thrown in a few options to have fun with.
Jayy
SuperTrend Oscillator v3Version 3: Improved aesthetically, complete turnaround for the strategy with which to use this indicator.
Once again, thanks to BlindFreddy and ChrisMoody for the bits of code that were assembled into this indicator.
Make the chart yours using the share button for the indicator with barcolors functionality.
Changes from v2 and looking forward: Indicator now uses a 14 length SuperTrend with no ATR multiplier. This my preferred use and I'd be grateful to hear your case for a different length/multiplier. Removed the Bollinger Bands and retracement dots due to these being gimmicky and marginally useful. There may be a version 4 should a similar concept using a rate of change analysis turn out to be useful. I have also tried -in vain- to plot internal trend peaks as horizontal S/R levels. Please pm if you are willing to help in that respect.
Strategy: The indicator will display the trend as a red/green area. It measures the spread between the closing price and the SuperTrend line, much like a CCI (close and ma). When the area contracts warning bars of the opposite trend color will warn of a reversal. When this happens, these areas will either be defended, reviving the trend, or will break, causing a trend flip. SuperTrend is unique in that breaks are typically large candles, and that its levels, especially on Weekly, Daily, Hourly, Minute timeframes, these levels will be defended (think similar to a 200sma or a 21ema). The STO making new highs within (internal) a trend is an overextension sign.
CVX Example: This is not a full analysis of CVX's stock , just an example potential trades. On the posted chart I used a weekly and a daily STO.
Long 1:The weekly showed warnings and then flipped. The daily made a double bottom, showed warnings and then flipped the daily STO at trendline support.
Long 2:The weekly still shows an uptrend, the daily made a weak break to downtrend and reversed back upwards at trendline support, forming a double bottom. Note the conservative exit when the STO made an internal new high.
Long 3: looking forward on CVX stock , the current downtrend made a weak break and is showing sings of reversal (pin bar) at horizontal support. Go long on flip of the daily (conservative) or flip of the hourly (aggressive).
SuperTrend OscillatorVersion 3: Improved aesthetically, complete turnaround for the strategy with which to use this indicator.
Once again, thanks to BlindFreddy and ChrisMoody for the bits of code that were assembled into this indicator.
Make the chart yours using the share button for the indicator with barcolors functionality.
Changes from v2 and looking forward: Indicator now uses a 14 length SuperTrend with no ATR multiplier. This my preferred use and I'd be grateful to hear your case for a different length/multiplier. Removed the Bollinger Bands and retracement dots due to these being gimmicky and marginally useful. There may be a version 4 should a similar concept using a rate of change analysis turn out to be useful. I have also tried -in vain- to plot internal trend peaks as horizontal S/R levels. Please pm if you are willing to help in that respect.
Strategy: The indicator will display the trend as a red/green area. It measures the spread between the closing price and the SuperTrend line, much like a CCI (close and ma). When the area contracts warning bars of the opposite trend color will warn of a reversal. When this happens, these areas will either be defended, reviving the trend, or will break, causing a trend flip. SuperTrend is unique in that breaks are typically large candles, and that its levels, especially on Weekly, Daily, Hourly, Minute timeframes, these levels will be defended (think similar to a 200sma or a 21ema). The STO making new highs within (internal) a trend is an overextension sign.
CVX Example: This is not a full analysis of CVX's stock, just an example potential trades. On the posted chart I used a weekly and a daily STO.
Long 1:The weekly showed warnings and then flipped. The daily made a double bottom, showed warnings and then flipped the daily STO at trendline support.
Long 2:The weekly still shows an uptrend, the daily made a weak break to downtrend and reversed back upwards at trendline support, forming a double bottom. Note the conservative exit when the STO made an internal new high.
Long 3: looking forward on CVX stock, the current downtrend made a weak break and is showing sings of reversal (pin bar) at horizontal support. Go long on flip of the daily (conservative) or flip of the hourly (aggressive).
Momentum of Relative strength to Index Leaf_West styleMomentum of Relative Strength to index as used by Leaf_West. This is to be used with the companion Relative Strength to Index indicator Leaf_West Style. Make sure you use the same index for comparison. If you follow his methods be aware of the different moving averages for the different time periods. From Leaf_West: "on my weekly and monthly R/S charts, I include a 13 EMA of the R/S (brown dash line) and an 8 SMA of the 13 EMA (pink solid line). The indicator on the bottom of the weekly/monthly charts is an 8 period momentum indicator of the R/S line. The red horizontal line is drawn at the zero line.
For daily or 130-minute time periods (or shorter), my R/S charts are slightly different - the moving averages of the R/S line include a 20EMA (brown dash line), a 50 EMA (blue dash line) and an 8 SMA of the20 EMA (pink solid line). The momentum indicator is also slightly different from the weekly/monthly charts – here I use a 12 period calculation (vs 8 SMA period for the weekly/monthly charts)." Leaf's methods do evolve and so watch for any changes to the preferred MAs etc..
Relative strength to Index set up as per Leaf_WestRelative Strength to index as used by Leaf_West. If you follow his methods be aware of the different moving averages for the different time periods. From Leaf_West: "on my weekly and monthly R/S charts, I include a 13 EMA of the R/S (brown dash line) and an 8 SMA of the 13 EMA (pink solid line). The indicator on the bottom of the weekly/monthly charts is an 8 period momentum indicator of the R/S line. The red horizontal line is drawn at the zero line.
For daily or 130-minute time periods (or shorter), my R/S charts are slightly different - the moving averages of the R/S line include a 20EMA (brown dash line), a 50 EMA (blue dash line) and an 8 SMA of the20 EMA (pink solid line). The momentum indicator is also slightly different from the weekly/monthly charts – here I use a 12 period calculation (vs 8 SMA period for the weekly/monthly charts)." Leaf's methods do evolve and so watch for any changes to the preferred MAs etc..
CM_Pivot Points Daily To IntradayNew Pivots Indicator With Options for Daily, 4 Hour, 2 Hour, 1 Hour, 30 Minute Pivot Levels!
Great for Forex Traders! - Take a Look at Chart with Weekly, Daily, and 4 Hour levels. Weekly Pivots Indicator is separate - Link is Below.
Plot one Pivot Level or Multiple at the Same Time via Check Boxes in the Inputs tab.
Defaults to 4 Hour Pivot Levels - Adjust in Inputs Tab.
S3 and R3 are turned off by Default - You can Activate Them In The Inputs Tab.
These Intraday Options were Requested By Users Using My CM_ Pivots Point Custom Indicator that Plots Daily, Weekly, Monthly, Quarterly, and Yearly Pivot Levels. Link is Below.
Now Both Longer-Term Traders and Shorter Term Traders Have All The Pivot Levels They Need. From Yearly Levels All The Way Down to 30 Minute Levels!
***The Candles On The Chart Are Custom Heikin-Ashi Paint Bars. Link is Below
CM_ Pivot Points Custom
Daily, Weekly, Monthly, Quarterly, Yearly Pivot Levels
Heikin-Ashi Paint Bars
CM_Pivot Points_CustomCustom Pivots Indicator - Plots Yearly, Quarterly, Monthly, Weekly, and Daily Levels.
I created this indicator because when you have multiple Pivots on one chart (For Example The Monthly, Weekly, And Daily Pivots), the only way to know exactly what pivot level your looking at is to color ALL S1 Pivots the same color, but create the plot types to look different. For example S1 = Bright Green with Daily being small circles, weekly being bigger circles, and monthly being even bigger crosses for example. This allows you to visually know exactly what pivot levels your looking at…Instantly without thinking. This indicator allows you to Choose any clor you want for any Pivot Level, and Choose The Plot Type.
MFI × RSI × VWAP Multi-Timeframe Suite# MFI × RSI × VWAP Multi-Timeframe Suite - Usage Guide & Precautions
## 📊 Indicator Overview
This indicator integrates **RSI (Relative Strength Index)**, **MFI (Money Flow Index)**, and **VWAP (Volume Weighted Average Price)** for comprehensive multi-timeframe analysis. It provides high-precision trading signals through confluence analysis.
## 🎯 Primary Objectives
- **Comprehensive trend analysis across short, medium, and long-term timeframes**
- **Enhanced accuracy through multi-indicator confluence**
- **Optimized entry and exit timing**
---
## 📈 Basic Interpretation
### 1. Main Plot Lines
- **Blue Line (RSI)**: Price momentum
- **Purple Line (MFI)**: Money flow momentum
- **Orange Line (VWAP Relative)**: Relative position to VWAP (0-100 scale)
### 2. Background Color Meaning
- **Green**: All indicators aligned bullishly (buying dominance)
- **Red**: All indicators aligned bearishly (selling dominance)
- **Color Intensity**: Strength of confluence
### 3. Signal Arrows
- **🔼 Green Up Arrow**: Long signal
- **🔽 Red Down Arrow**: Short signal
- **🟠 Small Circles**: VWAP crossover signals
---
## 🎛️ Configuration Settings
### Basic Parameters
```
RSI Length: 14 (standard)
MFI Length: 14 (standard)
RSI Overbought: 70
RSI Oversold: 30
MFI Overbought: 80
MFI Oversold: 20
```
### VWAP Settings
```
VWAP Anchor: Session (use "Week" or "Month" for daily charts)
Std Dev Multiplier: 2.0 (Bollinger Band-style application)
```
### Multi-Timeframe Configuration
```
TF1: 15min (short-term)
TF2: 1hour (medium-term)
TF3: 4hour (long-term)
TF4: Daily (trend)
```
---
## 📋 Dashboard Interpretation
### Trend Strength Scores
- **+70 to +100**: 💪 Very strong uptrend
- **+30 to +69**: 🟢 Uptrend
- **-29 to +29**: ➖ Sideways/No clear direction
- **-30 to -69**: 🔴 Downtrend
- **-70 to -100**: ⚠️ Very strong downtrend
### Consensus (Overall Assessment)
Average score across all timeframes. **Absolute value ≥50** indicates strong trend.
---
## 🎯 Practical Trading Methods
### 🔵 Long Entry Conditions
1. **RSI crosses above MFI** OR **synchronized oversold exit**
2. **Price above VWAP**
3. **Multi-timeframe consensus is positive (+)**
4. **Green background (confluence present)**
### 🔴 Short Entry Conditions
1. **RSI crosses below MFI** OR **synchronized overbought exit**
2. **Price below VWAP**
3. **Multi-timeframe consensus is negative (-)**
4. **Red background (confluence present)**
### ⚡ Strongest Signals
- **All timeframes align in trend direction**
- **Consensus score ±70 or higher**
- **🚀 STRONG display**
---
## ⏰ Timeframe-Specific Applications
### Scalping (1min-5min charts)
- Focus on RSI/MFI crossovers
- Target VWAP bounces
- Require 15min+ timeframe trend filter
### Day Trading (15min-1hour charts)
- Emphasize overbought/oversold exit signals
- Follow 1hour to daily trend direction
- Confirm with confluence background color
### Swing Trading (4hour-daily charts)
- Prioritize daily+ consensus
- Use weekly VWAP for big picture
- Wait for multi-timeframe alignment
---
## 🚨 Alert Utilization
### Basic Alerts
- **Long/Short Signal**: Basic entry signals
- **Strong Consensus**: Powerful signals with multi-timeframe confluence
- **VWAP Cross**: Important support/resistance breakouts
### Alert Configuration Example
```
Long Signal → Begin monitoring as candidate
Strong Consensus + Long → Consider aggressive entry
VWAP Bullish Cross → Potential trend reversal
```
---
## ⚠️ Important Precautions & Limitations
### Avoiding False Signals
1. **Wait for multiple conditions to align simultaneously**
2. **Never trade against higher timeframe trends**
3. **Avoid major economic news releases**
4. **Exercise caution during extremely low volatility**
### Market Environment Adjustments
- **Trending Markets**: Emphasize crossover signals
- **Range-bound Markets**: Focus on overbought/oversold levels
- **High Volatility**: Strengthen filters
- **Low Volatility**: Adjust sensitivity
### Risk Management Rules
1. **Never risk more than 2% per trade**
2. **Always set stop-loss before entry**
3. **Use proper position sizing**
4. **Maintain trading journal**
---
## 🎓 Learning & Improvement Guidelines
### Backtesting Recommendations
- **Test on 6+ months of historical data**
- **Verify performance across different market conditions**
- **Adapt settings to your trading style**
### Continuous Optimization
- **Track win rate and risk-reward ratios**
- **Analyze performance by timeframe**
- **Measure impact of parameter adjustments**
---
## 🚫 Critical Don'ts
### Never Do These:
❌ **Trade during major news events** (FOMC, NFP, CPI)
❌ **Ignore higher timeframe bias**
❌ **Chase signals after they've already moved significantly**
❌ **Override risk management rules**
❌ **Trade when emotionally compromised**
### Red Flags - Stop Trading When:
⚠️ **Consensus shows conflicting signals across timeframes**
⚠️ **VWAP shows choppy, directionless movement**
⚠️ **Multiple false signals occur consecutively**
⚠️ **Market volatility exceeds 300% of normal levels**
---
## 📊 Performance Monitoring
### Daily Checklist
```
□ Check overall market sentiment
□ Verify economic calendar for news events
□ Review multi-timeframe alignment
□ Confirm proper risk management setup
□ Monitor position sizing appropriateness
```
### Weekly Review
```
□ Analyze win rate by timeframe
□ Review entry/exit execution quality
□ Assess adherence to trading rules
□ Identify pattern improvements
□ Adjust parameters if necessary
```
### Monthly Evaluation
```
□ Calculate overall profitability
□ Review maximum drawdown periods
□ Assess emotional discipline
□ Update trading plan based on results
□ Consider strategy refinements
```
---
## 🎖️ Advanced Tips for Professionals
### Multi-Monitor Setup
```
Primary Screen: Main chart with indicator
Secondary Screen: Multi-timeframe view
Third Screen: Economic calendar + news
Mobile Device: Alert notifications
```
### Professional Entry Techniques
1. **Wait for 2+ confluence factors**
2. **Confirm with volume analysis**
3. **Use limit orders near VWAP levels**
4. **Scale into positions on strong signals**
### Exit Strategy Optimization
1. **Take partial profits at key levels**
2. **Trail stops on trending moves**
3. **Exit immediately on trend reversal signals**
4. **Honor predetermined risk-reward ratios**
---
## ⚡ Quick Reference Card
### Best Practices Summary
✅ **Always check higher timeframe first**
✅ **Wait for confluence of multiple indicators**
✅ **Use proper position sizing**
✅ **Set stops before entering**
✅ **Follow your trading plan strictly**
### Signal Reliability Ranking
1. **🚀 Strong Consensus** (Highest reliability)
2. **Multi-timeframe alignment** (High reliability)
3. **VWAP + RSI/MFI confluence** (Medium-high reliability)
4. **Single timeframe signals** (Medium reliability)
5. **Isolated crossovers** (Lowest reliability)
---
## 🔧 Troubleshooting Common Issues
### If Signals Are Too Frequent:
- Increase RSI/MFI periods
- Tighten overbought/oversold levels
- Add more confluence requirements
- Use higher timeframe bias
### If Signals Are Too Rare:
- Decrease RSI/MFI periods
- Widen overbought/oversold levels
- Reduce confluence requirements
- Lower signal smoothing value
### If Accuracy Is Poor:
- Review market conditions compatibility
- Strengthen higher timeframe filters
- Improve risk management
- Consider different timeframe combinations
**Remember**: This indicator is a comprehensive analysis tool. It's **not perfect in isolation** and must be used with proper **risk management** and **market understanding**!
Previous High/Low Range (D,W,M,Q)Previous High/Low Range (D, W, M, Q)
This indicator displays the previous period’s high, low, and midpoint levels across multiple timeframes: Daily, Weekly, Monthly, and Quarterly. It extends these key price levels into the future, allowing traders to quickly identify important support and resistance zones based on historical price action.
Features:
Shows previous Daily, Weekly, Monthly, and Quarterly highs, lows, and midpoints.
Optionally extends these levels forward for easy visualization.
Configurable colors and visibility for each timeframe.
Includes optional midpoint lines at 50% between high and low to identify equilibrium points.
Supports logarithmic scale calculations for midpoints to maintain accuracy on log charts.
Optional labels that display exact price values for each level.
Designed to help traders recognize key levels for entries, exits, and risk management.
Use this indicator to gain a multi-timeframe perspective on significant price ranges and anticipate potential reversal or breakout zones.
MK_OSFT-Multi-Timeframe MA Dashboard & Smart Alerts-v2📊 Multi-Timeframe MA Dashboard & Smart Alerts v2.0
Transform your trading with the ultimate moving average monitoring system that tracks up to 8 different MA configurations across multiple timeframes simultaneously.
🎯 What This Indicator Does
This advanced dashboard eliminates the need to constantly switch between timeframes by displaying all your critical moving averages on a single chart. Whether you're scalping on 5-minute charts or swing trading on daily timeframes, you'll instantly see the big picture.
⭐ Key Features
📈 Multi-Timeframe Moving Averages
Monitor up to **8 different MA configurations** simultaneously
Support for **SMA and EMA** across 6 timeframes (5m, 15m, 1h, 4h, Daily, Weekly)
Each MA fully customizable: length, color, alert settings, and visibility
Smart visual representation with labeled horizontal lines and connecting plots
🚨 Intelligent Alert System
Cross-over/Cross-under alerts for price vs MA interactions
Three alert modes : No alerts, Once only, or Once per bar close
Smart batching system prevents alert spam during volatile periods
Queue management with 3-second delays between alerts for optimal performance
Easy alert reset functionality for "once only" alerts
📊 Real-Time Information Dashboard
Live countdown timers showing time remaining until each timeframe closes
Color-coded progress bars with gradient visualization (green → yellow → orange → red)
Instant cross-over detection with up/down arrow indicators
Price vs MA relationship clearly displayed (above/below coloring)
🎨 Professional Visualization
Anti-overlap technology prevents labels from clustering
Customizable label positioning and sizing options
Drawing order control (larger timeframes first/last)
Connecting lines link current price to MA values
Status line integration for quick value reference
💡 Perfect For
Multi-timeframe traders [/b who need complete market context
Trend followers monitoring key MA levels across timeframes
Breakout traders waiting for price to cross critical moving averages
Risk managers using MAs as dynamic support/resistance levels
Anyone wanting organized, clutter-free MA monitoring
⚙️ Highly Configurable
Moving Average Settings
Individual enable/disable for each of 8 MA slots
Flexible timeframe selection : 5m, 15m, 1h, 4h, Daily, Weekly
MA type choice : SMA or EMA for each configuration
Custom lengths from 1 to any desired period
Color customization for each MA line and label
Alert Management
Per-MA alert configuration : Choose which MAs trigger alerts
Source selection : Current bar vs last confirmed bar calculations
Frequency control : Prevent over-alerting with smart queuing
Reset functionality : Easily reactivate "fired" once-only alerts
Display Options
Table positioning : Top-right, bottom-left, or bottom-right
Label styling : Size, offset, and gap control
Line customization : Width and extension options
Timezone adjustment : Align timestamps with your local time
🔧 Technical Excellence
Optimized performance with efficient array management and single-pass calculations
Real-time vs historical mode handling for accurate backtesting
Memory-efficient label and line management prevents accumulation
Robust error handling and edge case management
Clean, well-documented code following Pine Script best practices
📋 How to Use
Add to chart and configure your desired MA combinations
Set alert preferences for each MA (none/once/per bar)
Create TradingView alert using "Any alert() function calls"
Monitor the dashboard for cross-over signals and timeframe progress
Use the info table to track all MA values and alert statuses at a glance
🎓 Educational Value
This indicator serves as an excellent educational tool for understanding:
Multi-timeframe analysis principles
Moving average confluence and divergence
Alert system design and management
Professional indicator development techniques
---
Transform your trading workflow with this professional-grade multi-timeframe MA monitoring system. No more chart hopping - get the complete moving average picture in one powerful dashboard!
© MK_OSF_TRADING | Pine Script v6 | Mozilla Public License 2.0
Custom Volume + Buyer & Price %Title: Custom Volume + Buyer & Price %
Description:
This indicator helps you see who is controlling the market — buyers or sellers — using volume and price action. It works even if your chart is on a small timeframe (like 5-min or 15-min), by showing Daily, Weekly, and Monthly information from the higher timeframe volume charts.
Key Features & How It Works:
Buyer % (B%):
Measures where the closing price is within the high-low range of a candle.
Calculation:
\text{Buyer %} = \frac{\text{Close} - \text{Low}}{\text{High} - \text{Low}} \times 100
Interpretation:
> 50% → Buyers are stronger
< 50% → Sellers are stronger
50% → Balanced
Volume Coloring:
Volume bars are colored based on Buyer %, not price movement:
Green → Buyers dominate
Red → Sellers dominate
Yellow → Balanced day
Higher Timeframe Insight:
Displays Daily, Weekly, and Monthly volume & Buyer % even if your chart is on a smaller timeframe.
Lets you understand long-term buying or selling pressure while trading intraday.
21-Day Average:
Shows average Buyer % and average volume over the past 21 days for trend context.
Why It’s Useful:
Quickly visualize whether the market is buyer-driven or seller-driven.
Identify strong accumulation or distribution days.
Works on any chart timeframe while giving higher timeframe perspective.
Ideal for traders who want easy, visual insight into market sentiment.
VWAP with period (rajib127)VWAP with Adjustable Period (rajib127)
This advanced VWAP (Volume Weighted Average Price) indicator offers enhanced functionality with customizable anchor periods and multiple standard deviation bands.
Key Features:
Adjustable Anchor Period: Unlike standard VWAP that resets daily, this indicator allows you to set custom anchor timeframes (Daily, Weekly, Monthly) to match your trading strategy
Multiple Deviation Bands: Display up to 3 sets of bands with customizable multipliers for better support/resistance identification
Dual Calculation Modes: Choose between Standard Deviation or Percentage-based band calculations
Flexible Price Sources: Select from 7 different price calculation methods (Typical, Close, High, Low, Median, Weighted, Open)
Timeframe Visibility Control: Option to hide VWAP on higher timeframes (Daily and above) for cleaner charts
Visual Enhancements: Color-coded bands with fill areas and real-time value display table
Trading Applications:
Identify dynamic support and resistance levels
Spot mean reversion opportunities when price deviates from bands
Use different anchor periods for swing trading vs day trading strategies
Combine with other indicators for confluence-based entries
Unique Advantage:
The ability to adjust the VWAP reset period makes this indicator versatile for various trading styles - from intraday scalping with hourly resets to swing trading with weekly anchors.
Perfect for traders who want more control over their VWAP analysis beyond the standard daily reset limitation.
Advanced Volume Profile Pro Delta + POC + VAH/VAL# Advanced Volume Profile Pro - Delta + POC + VAH/VAL Analysis System
## WHAT THIS SCRIPT DOES
This script creates a comprehensive volume profile analysis system that combines traditional volume-at-price distribution with delta volume calculations, Point of Control (POC) identification, and Value Area (VAH/VAL) analysis. Unlike standard volume indicators that show only total volume over time, this script analyzes volume distribution across price levels and estimates buying vs selling pressure using multiple calculation methods to provide deeper market structure insights.
## WHY THIS COMBINATION IS ORIGINAL AND USEFUL
**The Problem Solved:** Traditional volume indicators show when volume occurs but not where price finds acceptance or rejection. Standalone volume profiles lack directional bias information, while basic delta calculations don't provide structural context. Traders need to understand both volume distribution AND directional sentiment at key price levels.
**The Solution:** This script implements an integrated approach that:
- Maps volume distribution across price levels using configurable row density
- Estimates delta (buying vs selling pressure) using three different methodologies
- Identifies Point of Control (highest volume price level) for key support/resistance
- Calculates Value Area boundaries where 70% of volume traded
- Provides real-time alerts for key level interactions and volume imbalances
**Unique Features:**
1. **Developing POC Visualization**: Real-time tracking of Point of Control migration throughout the session via blue dotted trail, revealing institutional accumulation/distribution patterns before they complete
2. **Multi-Method Delta Calculation**: Price Action-based, Bid/Ask estimation, and Cumulative methods for different market conditions
3. **Adaptive Timeframe System**: Auto-adjusts calculation parameters based on chart timeframe for optimal performance
4. **Flexible Profile Types**: N Bars Back (precise control), Days Back (calendar-based), and Session-based analysis modes
5. **Advanced Imbalance Detection**: Identifies and highlights significant buying/selling imbalances with configurable thresholds
6. **Comprehensive Alert System**: Monitors POC touches, Value Area entry/exit, and major volume imbalances
## HOW THE SCRIPT WORKS TECHNICALLY
### Core Volume Profile Methodology:
**1. Price Level Distribution:**
- Divides price range into user-defined rows (10-50 configurable)
- Calculates row height: `(Highest Price - Lowest Price) / Number of Rows`
- Distributes each bar's volume across price levels it touched proportionally
**2. Delta Volume Calculation Methods:**
**Price Action Method:**
```
Price Range = High - Low
Buy Pressure = (Close - Low) / Price Range
Sell Pressure = (High - Close) / Price Range
Buy Volume = Total Volume × Buy Pressure
Sell Volume = Total Volume × Sell Pressure
Delta = Buy Volume - Sell Volume
```
**Bid/Ask Estimation Method:**
```
Average Price = (High + Low + Close) / 3
Buy Volume = Close > Average ? Volume × 0.6 : Volume × 0.4
Sell Volume = Total Volume - Buy Volume
```
**Cumulative Method:**
```
Buy Volume = Close > Open ? Volume : Volume × 0.3
Sell Volume = Close ≤ Open ? Volume : Volume × 0.3
```
**3. Point of Control (POC) Identification:**
- Scans all price levels to find maximum volume concentration
- POC represents the price level with highest trading activity
- Acts as significant support/resistance level
- **Developing POC Feature**: Tracks POC evolution in real-time via blue dotted trail, showing how institutional interest migrates throughout the session. Upward POC migration indicates accumulation patterns, downward migration suggests distribution, providing early trend signals before price confirmation.
**4. Value Area Calculation:**
- Starts from POC and expands up/down to encompass 70% of total volume
- VAH (Value Area High): Upper boundary of value area
- VAL (Value Area Low): Lower boundary of value area
- Expansion algorithm prioritizes direction with higher volume
**5. Adaptive Range Selection:**
Based on profile type and timeframe optimization:
- **N Bars Back**: Fixed lookback period with performance optimization (20-500 bars)
- **Days Back**: Calendar-based analysis with automatic timeframe adjustment (1-365 days)
- **Session**: Current trading session or custom session times
### Performance Optimization Features:
- **Sampling Algorithm**: Reduces calculation load on large datasets while maintaining accuracy
- **Memory Management**: Clears previous drawings to prevent performance degradation
- **Safety Constraints**: Prevents excessive memory usage with configurable limits
## HOW TO USE THIS SCRIPT
### Initial Setup:
1. **Profile Configuration**: Select profile type based on trading style:
- N Bars Back: Precise control over data range
- Days Back: Intuitive calendar-based analysis
- Session: Real-time session development
2. **Row Density**: Set number of rows (30 default) - more rows = higher resolution, slower performance
3. **Delta Method**: Choose calculation method based on market type:
- Price Action: Best for trending markets
- Bid/Ask Estimate: Good for ranging markets
- Cumulative: Smoothed approach for volatile markets
4. **Visual Settings**: Configure colors, position (left/right), and display options
### Reading the Profile:
**Volume Bars:**
- **Length**: Represents relative volume at that price level
- **Color**: Green = net buying pressure, Red = net selling pressure
- **Intensity**: Darker colors indicate volume imbalances above threshold
**Key Levels:**
- **POC (Blue Line)**: Highest volume price - major support/resistance
- **VAH (Purple Dashed)**: Value Area High - upper boundary of fair value
- **VAL (Orange Dashed)**: Value Area Low - lower boundary of fair value
- **Value Area Fill**: Shaded region showing main trading range
**Developing POC Trail:**
- **Blue Dotted Lines**: Show real-time POC evolution throughout the session
- **Migration Patterns**: Upward trail indicates bullish accumulation, downward trail suggests bearish distribution
- **Early Signals**: POC movement often precedes price movement, providing advance warning of institutional activity
- **Institutional Footprints**: Reveals where smart money concentrated volume before final POC establishment
### Trading Applications:
**Support/Resistance Analysis:**
- POC acts as magnetic price level - expect reactions
- VAH/VAL provide intermediate support/resistance levels
- Profile edges show areas of low volume acceptance
**Developing POC Analysis:**
- **Upward Migration**: POC moving higher = institutional accumulation, bullish bias
- **Downward Migration**: POC moving lower = institutional distribution, bearish bias
- **Stable POC**: Tight clustering = balanced market, range-bound conditions
- **Early Trend Detection**: POC direction change often precedes price breakouts
**Entry Strategies:**
- Buy at VAL with POC as target (in uptrends)
- Sell at VAH with POC as target (in downtrends)
- Breakout plays above/below profile extremes
**Volume Imbalance Trading:**
- Strong buying imbalance (>60% threshold) suggests continued upward pressure
- Strong selling imbalance suggests continued downward pressure
- Imbalances near key levels provide high-probability setups
**Multi-Timeframe Context:**
- Use higher timeframe profiles for major levels
- Lower timeframe profiles for precise entries
- Session profiles for intraday trading structure
## SCRIPT SETTINGS EXPLANATION
### Volume Profile Settings:
- **Profile Type**: Determines data range for calculation
- N Bars Back: Exact number of bars (20-500 range)
- Days Back: Calendar days with timeframe adaptation (1-365 days)
- Session: Trading session-based (intraday focus)
- **Number of Rows**: Profile resolution (10-50 range)
- **Profile Width**: Visual width as chart percentage (10-50%)
- **Value Area %**: Volume percentage for VA calculation (50-90%, 70% standard)
- **Auto-Adjust**: Automatically optimizes for different timeframes
### Delta Volume Settings:
- **Show Delta Volume**: Enable/disable delta calculations
- **Delta Calculation Method**: Choose methodology based on market conditions
- **Highlight Imbalances**: Visual emphasis for significant volume imbalances
- **Imbalance Threshold**: Percentage for imbalance detection (50-90%)
### Session Settings:
- **Session Type**: Daily, Weekly, Monthly, or Custom periods
- **Custom Session Time**: Define specific trading hours
- **Previous Sessions**: Number of historical sessions to display
### Days Back Settings:
- **Lookback Days**: Number of calendar days to analyze (1-365)
- **Automatic Calculation**: Script automatically converts days to bars based on timeframe:
- Intraday: Accounts for 6.5 trading hours per day
- Daily: 1 bar per day
- Weekly/Monthly: Proportional adjustment
### N Bars Back Settings:
- **Lookback Bars**: Exact number of bars to analyze (20-500)
- **Precise Control**: Best for systematic analysis and backtesting
### Visual Customization:
- **Colors**: Bullish (green), Bearish (red), and level colors
- **Profile Position**: Left or Right side of chart
- **Profile Offset**: Distance from current price action
- **Labels**: Show/hide level labels and values
- **Smooth Profile Bars**: Enhanced visual appearance
### Alert Configuration:
- **POC Touch**: Alerts when price interacts with Point of Control
- **VA Entry/Exit**: Alerts for Value Area boundary interactions
- **Major Imbalance**: Alerts for significant volume imbalances
## VISUAL FEATURES
### Profile Display:
- **Horizontal Bars**: Volume distribution across price levels
- **Color Coding**: Delta-based coloring for directional bias
- **Smooth Rendering**: Optional smoothing for cleaner appearance
- **Transparency**: Configurable opacity for chart readability
### Level Lines:
- **POC**: Solid blue line with optional label
- **VAH/VAL**: Dashed colored lines with value displays
- **Extension**: Lines extend across relevant time periods
- **Value Area Fill**: Optional shaded region between VAH/VAL
### Information Table:
- **Current Values**: Real-time POC, VAH, VAL prices
- **VA Range**: Value Area width calculation
- **Positioning**: Multiple table positions available
- **Text Sizing**: Adjustable for different screen sizes
## IMPORTANT USAGE NOTES
**Realistic Expectations:**
- Volume profile analysis provides structural context, not trading signals
- Delta calculations are estimations based on price action, not actual order flow
- Past volume distribution does not guarantee future price behavior
- Combine with other analysis methods for comprehensive market view
**Best Practices:**
- Use appropriate profile types for your trading style:
- Day Trading: Session or Days Back (1-5 days)
- Swing Trading: Days Back (10-30 days) or N Bars Back
- Position Trading: Days Back (60-180 days)
- Consider market context (trending vs ranging conditions)
- Verify key levels with additional technical analysis
- Monitor profile development for changing market structure
**Performance Considerations:**
- Higher row counts increase calculation complexity
- Large lookback periods may affect chart performance
- Auto-adjust feature optimizes for most use cases
- Consider using session profiles for intraday efficiency
**Limitations:**
- Delta calculations are estimations, not actual transaction data
- Profile accuracy depends on available price/volume history
- Effectiveness varies across different instruments and market conditions
- Requires understanding of volume profile concepts for optimal use
**Data Requirements:**
- Requires volume data for accurate calculations
- Works best on liquid instruments with consistent volume
- May be less effective on very low volume or exotic instruments
This script serves as a comprehensive volume analysis tool for traders who need detailed market structure information with integrated directional bias analysis and real-time POC development tracking for informed trading decisions.
RRG Relative Strength# RRG Relative Strength (RRG RS)
Compare any symbol to a benchmark using two RRG-style lines: **RS-Ratio** (trend of relative strength) and **RS-Momentum** (momentum of that trend). Both are centered at **100**:
- **RS-Ratio > 100** → outperforming the benchmark
- **RS-Ratio < 100** → underperforming
- **RS-Momentum** often **leads** RS-Ratio (crosses 100 earlier)
# How it works
1) Relative Strength (RS): RS = Close(symbol) / Close(benchmark)
2) Normalize around 100: smooth RS with EMA and divide RS by that EMA
3) RS-Ratio: EMA( RS / EMA(RS, Length), LenSmooth ) * 100
4) RS-Momentum: RS-Ratio / EMA(RS-Ratio, LenSmooth) * 100
# Inputs
- Length (default 14): normalization window for RS
- Length Smooth (default 20): smoothing window for RS-Ratio & RS-Momentum
# Benchmark (auto)
- US: SP:SPX (S&P 500)
- Vietnam: HOSE:VNINDEX
- Crypto: INDEX:BTCUSD
(Modify the mapping if needed, or replace with your own input.symbol().)
# How to read
- Improving: RS-Momentum crosses above 100 while RS-Ratio turns up
- Leading: RS-Ratio > 100 with RS-Momentum ≥ 100
- Weakening: RS-Momentum drops below 100; RS-Ratio often follows
# Timeframes & presets
- Works on Daily and Weekly charts
- Daily (fast): 14 / 20
- Approx. weekly behavior on Daily: 50 / 60
Note: Values usually hover near 100 (e.g., ~90–110) but are not strictly bounded. Ensure your symbol and benchmark trade in comparable sessions/currencies.
MVRV and RSI Std DevThis indicator provides a comprehensive, long-term view of market risk and opportunity for Bitcoin by combining fundamental on-chain data with classic momentum analysis.
How It Works:
The oscillator's value is calculated by multiplying two key metrics:
MVRV Ratio: An on-chain metric that indicates if the market price is "fair," "overvalued," or "undervalued" relative to the average price at which all coins last moved.
Weekly RSI: The standard Relative Strength Index on a weekly timeframe to measure long-term market momentum and identify overbought/oversold conditions.
Key Features:
Adaptive Risk Bands: Instead of fixed "overbought/oversold" levels, this indicator uses dynamic bands based on a long-term 4 year moving average and standard deviation. These bands automatically adjust to the market's changing volatility and cyclical nature, ensuring the risk/reward zones remain relevant over time.
Gradient Coloring: The oscillator line is colored on a smooth gradient from deep green (high reward/low risk) to bright red (high risk/low reward). This provides an intuitive, at-a-glance visualization of the market's "temperature."
Multi Volume Weighted Average Price1. Three independent VWAP configurations (VWAP 1, 2, and 3). Each can be set up separately
for periods such as: session, daily, weekly, monthly, etc.
2. Previous VWAP closing prices: Closed VWAPs from previous periods remain visible until the
price touches them. At that point, they are removed.
3. Bands: Based on standard deviation or a percentage of VWAP with an adjustable multiplier.
The bands can be turned on or off.
4. Source: OHLC4 is the default setting for an accurate approximation, but it is customizable
(e.g. HLC3).
5. Global Setting: Select 10,000 or 20,000 historical bars to prevent runtime errors for long
periods.
Usage tips:
1. Use VWAP 1 for daily sessions, VWAP 2 for weekly, and VWAP 3 for Monthly analysis to receive
multi-timeframe support.
2. Customize the labels to clearly distinguish them (e.g. D VWAP, W VWAP, M VWAP).
3. If you encounter errors with historical data (e.g. on the M1 chart), minimize the number of
historical bars displayed to 10,000.
Bitcoin Expectile Model [LuxAlgo]The Bitcoin Expectile Model is a novel approach to forecasting Bitcoin, inspired by the popular Bitcoin Quantile Model by PlanC. By fitting multiple Expectile regressions to the price, we highlight zones of corrections or accumulations throughout the Bitcoin price evolution.
While we strongly recommend using this model with the Bitcoin All Time History Index INDEX:BTCUSD on the 3 days or weekly timeframe using a logarithmic scale, this model can be applied to any asset using the daily timeframe or superior.
Please note that here on TradingView, this model was solely designed to be used on the Bitcoin 1W chart, however, it can be experimented on other assets or timeframes if of interest.
🔶 USAGE
The Bitcoin Expectile Model can be applied similarly to models used for Bitcoin, highlighting lower areas of possible accumulation (support) and higher areas that allow for the anticipation of potential corrections (resistance).
By default, this model fits 7 individual Expectiles Log-Log Regressions to the price, each with their respective expectile ( tau ) values (here multiplied by 100 for the user's convenience). Higher tau values will return a fit closer to the higher highs made by the price of the asset, while lower ones will return fits closer to the lower prices observed over time.
Each zone is color-coded and has a specific interpretation. The green zone is a buy zone for long-term investing, purple is an anomaly zone for market bottoms that over-extend, while red is considered the distribution zone.
The fits can be extrapolated, helping to chart a course for the possible evolution of Bitcoin prices. Users can select the end of the forecast as a date using the "Forecast End" setting.
While the model is made for Bitcoin using a log scale, other assets showing a tendency to have a trend evolving in a single direction can be used. See the chart above on QQQ weekly using a linear scale as an example.
The Start Date can also allow fitting the model more locally, rather than over a large range of prices. This can be useful to identify potential shorter-term support/resistance areas.
🔶 DETAILS
🔹 On Quantile and Expectile Regressions
Quantile and Expectile regressions are similar; both return extremities that can be used to locate and predict prices where tops/bottoms could be more likely to occur.
The main difference lies in what we are trying to minimize, which, for Quantile regression, is commonly known as Quantile loss (or pinball loss), and for Expectile regression, simply Expectile loss.
You may refer to external material to go more in-depth about these loss functions; however, while they are similar and involve weighting specific prices more than others relative to our parameter tau, Quantile regression involves minimizing a weighted mean absolute error, while Expectile regression minimizes a weighted squared error.
The squared error here allows us to compute Expectile regression more easily compared to Quantile regression, using Iteratively reweighted least squares. For Quantile regression, a more elaborate method is needed.
In terms of comparison, Quantile regression is more robust, and easier to interpret, with quantiles being related to specific probabilities involving the underlying cumulative distribution function of the dataset; on the other expectiles are harder to interpret.
🔹 Trimming & Alterations
It is common to observe certain models ignoring very early Bitcoin price ranges. By default, we start our fit at the date 2010-07-16 to align with existing models.
By default, the model uses the number of time units (days, weeks...etc) elapsed since the beginning of history + 1 (to avoid NaN with log) as independent variable, however the Bitcoin All Time History Index INDEX:BTCUSD do not include the genesis block, as such users can correct for this by enabling the "Correct for Genesis block" setting, which will add the amount of missed bars from the Genesis block to the start oh the chart history.
🔶 SETTINGS
Start Date: Starting interval of the dataset used for the fit.
Correct for genesis block: When enabled, offset the X axis by the number of bars between the Bitcoin genesis block time and the chart starting time.
🔹 Expectiles
Toggle: Enable fit for the specified expectile. Disabling one fit will make the script faster to compute.
Expectile: Expectile (tau) value multiplied by 100 used for the fit. Higher values will produce fits that are located near price tops.
🔹 Forecast
Forecast End: Time at which the forecast stops.
🔹 Model Fit
Iterations Number: Number of iterations performed during the reweighted least squares process, with lower values leading to less accurate fits, while higher values will take more time to compute.