Buy/Sell BoxThis indicator tries to identify the points where the price exceeds or falls below a rectangle based on the opening and closing prices of the previous period, the creation of the boxes occurs when a doji is detected therefore it will calculate the coordinates of the rectangle that will be drawn around it, therefore the indicator offers buy or sell signals based on this logic. Specifically, the buy signal is generated if the closing price is above the top of the rectangle and satisfies some previous price conditions while the sell signal is generated if the closing price is below the bottom of the rectangle and satisfies some conditions of previous prices within a further threshold based on the Ema 150.
Lines are then drawn on the graph to visually display the extreme price levels, which can be useful for any confirmation of buy and sell signals, Stop Loss and Take Profit, Trend Filter (to visually understand if the trend is bullish or bearish)
A potentially effective trading strategy could involve identifying buy and sell signals near the extreme price level lines drawn by the indicator. This approach can be used to try to improve the accuracy of your trading signals and make more informed decisions. For example:
When you receive a buy or sell signal based on the dojis and rectangles generated by the indicator, check whether the price is also near one of the extreme price level lines. If you are receiving a buy signal and notice that the current price is near a low of the lower level line, this may further confirm the buying opportunity, as the price is near a significant resistance level. On the contrary, if the sell signal was close to a maximum price level it could confirm an excellent short entry.
It is also possible to use the boxes as reference points to set the stop loss and take profit levels. If you are entering a buy position, you might consider setting your stop loss just below an upper line of the last box. Additionally, you may want to set your take profit near a higher price level if you are looking to maximize profits. This will help manage risks and protect your capital.
Forecasting
VOLATILITY BANDS BY ISHUThis is the simple trading system based on volatility where these bands are used as entry points and trailing stops . A brief explanation of the system is as below.
Because the volatility of a stock is its standard deviation, we can statistically establish “confidence Intervals” of the price moves. In statistics, a one standard deviation range means that there is a 68-
percent likelihood the stock price will stay within the range (a 67-percent confidence interval). The confidence value for different standard deviations are
1.00 - 68%
1.28 - 80%
1.50 - 88%
2.00 - 95%
So, we draw bands at various standard deviation levels like 0.25, 0.5, 1, 1.28, 1.65 and 2 from the previous day’s close. Entry is made once the price cross above a Band and the same band because the stop loss. When the price crosses above the next band the stop loss is shifted to this band value. This point can be also a “ADD ON” point. In the same way trading can be done on the down side as well.
The current formula uses the VIX values of the previous day which is available from NSE web site. The High Value of the VIX is used for the higher Bands and the Low value of the VIX is use for the lower Bands. This is Intraday Trading system only. The system is ideally suited for the Index as it is based on the VIX.
This system belongs solely to @karthikmarar , all credits goes to Mr.karthik , i am feeling very grateful blessed and privileged at same time as i came across his huge sea of knowledge. Please give a visit on his page, follow him and show your support !🙏🏻
Ruth Buy/Sell Signal for Day Trade and Swing TradeRuth is based on the most known technical indicators and designed for intraday traders. Ruth's aim is to find the best Buy/Sell points and decide to stop loss point with minimum Loss also Ruth tries to find multiple Profit points as TP1/TP2/TP3/TP4/TP5. Ruth was designed based on the heat map colors to be user-friendly and easy to read. While cold color preferred for Short positions, warm colors preferred for Long positions. The most important feature of Ruth is that after the signal is generated, the candles in which the profitable levels are painted one by one with their own special color codes, so that even the most inexperienced users can understand where they should close their positions.
There are two types of signal Ruth can produce for fast trade.
Short Signal: These signals means market tends to be move to down.
Short Stop Loss Point: This is the maximum risk for the position. Shown with single red line inside of the signal.
Short Entry Point: This is the best entry price for short side position. Shown with single baby blue line inside of the signal.
Short Take Profit (TP1): This level represents the profit level the signal is most likely to reach. Shown with single blue line inside of the signal.
Short Take Profit (TP2): This level represents the profit level with a high probability of the signal occurring. Shown with single light purple line inside of the signal.
Short Take Profit (TP3): This level represents the profit level with an intermediate probability of the signal occurring. Shown with single dark purple line inside of the signal.
Short Take Profit (TP4): This level represents the profit level with a low probability of the signal occurring. Shown with single light lilac line inside of the signal.
Short Take Profit (TP5): This level represents the profit level with a tight probability of the signal occurring. Shown with single dark lilac line inside of the signal.
Long Signal: These signals means market tends to be move to up.
Long Stop Loss Point: This is the maximum risk for the position. Shown with single red line inside of the signal.
Long Entry Point: This is the best entry price for short side position. Shown with single baby blue line inside of the signal.
Long Take Profit (TP1): This level represents the profit level the signal is most likely to reach. Shown with single greenish yellow line inside of the signal.
Long Take Profit (TP2): This level represents the profit level with a high probability of the signal occurring. Shown with yellow purple line inside of the signal.
Long Take Profit (TP3): This level represents the profit level with an intermediate probability of the signal occurring. Shown with single dark yellow line inside of the signal.
Long Take Profit (TP4): This level represents the profit level with a low probability of the signal occurring. Shown with single orange line inside of the signal.
Long Take Profit (TP5): This level represents the profit level with a tight probability of the signal occurring. Shown with single dark orange line inside of the signal.
Timeframe: In general best and fastest results occurred in shorter timeframes like 1 min / 5 mins / 15 mins but feel free to try higher timeframes.
Tips & Tricks:
1) Gray line drawn ot the graph represents Dema, we suggests you to go on Short Singals under gray line and go on Long Signals upper gray line.
2) Mostly, Signals easily reach their TP2 / TP3 levels and then generally there is reaction or take profit desire so commodity price turns the opposite direction. If in short time price won't turn to Signal direction close position.
3) Don't forget, every positions has own risks and profits but trade in main trend is crucial.
Hoffman Heiken BiasThis indicator uses a couple of different things including the Hoffman moving averages applied with heiken ashi bar data and some volatility to help determine when the bias of the market has shifted for the timeframe you are looking at.
GP - Long Short ScannerThis script is made to predict the point at which price-time charts will rise or fall. The script was inspired by the RSI and TSI formulas. The formula is simply; Calculates the RSI and TSI values of open, high, low and close. Calculated values are converted to an array. The maximum and minimum values in the array are taken for the candles included in the calculation. These values calculate the time when the "Long" label will be seen on the chart of the candle that will increase the price. At the same time, it calculates the time when the "Short" label will appear on the chart of the candle that will decrease the price. Although these calculations are not precise; Seeing the “Long” label means that the price will rise at that candle, and seeing the “Short” label means that the price will decrease at that candle. The “Long”, “Short” tags from this script alone should not be used to determine the direction of the price. It can be used on all price-time charts.
Bursa Malaysia Index SeriesBursa Malaysia Index Series. The index computation is as follows:-
Current aggregate Market Capitalisation/Base Aggregate Market Capitalisation x 100.
The Bursa Malaysia Index Series is calculated and disseminated on a real-time basis at 60-second intervals during Bursa’s trading hours.
Buy/Sell EMA CrossoverThe indicator identifies potential trading opportunities within the market. It is entirely based on the combination of exponential moving averages by drawing triangles on the chart that identify buy or sell signals combined with vertical bars that create areas of interest.
Specifically, when a buy signal occurs, the indicator draws a vertical bar with an azure background, indicating a possible buy area. Similarly, a sell signal is represented by a vertical bar with a fuchsia background, indicating a possible sell area.
These areas represent the main point of the indicator which uses exponential moving averages which, based on the direction of prices, identify the trend and color the background of the graph in order to visually highlight the predominant trend.
The green triangles above the bars of the chart suggest possible upside opportunities (good bullish entry points) when the 21 ema crosses the 200 ema.
While on the contrary the red triangles, 21 ema lower than the 200 ema, can indicate possible bearish trends (good bearish entry points).
While the white and purple triangles reveal moments of potential indecision or market change.
We can think of them as situations of uncertain trend in which it is possible to place a long or short order near some conditions that we are going to see.
The white triangles below, which are created when the 13 ema is higher than the 21 ema, indicate a possible bullish zone while the purple triangles above (13 ema lower than the 21) could suggest a bearish reflex
Colored lines represent moving averages blue = 200, 21= fuchsia and 13 = white. If the price is above the 200 period line then it could be a bullish opportunity, otherwise it could be a bearish one.
An interesting strategy to adopt is to evaluate, for example, the inputs near the vertical bars (azure - long) (fuchsia - short) when a white or purple triangle appears.
The more prominent green triangle indicates that the trend is going in a long direction.
On the contrary, the red (short) triangles are the opposite of the green ones and have the same importance as input logic.
The white triangle instead present more often inside the indicator identifies interesting buying areas of short duration, it is important to consider that the closer the triangles are to the vertical blue bars the stronger the entry signal.
Finally, the purple triangles are the short-term bearish trends whose entry near the fuchsia vertical bars defines a short.
HL 930 by JPThe "High and Low of 9:30 Candle" strategy is a simple trading strategy commonly used in the stock market and other financial markets. It involves using the price range (high and low) of the first candlestick that forms at the opening of a trading session, typically at 9:30 AM, as a basis for making trading decisions. Here's a description of this strategy:
1. Timeframe: This strategy is often applied to intraday trading, where traders focus on short-term price movements within a single trading day.
2. 9:30 AM Candle: The strategy begins by observing the first candlestick that forms at 9:30 AM, which is the opening time for many stock markets, including the New York Stock Exchange (NYSE). This candle represents the price action during the first few minutes of trading.
3. High and Low: Identify the highest price (the candle's high) and the lowest price (the candle's low) during the 9:30 AM candle's time period. These price levels are critical for the strategy.
4. Trading Decisions:
Long (Buy) Signal: If the current market price breaks above the high of the 9:30 AM candle, it may trigger a bullish signal. Traders may consider entering a long (buy) position, anticipating further upward momentum.
Short (Sell) Signal: Conversely, if the market price breaks below the low of the 9:30 AM candle, it may trigger a bearish signal. Traders may consider entering a short (sell) position, anticipating further downward movement.
5. Stop-Loss and Take-Profit: To manage risk, traders often set stop-loss orders just below the low (for long positions) or just above the high (for short positions) of the 9:30 AM candle. They may also establish take-profit levels based on their risk-reward preferences.
6. Time Frame: This strategy is typically used for short-term trading and may be effective in capturing quick price movements that often occur at the market open. Traders often close their positions before the end of the trading day.
7. Caution: While the "High and Low of 9:30 Candle" strategy can be straightforward, it should not be used in isolation. Traders should consider other technical and fundamental factors, such as volume, market sentiment, news events, and overall market trends, when making trading decisions.
Remember that trading strategies always carry risks, and it's essential to have a well-thought-out risk management plan in place. Additionally, backtesting and practice are crucial before implementing any trading strategy in a live market to evaluate its historical performance and suitability for your trading style.
Cross Correlation [Kioseff Trading]Hello!
This script "Cross Correlation" calculates up to ~10,000 lag-symbol pair cross correlation values simultaneously!
Cross correlation calculation for 20 symbols simultaneously
+/- Lag Range is theoretically infinite (configurable min/max)
Practically, calculate up to 10000 lag-symbol pairs
Results can be sorted by greatest absolute difference or greatest sum
Ability to "isolate" the symbol on your chart and check for cross correlation against a list of symbols
Script defaults to stock pairs when on a stock, Forex pairs when on a Forex pair, crypto when on a crypto coin, futures when on a futures contract.
A custom symbol list can be used for cross correlation checking
Can check any number of available historical data points for cross correlation
Practical Assessment
Ideally, we can calculate cross correlation to determine if, in a list of assets, any of the assets frequently lead or lag one another.
Example
Say we are comparing the log returns for the previous 10 days for SPY and XLU.
*A single time-interval corresponds to the timeframe of your chart i.e. 1-minute chart = 1-minute time interval. We're using days for this example.
(Example Results)
A lag value (k) +/-3 is used.
The cross correlation (normalized) for k = +3 is -0.787
The cross correlation (normalized) for k = -3 is 0.216
A positive "k" value indicates the correlation when Asset A (SPY) leads Asset B (XLU)
A negative "k" value indicates the correlation when Asset B (XLU) leads Asset A (SPY)
A normalized cross correlation of -0.787 for k = +3 indicates an "adequately strong" negative relationship when SPY leads XLU by 3 days.
When SPY increases or decreases - XLU frequently moves in the opposite direction 3 days later.
A cross correlation value of 0.216 at k = −3 indicates a "weak" positive correlation when XLU leads SPY by 3 days.
There's a slight tendency for SPY to move in the same direction as XLU 3 days later.
After the cross-correlation score is normalized it will fall between -1 and 1.
A cross-correlation score of 1 indicates a perfect directional relationship between asset A and asset B at the corresponding lag (k).
A cross correlation of -1 indicates a perfect inverse relationship between asset A and asset B at the corresponding lag (k).
A cross correlation of 0 indicates no correlation at the corresponding lag (k).
The image above shows the primary usage for the script!
The image above further explains the data points located in the table!
The image above shows the script "isolating" the symbol on my chart and checking the cross correlation between the symbol and a list of symbols!
Wrapping Up
With this information, hopefully you can find some meaningful lead-lag relationships amongst assets!
Thank you for checking this out (:
Seasonality by Scan Your StratOverview :
This indicator helps with seasonality on the security. Seasonal analysis searches for repeating patterns across the years. Our recommended timeframe to look for seasonality is a minimum of 5 years. The idea is to see if there are predictable movements in price that recur every calendar year.
How it works/Calculations :
It will take all the years that you choose, whether 5 or 10 or 15 years or more and will analyze the average movement by calendar year and then will detrend the results to give you a chart that goes horizontally and makes you see a clearer picture of periods of strengths or periods of weakness. It will take the ROC of each day for each year and average the results and at the end will give you a chart with line that can show uptrend or downtrend.
Potential Pitfalls :
Certain events of that year can affect the movement for that security more than a “normal” year would. In addition, there are similar price action moves that can happen across several years that have no true seasonal basis. For example, company news released coincidentally at the same time of the year over several years and can lead to show a seasonal pattern when there is not one. You can battle this by using more years like 10 or 15 years or by eliminating years from being analyze. On the other hand, using too many years (like distant past) may have little to do with today's price action and seasonal trends.
How to use :
You should not be using this indicator for entries or stop. This indicator will help you identify potential periods of strength and may help you in holding longer. Sometimes seasonal periods can start sooner or later to the chart. Very important, the indicator will work only on daily candle as the smallest timeframe.
Settings :
- Start year and end year : to put years where you want to start your analysis and where it ends. For example, you can put 2013 as a start and 2022 year end. *”Use years back” will need to be at 0 for this option to work.
- Use years back : you can put directly 10 years and will analyze 2013 to 2022. If there is a number in here like 5, will mean the last 5 years and will trump any years on the above section. "0" means is deactivated and you can use start year and end year options.
- Avoid year - there are 3 spots if you wanted to avoid certain years in a series. For example, lets say you want to analyze the last 10 years but you want to eliminate 2020 due to covid then you can put in here up to 3 different years that will not be taken into account.
- Start month and end month : it will be automatic at start 1 and end 12, but if you wanted to just see a specific timeframe you can adjust in here.
Disclaimer :
This is still an indicator that is being tested and in no way should be used alone. Currently will be in closed beta to find bugs and to work on accuracy.
The information contained in this script does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts are only for educational purposes!
Bitcoin Market Cap wave model weeklyThis Bitcoin Market Cap wave model indicator is rooted in the foundation of my previously developed tool, the : Bitcoin wave model
To derive the Total Market Cap from the Bitcoin wave price model, I employed a straightforward estimation for the Total Market Supply (TMS). This estimation relies on the formula:
TMS <= (1 - 2^(-h)) for any h.This equation holds true for any value of h, which will be elaborated upon shortly. It is important to note that this inequality becomes the equality at the dates of halvings, diverging only slightly during other periods.
Bitcoin wave model is based on the logarithmic regression model and the sinusoidal waves, induced by the halving events.
This chart presents the outcome of an in-depth analysis of the complete set of Bitcoin price data available from October 2009 to August 2023.
The central concept is that the logarithm of the Bitcoin price closely adheres to the logarithmic regression model. If we plot the logarithm of the price against the logarithm of time, it forms a nearly straight line.
The parameters of this model are provided in the script as follows: log(BTCUSD) = 1.48 + 5.44log(h).
The secondary concept involves employing the inherent time unit of Bitcoin instead of days:
'h' denotes a slightly adjusted time measurement intrinsic to the Bitcoin blockchain. It can be approximated as (days since the genesis block) * 0.0007. Precisely, 'h' is defined as follows: h = 0 at the genesis block, h = 1 at the first halving block, and so forth. In general, h = block height / 210,000.
Adjustments are made to account for variations in block creation time.
The third concept revolves around investigating halving waves triggered by supply shock events resulting from the halvings. These halvings occur at regular intervals in Bitcoin's native time 'h'. All halvings transpire when 'h' is an integer. These events induce waves with intervals denoted as h = 1.
Consequently, we can model these waves using a sin(2pih - a) function. The parameter determining the time shift is assessed as 'a = 0.4', aligning with earlier expectations for halving events and their subsequent outcomes.
The fourth concept introduces the notion that the waves gradually diminish in amplitude over the progression of "time h," diminishing at a rate of 0.7^h.
Lastly, we can create bands around the modeled sinusoidal waves. The upper band is derived by multiplying the sine wave by a factor of 3.1*(1-0.16)^h, while the lower band is obtained by dividing the sine wave by the same factor, 3.1*(1-0.16)^h.
The current bandwidth is 2.5x. That means that the upper band is 2.5 times the lower band. These bands are forming an exceptionally narrow predictive channel for Bitcoin. Consequently, a highly accurate estimation of the peak of the next cycle can be derived.
The prediction indicates that the zenith past the fourth halving, expected around the summer of 2025, could result in Total Bitcoin Market Cap ranging between 4B and 5B USD.
The projections to the future works well only for weekly timeframe.
Enjoy the mathematical insights!
Bitcoin wave modelBitcoin wave model is based on the logarithmic regression model and the sinusoidal waves, induced by the halving events.
This chart presents the outcome of an in-depth analysis of the complete set of Bitcoin price data available from October 2009 to August 2023.
The central concept is that the logarithm of the Bitcoin price closely adheres to the logarithmic regression model. If we plot the logarithm of the price against the logarithm of time, it forms a nearly straight line.
The parameters of this model are provided in the script as follows: log (BTCUSD) = 1.48 + 5.44log(h).
The secondary concept involves employing the inherent time unit of Bitcoin instead of days:
'h' denotes a slightly adjusted time measurement intrinsic to the Bitcoin blockchain. It can be approximated as (days since the genesis block) * 0.0007. Precisely, 'h' is defined as follows: h = 0 at the genesis block, h = 1 at the first halving block, and so forth. In general, h = block height / 210,000.
Adjustments are made to account for variations in block creation time.
The third concept revolves around investigating halving waves triggered by supply shock events resulting from the halvings. These halvings occur at regular intervals in Bitcoin's native time 'h'. All halvings transpire when 'h' is an integer. These events induce waves with intervals denoted as h = 1.
Consequently, we can model these waves using a sin(2pih - a) function. The parameter determining the time shift is assessed as 'a = 0.4', aligning with earlier expectations for halving events and their subsequent outcomes.
The fourth concept introduces the notion that the waves gradually diminish in amplitude over the progression of "time h," diminishing at a rate of 0.7^h.
Lastly, we can create bands around the modeled sinusoidal waves. The upper band is derived by multiplying the sine wave by a factor of 3.1*(1-0.16)^h, while the lower band is obtained by dividing the sine wave by the same factor, 3.1*(1-0.16)^h.
The current bandwidth is 2.5x. That means that the upper band is 2.5 times the lower band. These bands are forming an exceptionally narrow predictive channel for Bitcoin. Consequently, a highly accurate estimation of the peak of the next cycle can be derived.
The prediction indicates that the zenith past the fourth halving, expected around the summer of 2025, could result in prices ranging between 200,000 and 240,000 USD.
Enjoy the mathematical insights!
Pro Bollinger Bands CalculatorThe "Pro Bollinger Bands Calculator" indicator joins our suite of custom trading tools, which includes the "Pro Supertrend Calculator", the "Pro RSI Calculator" and the "Pro Momentum Calculator."
Expanding on this series, the "Pro Bollinger Bands Calculator" is tailored to offer traders deeper insights into market dynamics by harnessing the power of the Bollinger Bands indicator.
Its core mission remains unchanged: to scrutinize historical price data and provide informed predictions about future price movements, with a specific focus on detecting potential bullish (green) or bearish (red) candlestick patterns.
1. Bollinger Bands Calculation:
The indicator kicks off by computing the Bollinger Bands, a well-known volatility indicator. It calculates two pivotal Bollinger Bands parameters:
- Bollinger Bands Length: This parameter sets the lookback period for Bollinger Bands calculations.
- Bollinger Bands Deviation: It determines the deviation multiplier for the upper and lower bands, typically set at 2.0.
2. Visualizing Bollinger Bands:
The Bollinger Bands derived from the calculations are skillfully plotted on the price chart:
- Red Line: Represents the upper Bollinger Band during bearish trends, suggesting potential price declines.
- Teal Line: Represents the lower Bollinger Band in bullish market conditions, signaling the possibility of price increases.
3.Analyzing Consecutive Candlesticks:
The indicator's core functionality revolves around tracking consecutive candlestick patterns based on their relationship with the Bollinger Bands lines. To be considered for analysis, a candlestick must consistently close either above (green candles) or below (red candles) the Bollinger Bands lines for multiple consecutive periods.
4. Labeling and Enumeration:
To convey the count of consecutive candles displaying consistent trend behavior, the indicator meticulously assigns labels to the price chart. The position of these labels varies depending on the direction of the trend, appearing either below (for bullish patterns) or above (for bearish patterns) the candlesticks. The label colors match the candle colors: green labels for bullish candles and red labels for bearish ones.
5. Tabular Data Presentation:
The indicator complements its graphical analysis with a customizable table that prominently displays comprehensive statistical insights. Key data points within the table encompass:
- Consecutive Candles: The count of consecutive candles displaying consistent trend characteristics.
- Candles Above Upper BB: The number of candles closing above the upper Bollinger Band during the consecutive period.
- Candles Below Lower BB: The number of candles closing below the lower Bollinger Band during the consecutive period.
- Upcoming Green Candle: An estimated probability of the next candlestick being bullish, derived from historical data.
- Upcoming Red Candle: An estimated probability of the next candlestick being bearish, also based on historical data.
6. Custom Configuration:
To cater to diverse trading strategies and preferences, the indicator offers extensive customization options. Traders can fine-tune parameters such as Bollinger Bands length, upper and lower band deviations, label and table placement, and table size to align with their unique trading approaches.
Pro RSI CalculatorThe "Pro RSI Calculator" indicator is the latest addition to a series of custom trading tools that includes the "Pro Supertrend Calculator" and the "Pro Momentum Calculator."
Building upon this series, the "Pro RSI Calculator" is designed to provide traders with further insights into market trends by leveraging the Relative Strength Index (RSI) indicator.
Its primary objective remains consistent: to analyze historical price data and make informed predictions about future price movements, with a specific focus on identifying potential bullish (green) or bearish (red) candlestick patterns.
1. RSI Calculation:
The indicator begins by computing the RSI, a widely used momentum oscillator. It calculates two crucial RSI parameters:
RSI Length: This parameter determines the lookback period for RSI calculations.
RSI Upper and Lower Bands: These thresholds define overbought and oversold conditions, typically set at 70 and 30, respectively.
2. RSI Bands Visualization:
The RSI values obtained from the calculation are skillfully plotted on the price chart, appearing as two distinct lines:
Red Line: Represents the RSI when indicating a bearish trend, anticipating potential price declines.
Teal Line: Represents the RSI in bullish market conditions, signaling the possibility of price increases.
3. Consecutive Candlestick Analysis:
The indicator's core functionality revolves around tracking consecutive candlestick patterns based on their relationship with the RSI lines.
To be included in the analysis, a candlestick must consistently close either above (green candles) or below (red candles) the RSI lines for multiple consecutive periods.
4. Labeling and Enumeration:
To communicate the count of consecutive candles displaying consistent trend behavior, the indicator meticulously assigns labels to the price chart.
Label positioning varies depending on the trend's direction, appearing either below (for bullish patterns) or above (for bearish patterns) the candlesticks.
The color scheme aligns with the candle colors: green labels for bullish candles and red labels for bearish ones.
5. Tabular Data Presentation:
The indicator enhances its graphical analysis with a customizable table that prominently displays comprehensive statistical insights.
Key data points in the table include:
- Consecutive Candles: The count of consecutive candles displaying consistent trend characteristics.
- Candles Above Upper RSI: The number of candles closing above the upper RSI threshold during the consecutive period.
- Candles Below Lower RSI: The number of candles closing below the lower RSI threshold during the consecutive period.
- Upcoming Green Candle: An estimated probability of the next candlestick being bullish, derived from historical data.
- Upcoming Red Candle: An estimated probability of the next candlestick being bearish, also based on historical data.
6. Custom Configuration:
To cater to various trading strategies and preferences, the indicator offers extensive customization options.
Traders can fine-tune parameters like RSI length, upper, and lower bands, label and table placement, and table size to align with their unique trading approaches.
The Next Pivot [Kioseff Trading]Hello!
This script "The Next Pivot" uses various similarity measures to compare historical price sequences to the current price sequence!
Features
Find the most similar price sequence up to 100 bars from the current bar
Forecast price path up to 250 bars
Forecast ZigZag up to 250 bars
Spearmen
Pearson
Absolute Difference
Cosine Similarity
Mean Squared Error
Kendall
Forecasted linear regression channel
The image above shows/explains some of the indicator's capabilities!
The image above highlights the projected zig zag (pivots) pattern!
Colors are customizable (:
Additionally, you can plot a forecasted LinReg channel.
Should load times permit it, the script can search all bar history for a correlating sequence. This won't always be possible, contingent on the forecast length, correlation length, and the number of bars on the chart.
Reasonable Assessment
The script uses various similarity measures to find the "most similar" price sequence to what's currently happening. Once found, the subsequent price move (to the most similar sequence) is recorded and projected forward.
So,
1: Script finds most similar price sequence
2: Script takes what happened after and projects forward
While this may be useful, the projection is simply the reaction to a possible one-off "similarity" to what's currently happening. Random fluctuations are likely and, if occurring, similarities between the current price sequence and the "most similar" sequence are plausibly coincidental.
That said, if you have any ideas on cool features to add please let me know!
Thank you (:
Machine Learning: Trend Pulse⚠️❗ Important Limitations: Due to the way this script is designed, it operates specifically under certain conditions:
Stocks & Forex : Only compatible with timeframes of 8 hours and above ⏰
Crypto : Only works with timeframes starting from 4 hours and higher ⏰
❗Please note that the script will not work on lower timeframes.❗
Feature Extraction : It begins by identifying a window of past price changes. Think of this as capturing the "mood" of the market over a certain period.
Distance Calculation : For each historical data point, it computes a distance to the current window. This distance measures how similar past and present market conditions are. The smaller the distance, the more similar they are.
Neighbor Selection : From these, it selects 'k' closest neighbors. The variable 'k' is a user-defined parameter indicating how many of the closest historical points to consider.
Price Estimation : It then takes the average price of these 'k' neighbors to generate a forecast for the next stock price.
Z-Score Scaling: Lastly, this forecast is normalized using the Z-score to make it more robust and comparable over time.
Inputs:
histCap (Historical Cap) : histCap limits the number of past bars the script will consider. Think of it as setting the "memory" of model—how far back in time it should look.
sampleSpeed (Sampling Rate) : sampleSpeed is like a time-saving shortcut, allowing the script to skip bars and only sample data points at certain intervals. This makes the process faster but could potentially miss some nuances in the data.
winSpan (Window Size) : This is the size of the "snapshot" of market data the script will look at each time. The window size sets how many bars the algorithm will include when it's measuring how "similar" the current market conditions are to past conditions.
All these variables help to simplify and streamline the k-NN model, making it workable within limitations. You could see them as tuning knobs, letting you balance between computational efficiency and predictive accuracy.
Price Variation and Projection IndicatorThis indicator calculates and visualizes various aspects of price variation and projection based on certain parameters such as rate of change, time interval, constant value, and more. It helps traders understand potential price movements and provides insights into potential support and resistance levels.
The indicator displays the following information:
Resistance and support levels based on the highest and lowest prices over a specified period.
∆P (Price Variation) calculated between two high oscillations.
∆t (Time Variation) calculated between two high oscillations.
Price variation rate.
Price projections based on rate of change and the most occurred variation.
Additionally, parallel lines are drawn to illustrate projected price ranges, and the most frequent ∆P value is shown for reference.
in short the indicator does it projects possible support and resistance for you to add a mark for example you see that it gave a projection you mark it on the chart with horizontal line or horizontal ray you can configure it by Period or by ∆t calculation limit au increase the period it will increase the projection of all targets interesting periods to use 20 50 80 120 200 since the ∆t calculation limit au decrease increases the projection in the Price projection that is showing the information in blue color when increasing it decreases the projection target ∆t calculation interesting limit to use 3 4 6 7 8 9
it works for all timeframes can be used for Swing trade or day trade
use I like to use it with a closed market that helps me to trace possible support and resistance can be used with open market as well
Choose your preferred language to display the information
Please note that this indicator is designed for educational and informational purposes. Always conduct your own analysis and consider risk management strategies before making trading decisions.
Advanced Optimized VSA - 15 MinThis script is written in Pine Script and is designed to be run on the TradingView trading platform. It is an advanced technical analysis indicator that utilizes various methods and indicators to generate trading signals based on a Volume Spread Analysis (VSA) approach.
Here's a detailed breakdown of its functionalities:
### Customizable Parameters:
1. `scoreLabel` and `TDLabel`: Customizable labels for score and trend direction.
2. `labelColorScore` and `labelColorTD`: Colors for the score and trend direction labels.
### Base Indicators and Variables:
1. `spread`: Calculates the difference between the high and low of a candle.
2. `emaVolume`: Exponential moving average of volume over a 21-period range.
3. `rsi14`: Relative Strength Index (RSI) over a 14-period range.
4. `sma200` and `ema50`: Simple moving average over a 200-period range and exponential moving average over a 50-period range, respectively.
5. `volatility`: Calculates the 14-period Average True Range (ATR) to determine volatility.
6. `trendDirection`: Establishes the trend direction based on the SMA200.
### Risk Management:
1. `atrValue`: Calculates the value of the ATR.
2. `stopLoss` and `takeProfit`: Calculates the stop-loss and take-profit levels based on the ATR.
### MACD:
Computes the MACD line, signal line, and histogram.
### Volume Analysis:
1. `weightedVol`: Weighted volume.
2. `forceFactor`: Measures the strength of price movement in relation to volume.
### Support and Resistance:
1. `support` and `resistance`: Calculates support and resistance levels based on the most recent 50 periods.
### Liquidity Check:
1. `isLiquid`: Checks if an asset is sufficiently liquid.
### Score Calculation:
Evaluates various factors such as price position relative to support/resistance levels, RSI, MACD, strength of movement, and volatility to generate a score.
### Criteria for Final Signals:
1. `isBullSpread` and `isBearSpread`: Generates a bullish or bearish signal based on various factors, including the score, trend direction, and liquidity.
### Notifications:
Generates alert conditions for bullish and bearish signals.
### Graphical Elements:
Displays various indicators and signals on the chart, including stop-loss, take-profit, SMA200, EMA50, and support and resistance lines.
### Debugging Labels:
Shows labels on the chart for score and trend direction.
The goal is to provide a comprehensive picture of the current asset, taking into consideration various factors and generating potentially profitable trading signals.
################################################################### ITALIANO ########################################################################################
##############################################################################################################################################################################################
Questo script è scritto in Pine Script e progettato per essere eseguito sulla piattaforma di trading TradingView. È un indicatore di analisi tecnica avanzata che utilizza diversi metodi e indicatori per generare segnali di trading basati su un approccio Volume Spread Analysis (VSA).
Ecco un riepilogo dettagliato delle funzionalità:
### Parametri personalizzabili:
1. `scoreLabel` e `TDLabel`: Etichette personalizzabili per i punteggi e la direzione del trend.
2. `labelColorScore` e `labelColorTD`: Colori delle etichette per punteggio e direzione del trend.
### Indicatori e variabili base:
1. `spread`: Calcola la differenza tra il massimo e il minimo di una candela.
2. `emaVolume`: Media mobile esponenziale del volume con un periodo di 21.
3. `rsi14`: RSI (Relative Strength Index) con un periodo di 14.
4. `sma200` e `ema50`: Media mobile semplice con un periodo di 200 e media mobile esponenziale con un periodo di 50, rispettivamente.
5. `volatility`: Calcola l'Average True Range (ATR) con un periodo di 14 per determinare la volatilità.
6. `trendDirection`: Stabilisce la direzione del trend basata sulla SMA200.
### Gestione del rischio:
1. `atrValue`: Calcola il valore dell'ATR.
2. `stopLoss` e `takeProfit`: Calcola i livelli di stop-loss e take-profit basati sull'ATR.
### MACD:
Calcola le linee MACD, segnale e l'istogramma.
### Analisi del volume:
1. `weightedVol`: Volume ponderato.
2. `forceFactor`: Misura la forza del movimento del prezzo in relazione al volume.
### Supporto e resistenza:
1. `support` e `resistance`: Calcola i livelli di supporto e resistenza basati sui 50 periodi più recenti.
### Verifica della liquidità:
1. `isLiquid`: Verifica se un asset è sufficientemente liquido.
### Calcolo del punteggio:
Valuta diversi fattori come la posizione del prezzo rispetto ai livelli di supporto/resistenza, RSI, MACD, forza del movimento e volatilità per generare un punteggio.
### Criteri per i segnali finali:
1. `isBullSpread` e `isBearSpread`: Genera un segnale rialzista o ribassista basato su vari fattori, incluso il punteggio, la direzione del trend e la liquidità.
### Notifiche:
Genera condizioni di allarme per segnali rialzisti e ribassisti.
### Elementi grafici:
Visualizza diversi indicatori e segnali sul grafico, inclusi stop-loss, take-profit, SMA200, EMA50, e linee di supporto e resistenza.
### Etichette di debug:
Mostra etichette sul grafico per il punteggio e la direzione del trend.
L'obiettivo è fornire un quadro completo dell'asset corrente, prendendo in considerazione diversi fattori e generando segnali di trading potenzialmente profittevoli.
ICT Daily BiasThis indicator is based on ICT's teaching - Daily Bias. Indicator tries to predict which direction (bias) the price will move in the near future and it can tell you in which direction should you take trades on the lower timeframe (buy or sell). It works on every timeframe but best to use on 1D timeframe. It can also show historical Daily Biases. Daily Bias can be BUY, SELL or NEUTRAL. If there is NEUTRAL Daily Bias then you should not take any trade because following price direction is not clear until the Daily Bias changes to BUY or SELL.
Current Daily Bias is shown in the right bottom corner.
Daily Bias can be calculated by 2 types: Previous H/L or Previous Swing H/L.
Previous H/L:
This calculation is based on previous H/L. If actual candle reaches previous high (red line by default) or low (green line by default) with wick then price should reverse into opposite direction. If actual candle closes with body above previous high (green line by default) or below previous low (red line by default) then price should continue in current direction. There are also colorful arrows showing the following daily bias based on previous candle.
Previous Swing H/L:
This calculation is based on previous untested swing H/L. If actual candle reaches previous untested swing high (red line by default) or low (green line by default) with wick then price should reverse into opposite direction. If actual candle closes with body above previous untested swing high (green line by default) or below previous untested swing low (red line by default) then price should continue in current direction. Lookleft and lookright period (default: 3) for swing H/L can be set in indicator settings. This period tells you how many candles left and right from the swing H/L need to be higher (swing low) or lower (swing high). Previous tested swing H/L are labeled by colorful (yellow by default) diamonds. There are also colorful arrows showing the following daily bias based on previous tested swing H/L.
All settings of this indicator should be self-explanatory and some of them have tooltips for better understanding.
Forecast by ScanYourStratOverview :
This indicator scans historical price data and focus on 3 main characteristics:
1. Momentum of the move
2. Volume changes
3. Proprietary candle scoring system (a scoring based on the candles open and close, wicks and color of the candle)
After it analyzes the above 3 characteristics, it will find the pattern most closely to each one and will make an average Forecast which is the result you see on the chart. They can be all 3 in the same area or across historical data. The length of the price range that you want to analyze is user dependent, based on the Bar calculation length (see below on settings), and then will take the price movements that followed each of the 3 characteristics and It will project it into the future to provide potential price actions as an average forecast. As we all know, certain patterns and sequences, do repeat in the market. From these patterns we can try to forecast what will be the response based on previous data. The closer the past values to the historical data, the more likely the price will continue to move according to the same rules.
How it works :
Once you have set the Bar calculation length and the Forecast length, it will find the closest pattern that fulfills all 3 characteristics as above (either together or separate). Meaning, if you want to look at the last 10 candle bars on the current timeframe, the algorithm will find the pattern that resembles closest in momentum, volume, and candles scores to bring the forecast based on the movement that happened after those 10 candles (average of all 3). For the length of the forecast, you can choose how far into the future you want to look for.
Calculations :
The indicator works by scanning historical price data for the 3 characteristics above, and then forecast based on previous patterns. It uses mainly Pearson correlation calculation, but also, we have included Spearmen and cosine similarity equations to calculate different ways depending on the style of the trader. Essentially, the indicator takes the historical price moves that followed the pattern to forecast what might happen next. It will be an average of all 3 characteristics.
Potential Pitfalls :
This comes with certain problems, choose a pattern to small and you will have too many variables, choose a pattern too long and could limit the results that may not be statistically significant. Each person is encouraged to test depending on the timeframe that you trade. As you change the number of candles and calculations, it will change the forecast path.
How to use :
Each new candle will give you a forecast that may be new or consistent with previous candles. You cannot rely solely on this indicator as no indicator is 100%. Best strategy to work, is to already have some type of zone for demand or supply, or expansion zones or liquidity zones and use this indicator in conjunction to it. This indicator has been tested mainly on the 1 hour but will work on any timeframe. Best settings so far are with Pearson calculation and a length of 12 bars. The forecast line should not be used as an exact replica but more as a trend whether going up or down. The targets although sometimes close, the trader is not encouraged to use the line targets as their entry or stops but more using the above zones to help for those. In addition, the trader can use the option to average the last few candles forecast to see if the movement is consistent as well.
Settings :
- Bar calculation length : will be the X number of candles that the script will look in historical data that resembles the most. (Example chose 3 candles or 10, or 20)
- Forecast length : how many X number of candles that the script will look forward (forecast).
- Average forecast color : you can change the color of the forecast line.
- Multi bar forecast : is a way to bring the previous forecast lines from past candles to see if there is a pattern without having to use the bar replay, the more you candles you choose, the more lines will be available but at the same time making it harder to see.
- Average all on end bar : if you want to average all the forecast lines into one. You can choose the amount of candles that you want to average based on the multi bar forecast.
Disclaimer :
This is still an indicator that is being tested and in no way should be used alone. Currently will be in closed beta to find bugs and to work on accuracy.
The information contained in this script does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts are only for educational purposes!
Crypto/DXY ScoringHi!
This indicator "Crypto/DXY Scoring", a multi-purpose script, consists of various comparison statistics (including an alternative RS/RSMOM model) to show the strength of a currency against the DXY.
Features
"Contrived" RS/RSMOM alternative model
Compare the strength of the crypto currency on your chart to any asset (DXY default)
Glass's ∆
Z-comparison
Hedges' g
Cliff's Delta
Z-score for log returns
RRG graph (with adjusted dimensions) Traditional RRG graph coming soon (:
Let's go over some simplified interpretations of what's shown on the chart!
The image above provides generalized interpretations for the three of the data series plotted by the indicator.
The image above further explains the other plots for the indicator!
The image above shows the final result!
Underlying Theory
"When the dollar is strong as indicated by the DXY, it usually means that investors are seeking safety in traditional assets. Bitcoin (crypto) is often considered a "risk-on" asset, meaning investors might sell BTC in favor of holding dollars, thus driving BTC prices down."
Given the complexities associated with this relationship, including its contentious implications and a variable correlation between crypto and the DXY, this theory is one within a plethora.
That said, regardless of accuracy, this indicator adheres to the theory outlined above (:
The image above shows the purpose of the red/lime columns and the corresponding red/green lines.
Should the crypto on your chart and the DXY (or comparison symbol) exhibit negative correlation, and should the performance of DXY (or comparison symbol) hold any predictive utility for the subsequent performance of the crypto on your chart, the red columns violating the red line might indicate an upcoming "dump" for the crypto on your chart.
Lime green columns violating the green line may indicator an inverse response.
Alternative Relative Rotation Graph
In its current state, the alternated dimensions for the Relative Rotation Graph cause it to function more as a "Relative Performance Graph".
Fear not; a traditional RRG graph is coming soon!
The image above shows our alternative RRG!
Interpretation
With this model, you can quickly/intuitively assess the relative performance of the display cryptos against an index of their performance.
The image above shows generalized interpretations of the model!
That's it for this indicator! Thank you for checking it out; more to come (:
Intraday Volatility BarsThis script produce a volatility histrogram by bar with the current volatility overlayed.
The histogram shows cumulative average volatility over n days.
And the dots are todays cumulative volatility.
In other words, it calculates the True Range of each bar and adds it to todays value.
This script is build for intraday timeframes between one and 1440 minutes only.
I use this to show me when volatility is above/below/equal to the average volatility.
When the dots are above the histogram then it is a more volatile day, and vice versa.
Recognizing a more volatile day as early as possible can be an advantage for daytrader.
Days that start with higher volatility seems to continue to increase relative to the past few days. Or when midday volatility rises it seems to continue as well.
Happy Trading!
Volatility Price RangeThe Volatility Price Range is an overlay which estimates a price range for the next seven days and next day, based on historical volatility (already available in TradingView). The upper and lower bands are calculated as follows:
The Volatility for one week is calculated using the formula: WV = HV * √t where:
WV: one-week volatility
HV: annual volatility
√: square root
t: the time factor expressed in years
From this formula we can deduce the weekly volatility WV = HV * √(1 / 52) = HV / 7.2 where 52: weeks in a year.
The daily volatility DV = HV * √(1 / 365) = HV / 19.1 where 365: days in a year.
To calculate the lower and upper value of the bands, the weekly/daily volatility value obtained will be subtracted/added from/to the current price.