Advanced Choppiness Indicator with CPMA"The Advanced Choppiness Indicator with CPMA is a technical analysis tool designed to assist traders in identifying choppy market conditions and determining trend direction. It combines two key components: the Choppiness Index and a Custom Price Moving Average (CPMA).
The Choppiness Index is calculated using the Average True Range (ATR), which measures market volatility. It compares the ATR to the highest high and lowest low over a specified period. A higher Choppiness Index value indicates choppier market conditions, while a lower value suggests smoother and more directional price movements.
The CPMA is a custom moving average that takes into account various price types, including the close, high, low, and other combinations. It calculates the average of these price types over a specific length. The CPMA provides a smoother trend line that can help identify support and resistance levels more accurately than traditional moving averages.
When using this indicator, pay attention to the following elements:
Yellow range boxes: These indicate choppy zones, where market conditions are characterized by low momentum and erratic price action. Avoid entering trades during these periods.
Histogram bars: Green bars suggest an uptrend, while red bars indicate a downtrend. These bars are based on the CPMA and can help confirm the prevailing trend direction.
CPMA angle: The angle of the CPMA line provides further insight into the trend. A positive angle indicates an uptrend, while a negative angle suggests a downtrend.
Choppiness thresholds: The indicator includes user-defined thresholds for choppiness. Values above the high threshold indicate high choppiness, while values below the low threshold suggest low choppiness.
Trade decisions: Consider the information provided by the indicator to make informed trading decisions. Avoid trading during choppy zones and consider entering trades in the direction of the prevailing trend.
Remember that the indicator's parameters, such as ATR length and CPMA length, can be adjusted to suit your trading preferences and timeframe. However, it's important to use this indicator in conjunction with other technical analysis tools and your trading strategy for comprehensive market analysis."
By combining the Choppiness Index, CPMA, and other visual cues, this indicator aims to help traders identify suitable trading conditions and make more informed decisions based on market trends and volatility.
Educational
Lot Size CalculatorThis is a public release of my Lot Size Calculator. I received a request for the code from a user so I am republishing the script so I can make it public (TV doesn't seem to give me the option to simply make it public once published ).
This is a very simple script to use. Simply choose your entry level and stop level on the chart and the indicator will calculate the lots. You can change your account risk and base currency units in the settings along with changing the scaling of the calculation to adjust the results with the lot sizing units of your broker. This allows the calculator to be used with CFDs, forex, Gold, etc.. Hope it helps in your trading it has been the single most useful tool in my trading as it has helped me always keep my risk locked up and on point that is why I released it.
One final quick note: Remember you can save your settings for your own account size and risk so you do not always have to modify the defaults when loading the script. Just a ease of use tip. I only add the script to my chart when I am about to take a trade so it is helpful to have everything set up in advance.
Batman Trades Bulls vs BearsIntroduction :
The Batman Trades Bulls vs Bears (BTBvB) indicator is a powerful tool designed to provide traders with valuable insights into market dynamics by assessing the bullish and bearish forces at play. This educational description will delve into the workings of the indicator and provide a comprehensive trading strategy to harness its potential.
Understanding the Indicator:
The BTBvB indicator utilizes two components: BullTrend and BearTrend. BullTrend measures the relative strength of the bullish side by calculating the difference between the closing price and the lowest low over a specific period, divided by the Average True Range (ATR). On the other hand, BearTrend determines the strength of the bearish side by computing the difference between the highest high and the closing price, again divided by the ATR. These individual measures are then combined to determine the net power or trend in the market.
Interpreting the Indicator:
The BTBvB indicator visualizes market forces through histogram bars and trend lines. The bullish and bearish powers are represented by green and red histograms, respectively. A value below zero indicates bearish dominance, while a value above zero signifies bullish strength. The intersection of the histograms can provide valuable insights into potential market reversals.
Additionally, the BTBvB indicator includes a regression trend line, which depicts the overall trend based on historical price data. When activated, the trend line allows traders to observe the direction and strength of the market trend, aiding in trend-following strategies.
Trading Strategy:
The BTBvB indicator offers traders a comprehensive approach to analyze market forces and make informed trading decisions. Here is a suggested trading strategy to leverage the insights provided by the indicator:
Identifying Market Bias:
Look for histogram crossovers: When the green histogram crosses above the zero line, it suggests a shift toward bullish sentiment. Conversely, when the red histogram crosses below the zero line, it indicates an increase in bearish pressure.
Assess trend line slope: If the regression trend line is sloping upwards, it indicates a bullish trend, while a downwards slope suggests a bearish trend.
Confirming Trade Entries:
Bullish Scenario: Consider entering long positions when the bullish histogram is above zero and the trend line confirms an upward slope. Look for pullbacks or consolidations to time the entry more effectively.
Bearish Scenario: For short positions, watch for the bearish histogram below zero, accompanied by a downward-sloping trend line. Look for suitable entry points during price retracements or consolidations.
Setting Stop Loss and Take Profit Levels:
Apply appropriate risk management techniques, including setting stop loss orders to limit potential losses in case the market moves against the trade.
Determine take profit levels based on key support and resistance areas, previous price swings, or other relevant technical analysis tools.
Monitoring and Managing Trades:
Continuously monitor the BBPT indicator for any shifts in market sentiment or trend changes.
Consider trailing stop loss orders to protect profits as the trade progresses.
SMT Divergences [LuxAlgo]The SMT Divergences indicator highlights SMT divergences between the chart symbol and two user-selected tickers (ES and YM by default).
A dashboard returning the SMT divergences statistics is also provided within the settings.
🔶 SETTINGS
Swing Lookback: Calculation window used to detect swing points.
Comparison Ticker: If enabled, will detect SMT divergences between the chart prices and the prices of the selected ticker.
🔹 Dashboard
Show Dashboard: Displays statistics dashboard on the chart.
Location: Location of the dashboard on the chart.
Size: Size of the displayed dashboard.
🔶 USAGE
SMT Divergences are characterized by diverging swing points between two securities.
The detection of SMT Divergences is performed by detecting swing points using the user chart prices as well as the prices of the selected external tickers. If a swing point on the chart ticker is detected at the same time on external tickers, comparison is performed.
Due to the detection requiring swing point confirmation (3 candles by default), this indicator can better be used to study price behaviors on the occurrence of an SMT divergence.
The dashboard highlights the number of SMT divergences that occurred on a swing high and swing low between the chart ticker and the selected external tickers.
The returned percentage indicates the proportion of swing highs or swing lows that led to an SMT divergence.
CandlesticksIndicator that identifies the classical candlestick patterns for markets that are open 24/7 like the crypto market.
Why? because those markets don't gap, so many patterns won't need to gap to be valid.
Also, the theoretical rules about the patterns are very strict but it is to the discretion of the trader or technical analyst to decide if the patterns are yet valid. This is how Steve Nison uses candlesticks, i.e. a hammer is still valid if it has a small upper shadow, a marubozu is still valid if it has tiny shadows, etc.
So, for each candlestick pattern there are tolerance parameters so you can decide what is an acceptable upper shadow size for a hammer etc. I have set them to my liking but you might want to adjust them which is totally fine.
Additional features:
-to avoid the clutter, decide how many candles have to be analyzed
-use a trend filter based on the ema 5 (you can change the value) so you only see reversal patterns relevant to the trend
-plot pivots (swings HL)
-volume confirmation: bearish signals don't need volume confirmation as prices fall off their own weight. But volume confirmation for bullish price action can serve as added confluence. You have a setting that allows you to decide how many times the volume needs to be bigger than the previous candle's volume : if you have a bullish candlestick pattern printed, if the volume is1.5 times bigger than the previous candle then you will have a shape plotted at the bottom of your chart
-there is a cheap vs expensive feature that colors the bars
-you can also color the background so you see the oversold/overbought RSI
-finally, there are a couple of custom signals
"RULES" ABOUT CANDLESTICKS
-this is not a system in itself, but combined with other candlesticks (cluster of candlesticks), volume, oscillators, trend lines, support and resistances, bollinger bands can give amazing results and that is where the magic is
-most candlesticks can establish a support or resistance or confirm one
-a reversal candlestick doesn't mean that market will shoot the other direction right away, trend changes occur usually slowly and the trend might not reverse but convert in a period of sideways. It shouldn't actually be named reversal patterns but rather trend change patterns.
-reversal patterns need a trend to reverse (or change), in ranging markets you should ignore the signals
-you might think that there are many false signals, you need to understand that they are early warnings and the next candle's close is of major importance. A hammer at the end of a downtrend isn't enough to enter a position, you will have to wait for the next candle to close above the high of the hammer to validate the bullish reversal and vice versa.
-some signals are based on 1 candle only (like the hammer) others on 2 candles (like the engulfing pattern), others on 3 and more (tower top, morning star, etc). Patterns based on multiple candles have more probability.
-you might want to wait for price to revisit the support created by the pattern (read below) to get a better entry
-candles do not provide price targets
-long lower shadows is bullish, long upper shadows is bearish, small bodies (spinning tops, stars, dojis) means indecision and market is vulnerable to a trend change and the color of the body is irrelevant, declining size of bodies means trend strength weakening
HAMMER
stop-loss under the lower shadow
lower shadow can become a potential support or confirm an existing support
ENGULFING
with bearish engulfing pattern use the highest high of the 2 candles as a resistance, and with bullish engulfing pattern use the lowest low as support
DARK CLOUD COVER
use the highest high of the 2 candles as resistance
PIERCING PATTERN
use the lowest low of the 2 candles as support
MORNING STAR
use the lowest low of the 3 candles as support
the smaller the body of the 2nd candle the more potent the signal
for traditional markets, an ideal morning star would have a gap between 2nd and 3rd candles' bodies
EVENING STAR
use the highest high of the 3 candles as resistance
the smaller the body of the 2nd candle the more potent the signal
HARAMI
the smaller the size of the candle the more potent the signal
TWEEZERS
very important signals by themselves on weekly and monthly charts
for daily and intraday signals, it is potent only if it meets additional criterias (1st candle long, 2nd short, a candle pattern with with same highs or lows)
BELT-HOLD
they are more important if they confirm a support or resistance or another belt-hold or if they have not appeared for a while.
3 BLACK CROWS AND 3 WHITE SOLDIERS
candles 1 and 2 should act as support for the 3WS and as resistance for the 3BC
RISING AND FALLING 3 METHODS
stop-loss is the low of the 1st candle that started the rising 3 methods
stop-loss is the high of the 1st candle that started the falling 3 methods
ideally 1st and last candles have the strongest volume
DOJI
signal is reinforced by subsequent candles, if market is oversold or overbought, if the market doesn't have many doji on the chart, if market is at an important junction, if there are other technical alerts
doji after a tall candle are especially potent, the highest high of the 2 candles is the resistance
doji are especially potent after an uptrend, less so after a downtrend
gavestone doji is a bearish signal
dragonfly doji is a bullish signal
long-legged doji is a confused market
CUSTOM
*1st signal is a continuation pattern based on the progression of bodies' sizes and/or shadows' sizes
*following ones are reversal patterns based on the progression of bodies' sizes and/or shadows' sizes
*early reversal is based on a "secret" excess signal
reversal confirmed is when the early reversal's excess resolves and price reintegrates the non-excess area + prints a custom reversal pattern
for both early reversal and reversal confirmed the same rule applies as with any candlestick signal: we wait for the next candle's close above the previous upper shadow (bullish reversal) or below the previous lower shadow (bearish reversal)
*swings are 3 candles fractals, they are not reversal or continuation patterns but serve to mark swing highs and lows
this is all based on Steve Nison's book Japanese candlestick charting techniques
and
Thomas N. Bulkowski's Encyclopedia of candlestick charts
Draw Line For High Low Custom Range Interactive█ OVERVIEW
This indicator is an educational indicator to make pine coders easier to how to use interactive inputs with User-Defined Type (UDT) especially when dealing input.time.
█ NOTES
This indicator is not perfect but it is a good starting point or template to start develop custom range interactive indicator.
█ INSPIRATIONS
ABC 123 Harmonic Ratio Custom Range Interactive
XABCD Harmonic Pattern Custom Range Interactive
PriceTimeInteractive
█ CREDITS
CAGR Custom Range
Pine scripts are now interactive
█ FEATURES
1. High Low points are determined based on points selected.
2. Line will be drawn after points are correctly arranged.
3. Label show error once wrong point is selected, move the point as instructed in example.
█ EXAMPLES / USAGE
Scalping Strategy (5min)This indicator is designed for scalping strategies on a 5-minute timeframe. It generates signals based on two RSI crossovers and incorporates moving averages to identify trends. Additionally, a Bollinger Band is included to eliminate the need for an additional Bollinger Band on the chart.
Please note that this indicator does not guarantee 100% accurate signals and may produce false signals. It is recommended to use this indicator in conjunction with other indicators such as Stochastic, MACD, SuperTrend, or any other suitable indicators to enhance the accuracy of trading decisions.
1) Signal Generation: The indicator generates buy and sell signals based on two RSI crossovers. A buy signal is generated when the fast RSI crosses above the slow RSI, indicating potential bullish momentum. Conversely, a sell signal is generated when the fast RSI crosses below the slow RSI, suggesting potential bearish momentum.
2) To adjust the indicator to your specific chart and trading preferences, you have the flexibility to modify the RSI and moving average (MA) values. By changing the RSI values (slow RSI length and fast RSI length), you can fine-tune the sensitivity of the RSI crossovers to suit different timeframes and market conditions. Similarly, adjusting the MA values (slow MA period and fast MA period) allows you to adapt the indicator to the desired trend identification and short-term trend confirmation.
3) Pay attention to trades that are confirmed by the short-term moving average (MA) aligning with the desired direction. For buy signals, ensure that the short MA is tending upward, indicating a potential uptrend. For sell signals, confirm that the short MA is trending downward, suggesting a potential downtrend.
4) Moving Averages: The indicator uses a 200-period moving average (MA) to identify the overall trend and a short-term MA for additional confirmation.
5) Bollinger Band: The included Bollinger Band is not directly used in the indicator's calculations. However, it is provided for convenience so that users don't need to add another Bollinger Band to their chart separately.
6) Exercise caution when the short MA is below the 200-period MA but showing signs of attempting an upward move. These situations may indicate a potential reversal or consolidation, and it is advisable to avoid taking trades solely based on the 200-period MA crossover in such cases.
Remember that these guidelines are intended to provide additional insights and should be used in combination with your trading judgment and analysis.
Pi - Intraday High-Low Predictor
Pi - Intraday High-Low Predictor
This is not my Strategy/Research , I've just coded it into a indicator.
I found it interesting & useful so I'm sharing it here.
This Strategy/Research is by Kshirod Chandra Mohanty ( y-o-u-t-u-b-e : Trade with IITIAN )
You can watch his video on y-o-u-t-u-b-e for more info on this one.
the video has following title :
"1Cr Paid Strategy For Free || 10000 Subscribers Special Giveaway || How to find Day High or Low"
This will not tell you which is day high or day low, but it will help you to predict the day high from a day low and day low from a day high.
It will give you a possible range to which the prices could move to.
He has explained/used this on Banknifty.
How to Find out Day High from Day Low & Day Low from Day High :-
He uses the value of Pi (3.14) and the Range of 1st 5minute candle to find out the possible highs from day low and the possible lows from day high.
Range = value of Pi * 1st 5minutes Range
Small range = Range / 2
Large range = Range + Small range
so to find out the possible lows from day high we do following calculations
Small range low = day high - Small range
Range low = day high - Range
Large range low = day high - Large range
and to find out the possible highs from day low we do following calculations
Small range high = day low + Small range
Range high = day low + Range
Large range high = day low + Large range
Note :- This Indicator does Repaint in following ways,
As the script uses the Day High to predict the possible lows ,
so if it's an up-trending day and price keeps on making new High's then the ranges for lows will keep on changing.
similarly the script uses the Day Low to predict the possible high's ,
so if it's an down-trending day and price keeps on making new Low's then the ranges for highs will keep on changing.
My observations / thoughts about this :-
This script does not provide buy/sell recommendations. it just provides possible ranges to where prices can go from Day-High & Day-Low.
It's better to avoid trading when the price is trading between the Small range high & Small range low levels.
As it has high probability that it will be a range bound day and price will stay in between those two levels.
There is a high probability that it will be a trending day if price breaks either the Small range high/low ,
then the price could move to Range low/high.
If price breaks from Range High/Low then there is a high probability that it will be a trending day and the price could move to Large Range low/high.
Note :- If you want to use this on instruments/scripts/indexes which are active for large session such as forex/cryptos , then i suggest that you use the Opening Range period of 4Hours i.e 240minutes, to get better results.
using the default setting of 5minutes will not give good results on them.
play around with this value to find out which one suits that instrument/script/index the best.
Don't trust these levels blindly, do backtest or live testing of this then use for real trade if you want.
Use Price action near these levels to make any trading decision's.
The script provides following options :
1. Option to display Ranges in a Table (which you can enable/hide as you wish)
You can set the Table's location, size , background color & text color according to your preference.
2. Option to enable/hide Predicted-Highs from Day-Low on chart.
3. Option to enable/hide Predicted-Lows from Day-High on chart.
4. Option to set the Opening range period - here you can select your preferred opening range for calculation purpose.
5. Option to enable/hide historical levels on chart.
6. Options to customize the colors & line styles for lines.
7. Options to customize the colors , position & size for labels.
Farzan Paid CaliburnFarzan Paid Caliburn is used to identify trends and smoothen out price fluctuations. It was derived from the candlestick charting techniques, and it is based on open, high, low and close prices from the previous session
The Farzan Paid Caliburn indicator is plotted as a candlestick chart with a series of Blue and Black candles. The Blue candles indicate an uptrend while Black candles indicate a downtrend.
The Farzan Paid Caliburn indicator is a trend-following indicator that helps traders identify the direction of the current market trend.
To use this Farzan Paid Caliburn indicator you need to follow these steps :-
*1.Open the chart of a particular stock you want to trade.
*2.Fix the time interval of 10 minutes for the intraday trading. For that, you can use Tradingview charts.
*3.Insert the Farzan Paid Caliburn as your indicator.
The Farzan Paid Caliburn is shown under the main chart and their plots indicate the current trend. Farzan Paid Caliburn indicator can be used with varying periods (daily, weekly, intraday etc.) and on varying instruments (stocks, futures or forex) .
My personal preference is to use the Indicator on Weekly chart for best result.
BANKNIFTY position screenerThe script takes present day's price range of the stocks (stocks of the Index being tracked included in this screener) into account, to hint strength or weakness in the underlying Index (for example: BANKNIFTY here). The day's price range of a stock is gauged on a scale of 0-100, where 0 is Day's price low and 100 is day's price high.
If a stock is in 90-100 price range section the cell with title "90" illuminates hinting the stock is trading near day's high.
Likewise, if a stock is in 0-10 price range section the cell with title "10" illuminates hinting that the stock is trading near day's low.
The price range of 10-25 is represented in the cell titled "25"
The price range of 75-90 is represented in the cell titled "75"
Only one cell from the day's range illuminates at a time for a stock, signaling the present position of that stock in the Day's range at that instant.
The script works best above 10 second time frame.
Idea: If majority of the heavy weight stocks of the Index being tracked are trading near Day's high the underlying Index must be going strong at that very instant and Vice versa.
Disclaimer: Only for studying Index movement ideas intraday, trading is not advised.
Non Adaptive Moving Average - Quan DaoThis Non-Adaptive Moving Average (NAMA) is my origin work. It came from the issues that I always face when using existing famous MA like EMA or RMA:
- What length should I choose for the MA for this security?
- Is there a length that works for multiple timeframes?
- Is there a length that works for multiple securities in multiple markets?
Choosing the right length for an MA is a tedious and boring work and is very subjective. One day in early 2023, I decided to create a new MA that will not be dependant a lot (non-adaptive) on the length of it, to make my life a little bit easier. The idea came from the formula of EMA and RMA:
ma = alpha * src + (1 - alpha) * ma
in which,
alpha = 1 / length for RMA
alpha = 2 / (length + 1) for EMA
I decided to use a constant alpha for the formula, which happened to be: 1.618 / 100 (i.e., golden ratio / 100)
This NAMA is using the length in the start only, after running for a while the MA value will be the same for every value of its length, which resolves good my 3 questions above.
The application of this NAMA is wide, I think.
- It can be used like a normal MA but you don't have to choose its length anymore.
- It can be used like EMA in DEMA, TEMA (I called it DNAMA, TNAMA)
- It can be used in calculating some famous indicators (RSI, TR, ...) so that these indicators will not be dependant on the length as well
In this example script, I included an EMA (in blue color) as well so that you can see how the EMA changes and NAMA stays the same when changing the value of its Length.
VWAP + 2 Moving Averages + RSI + Buy and SellIndicator: VWAP + 2 Moving Averages + RSI + Buy and Sell
Buy and Sell Arrows (Great for use alone or in conjunction with other scripts on the chart)
This indicator displays BUY (BUY) and SELL (SELL) arrows on the chart based on a combination of moving averages, VWAP and RSI. Arrows are a visual way to identify trading opportunities and can be useful for traders who want to follow a strategy based on these conditions.
The indicator uses two moving averages (20 and 50 periods) to identify upward crosses (buy) and downward crosses (sell). In addition, it takes into account VWAP (Volume Weighted Average Price) and RSI (Relative Strength Index) as additional filters to confirm buy and sell signals.
This script is great for use both independently and in conjunction with other indicators and strategies. You can combine it with other indicators and customize it to your preferences to create a more comprehensive trading strategy.
Please remember that this indicator is provided for educational purposes only and does not constitute financial advice. It is always recommended to carry out a thorough analysis before making any trading decisions.
Give this indicator a try and enjoy clear visualization of buy and sell arrows on your chart. Happy trading!
OverNightSession @joshuuuThis indicator highlights the Overnightsession (ONS), taught by TheCurrenyMerchant.
The Overnightsession is from 4-8 am UTC-5. This session can be used to form trades, e.g. after one side has been taken out.
It has the options to display Projection and the equilibrium level. Equilibrium level (50%) can be used to identify if price is currently in premium/discount of the range and the projections (standard deviations of the range) can be used to identify possible targets.
A classic setup he teaches is:
Price trades agressively out of the range taking liquidity. As soon as we trade above the high of the candle that took liquidity, that candle can be considered an orderblock, where the 50% level can be used for long setups.
⚠️ Open Source ⚠️
Coders and TV users are authorized to copy this code base, but a paid distribution is prohibited. A mention to the original author is expected, and appreciated.
⚠️ Terms and Conditions ⚠️
This financial tool is for educational purposes only and not financial advice. Users assume responsibility for decisions made based on the tool's information. Past performance doesn't guarantee future results. By using this tool, users agree to these terms.
Market Profile @joshuuuTime is fractal. Every candle has an open, low, high and closing price.
Depending on what timeframe you are on, some opening prices could be more interesting than others.
This indicator tracks, which timeframe you are currently on and displays different things accordingly, so that the chart is never messy.
Below the hourly timeframe, the indicator highlights ICT Killzones, times of the day where most volume occurs and price moves the "cleanest". There are different versions to display those sessions in the settings.
From the hourly timeframe up to the daily timeframe, the indicator shows the "Weekly Profile". It plots the weekly opening line, can highlight daily highs and lows and daily opens and shows the name of the days on the chart.
On the daily timeframe, the indicator switches to a monthly profile. It shows the monthly open, weekly highs/lows AND it shows another concept taught by ICT, the IPDA Lookback.
ICT teaches that especially the last 20, 40 and 60 days PD Arrays and Highs/Lows are important and this indicator highlights those lookback windows accordingly.
The indicator has a lot of settings to make it allow maximum individuality.
Cross Period Comparison IndicatorReally excited to be sharing this indicator!
This is the cross-period comparison indicator, AKA the comparison indicator.
What does it do?
The cross-period comparison indicator permits for the qualitative assessment of two points in time on a particular equity.
What is its use?
At first, I was looking for a way to determine the degree of similarity between two points, such as using Cosine similarity values, Euclidean distances, etc. However, these tend to trigger a lot of similarities but without really any context. Context matters in trading and thus what I wanted really was a qualitative assessment tool to see what exactly was happening at two points in time (i.e. How many buyers were there? What was short interest like? What was volume like? What was the volatility like? RSI? Etc.)
This indicator permits that qualitative assessment, displaying things like total buying volume during each period, total selling volume, short interest via Put to Call ratio activity, technical information such as Stochastics and RSI, etc.
How to use it?
The indicator is fairly self explanatory, but some things require a little more in-depth discussion.
The indicator will display the Max and Min technical values of a period, as well as a breakdown in the volume information and put to call information. The user can then make the qualitative determination of degrees of similarity. However, I have included some key things to help ascertain similarity in a more quantitative way. These include:
1. Adding average period Z-Score
2. Adding CDF probability distributions for each respective period
3. Adding Pearson correlations for each respective period over time
4. Providing the linear regression equation for each period
So let us discuss these 4 quantitative measures a bit more in-depth.
Adding Period Z-Score
For those who do not know, Z-Score is a measure of the distance from a mean. It generally spans 0 (at the mean) to 3 (3 standard deviations away from the mean). Z-Score in the stock market is very powerful because it is actually our indicator of volatility. Z-Score forms the basis of IV for option traders and it generally is the go to, to see where the market is in relation to its overall mean.
Adding Z-Score lets the user make 2 big determinations. First and foremost, it’s a measure of overall volatility during the period. If you are getting a Z-Score that is crazy high (1.5 or greater), you know there was a lot of volatility in that period marked by frequent deviations from its mean (since on average it was trading 1.5 standard deviations away from its mean).
The other thing it tells you is the overall sentiment of that time. If the average Z Score was 1.5 for example, we know that buying interest was high and the sentiment was somewhat optimistic, as the stock was trading, on average, + 1.5 SDs away from its mean.
If, on the other hand, the average was, say, - 1.2, then we know the sentiment was overall pessimistic. There was frequent selling and the stock was frequently being pushed below its mean with heavy selling pressure.
We can also check these assumptions of buying / selling buy verifying the volume information. The indicator will list the Buy to Sell Ratio (number of Buyers to Sellers), as well as the total selling volume and total buying volume. Thus, the user can see, objectively, whether sellers or buyers led a particular period.
Adding CDF Probability
CDF probabilities simply mean the extent a stock traded above or below its normal distribution levels.
To help you understand this, the indicator lists the average close price for a period. Directly below that, it lists the CDF probabilities. What this is telling you, is how often and how likely, during that period, the stock was trading below its average. For example, in the main chart, the average close price for BTC in Period A is 29869. The CDF probability is 0.51. This means, during Period A, 51% of the time, BTC was trading BELOW 29869. Thus, the other 49% of the time it was trading ABOVE 29869.
CDF probabilities also help us to assess volatility, similar to Z-Score. Generally speaking, the CDF should consistently be reading about 0.50 to 0.51. This is the point of an average value, half the values should be above the average and half the values should be below. But in times of heightened volatility, you may actually see the CDF creep up to 0.54 or higher, or 0.48 or lower. This means that there was extremely extensive volatility and is very indicative of true “whipsaw” type price action history where a stock refuses to average itself out in one general area and frequently jumps up and down.
Adding Pearson Correlation
Most know what this is, but just in case, the Pearson correlation is a measure of statistical significance. It ranges from 0 (not significant) to 1 (very significant). It can be positive or negative. A positive signifies a positive relationship (i.e. as one value increases so too does the other value being compared). If it is a negative value, it means an inverse relationship (i.e. one value increases proportionately to the other’s decline).
In this indicator, the Pearson correlation is measured against time. A strong positive relationship (a value of 0.5 or greater) indicates that the stock is trading positive to time. As time goes by, the stock goes up. This is a normal relationship and signifies a healthy uptrend.
Inversely, if the Pearson correlation is negative, it means that as time increases, the stock is going down proportionately. This signifies a strong downtrend.
This is another way for the user to interpret sentiment during a specific period.
IF the Pearson correlation is less than 0.5 or -0.5, this signifies an area of indecision. No real trend formed and there was no real strong relationship to time.
Adding Linear Regression Equation
A linear regression equation is simply the slope and the intercept. It is expressed with the formula y= mx + b.
The indicator does a regression analysis on each period and presents this formula accordingly. The user can see the slope and intercept.
Generally speaking, when two periods share the same slope (m value) but different intercept (b value), it can be said that the relationship to time is identical but the starting point is different.
If the slope and intercept are different, as you see in the BTC chart above, it represents a completely different relationship to time and trajectory.
Indicator Specific Information:
The indicator retains the customizability you would expect. You can customize all of your lengths for technical, change and Z-Score. You can toggle on or off Period data, if you want to focus on a single period. You can also toggle on a difference table that directly compares the % difference between Period A to Period B (see image below):
You will also see on the input menu a input for “Threshold” assessments. This simply modifies the threshold parameters for the technical readings. It is defaulted to 3, which means when two technical (for example Max Stochastics) are within +/- 3 of each other, the indicator will light these up as green to indicate similarities. They just clue the user visually to areas where there are similarities amongst the qualitative technical data.
Timeframes
This is best used on the daily timeframe. You can use it on the smaller timeframe but the processing time may take a bit longer. I personally like it for the Daily, Weekly and 4 hour charts.
And this is the indicator in a nutshell!
I will provide a tutorial video in the coming day on how to use it, so check back later!
As always, leave your comments/questions and suggestions below. I have been slowly modifying stuff based on user suggestions so please keep them coming but be patient as it does take some time and I am by no means a coder or expert on this stuff.
Safe trades to all!
Support & Resistance GridTitle: Comprehensive Breakdown of an Advanced Support/Resistance and Liquidity Indicator for Enhanced Trading Performance
Introduction:
In the ever-evolving world of trading, market participants are constantly seeking innovative tools and indicators to enhance their decision-making process and improve their overall trading performance. One such remarkable tool that has gained significant traction amongst traders is an advanced support and resistance (S/R) and liquidity indicator. This powerful indicator offers a plethora of customizable options and unique features, enabling traders to efficiently mark up their charts and identify crucial market levels without the need to spend countless hours on manual analysis.
In this comprehensive breakdown, we will delve into the key features and functionalities of this advanced indicator and demonstrate how traders can leverage it to optimize their trading strategies and achieve better results in the market. While we will not be revealing the source code, we will provide an in-depth explanation of how the indicator performs and the various ways in which it can be used by traders.
Section 1: Support and Resistance Zones - The Backbone of Your Technical Analysis
1.1 Automated Chart Marking:
The primary advantage of this advanced indicator is its ability to automatically identify and mark up key support and resistance levels on a chart. Gone are the days when traders had to painstakingly analyze charts and manually mark crucial levels. This indicator saves traders valuable time and ensures a more accurate depiction of S/R zones, ultimately facilitating better-informed trading decisions.
1.2 Round Number Detection:
Another notable feature of this indicator is its ability to detect and highlight psychological levels or round numbers. As these levels often act as significant areas of support or resistance, having them automatically marked on the chart allows traders to concentrate on developing and executing their trading strategies without getting bogged down in the minutiae of identifying these levels.
1.3 Customizable Timeframes:
Recognizing the diverse needs of traders, this advanced indicator offers the flexibility to adjust the user input options and adapt the S/R zones to any timeframe. This functionality allows traders to tailor the indicator to their preferred trading style, whether they are scalping on lower timeframes or taking longer-term positions on higher timeframes.
1.4 Adjustable Pip Difference:
The option to increase or decrease the pip difference between the levels is a game-changer, as it allows traders to easily fine-tune the S/R zones to match the specific behavior of the market across various timeframes. With just a few clicks, traders can increase the pip difference on higher timeframes for a broader perspective, or decrease it on lower timeframes for a more granular view of the market.
1.5 Comprehensive Customization Options:
The advanced S/R indicator boasts a complete range of customizable options, ensuring that traders can tailor it to their unique needs and preferences. With the ability to solely rely on this indicator for marking up their charts, traders can streamline their technical analysis and focus on developing robust trading strategies.
1.6 Anticipating Trades with Limit and Stop Orders:
One of the many ways traders can leverage the S/R zones identified by this indicator is by placing limit and stop orders at these levels. This proactive approach enables traders to be prepared for potential market moves and take advantage of opportunities as they arise, rather than scrambling to react to unexpected price action.
1.7 Identifying Swing Points and Market Trends:
The customizable S/R zones also facilitate the identification of swing points, allowing traders to easily determine the trend direction or recognize ranging markets. This enhanced understanding of market structure can inform trading decisions and improve the overall effectiveness of a trader's strategy.
1.8 Visualization of Swing Points:
The ability to customize the S/R zones not only simplifies the process of identifying swing points but also enhances their visualization. This allows traders to quickly grasp the market structure and make informed decisions based on the prevailing market conditions.
Section 2: Liquidity Wicks - Uncovering Hidden Opportunities in the Market
2.1 Complementing Support and Resistance Zones:
The advanced indicator's liquidity wicks feature serves as an excellent complement to the S/R zones, providing traders with a comprehensive understanding of the market dynamics. By highlighting potential liquidity areas, traders can easily identify high-probability trading opportunities that may have otherwise gone unnoticed.
2.2 Magnetism of Liquidity:
Liquidity in the market often acts as a magnet for price, drawing it towards areas with higher trading volume. By visualizing these liquidity areas through the use of liquidity wicks, traders can anticipate price movements and adjust their strategies accordingly, seizing opportunities as they arise.
2.3 Trading Towards or Bouncing from Liquidity Wicks:
The combination of liquidity wicks and S/R zones empowers traders to take advantage of the market's inherent attraction to liquidity. Traders can either trade towards these wicks, anticipating price to be drawn to the liquidity, or trade based on a bounce from the high or low of the wicks, expecting price to reverse after reaching these areas.
2.4 Synergy of Liquidity Wicks and Support/Resistance Zones:
The relationship between liquidity wicks and S/R zones creates an invaluable synergy for traders. By looking for large liquidity wick bounces from S/R zones, traders can anticipate that price is likely to bounce again, thereby increasing the probability of successful trade execution. This integrated approach enables traders to identify and capitalize on high-probability trading opportunities in a more systematic manner.
Section 3: Bringing It All Together - Maximizing the Potential of the Advanced Indicator
3.1 Customization for Enhanced Trading Performance:
The extensive customization options offered by the advanced indicator allow traders to fine-tune their chart analysis to suit their individual trading styles and preferences. By adjusting the S/R zones, timeframes, and pip differences, traders can achieve an unparalleled level of precision in their technical analysis, ultimately enhancing their overall trading performance.
3.2 Anticipating and Preparing for Market Moves:
The advanced indicator enables traders to anticipate market moves and be prepared for potential opportunities by placing limit and stop orders at crucial levels. This proactive approach minimizes the risk of missing out on profitable trades and allows traders to stay ahead of the market.
3.3 Identifying and Capitalizing on High-Probability Trading Opportunities:
The combination of S/R zones and liquidity wicks empowers traders to identify high-probability trading opportunities and capitalize on them effectively. By integrating these features into their trading strategies, traders can significantly improve their success rate and overall profitability.
Conclusion:
In summary, the advanced support and resistance and liquidity indicator offer traders a powerful tool that can greatly enhance their trading performance. By automatically marking up charts, identifying key levels, and providing customizable options, this indicator allows traders to focus on developing and executing effective trading strategies. The synergy of S/R zones and liquidity wicks further enables traders to uncover hidden opportunities and capitalize on high-probability trades.
By understanding and leveraging the full potential of this advanced indicator, traders can streamline their technical analysis, improve their decision-making process, and ultimately give them a great change to achieve better results in the market.
Seasonality [TFO]This Seasonality indicator is meant to provide insight into an asset's average performance over specified periods of time (Daily, Monthly, and Quarterly). It is based on a 252 trading day calendar, not a 365 day calendar. Therefore, some estimations are used in order to aggregate the Daily data into higher timeframes, as we assume every Month to be 21 trading days, and every Quarter to be 63 trading days. Instead of collecting data on the 1st day of a given month, we are actually treating it as the "nth" trading day of the year. Some years exceed 252 trading days, some fall short; however 252 is the average that we are working with for US stocks and indices. Results may vary for non-US markets.
Main features:
- Statistics Table
- Performance Analysis
- Seasonal Pivots
The Statistics Table provides a summarized view of the current seasonality: whether the average Day/Month/Quarter tends to be bullish or bearish, what the average percent change is, and what the current (actual) change is relative to the historical value. It is shown in the top right of this chart.
The Performance Analysis shows a histogram of the average percentage performance for the selected timeframe. Here we have options for Daily, Monthly, and Quarterly. The previous chart showed the Monthly timeframe, here we have the Daily and Quarterly.
Lastly, Seasonal Pivots show where highs and lows tend to be created throughout the year, based on an aggregation of the Daily performance data collected over the available years. If we anchor our data to the beginning of the current year, and then manually offset it by ~252 (depending on the year), we can line this data up with the previous years' data and observe how well these Seasonal Pivots lined up with major Daily highs and lows.
Styling options are available for every major component of this indicator. Please consider sharing if you find it useful!
PSESS1 - Learn PineScript InputsThis is a script written exclusively for people who are trying to learn Pine Script.
PSESS stands for "Pine Script Educational Script Series" which is a series of scripts that helps Pine Script programmers in 2 ways:
1. Learn Pine Script at more depth by an interactive environment where they can immediately see the effects of any change in the pre-written code and also comparing different lines code having tiny differences so they can grasp the details.
2. Have this script open while coding in order to copy the line they find useful
Pine Script Library couldn't be used for this purpose since this script has educational aspect and needs to be executable individually.
This is Script 1 of PSESS and focuses on inputs in Pine Script.
The script is densly commented in order to make it understandable. here is the outline of the script:
1. Inputs that can be received through the indicator() function
2. 12 possible types of input
3. Input() function arguments: defval - title - tooltip - inline - group - confirm
4. The different display of tooltip when inputs are inline
5. Multiple price and time inputs (on single request or multiple requests)
6. What happens when title argument is not specified
7. References and key points from them
Artharjan Daily Weekly Price Trend IndicatorHi,
Artharjan Daily Weekly Price Trend Indicator is created to identify whether the current market price is with respect to previous Daily High and Low as well as Previous Weekly High and Low
If the price is above previous Day High a Green Square is plotted above the Candle, if the Price is inside the Previous Day Range then a Gray Square is Plotted above the Candle, and if the Price is below the previous day low then a Red Square is plotted above the candle.
Similarly If the price is above previous Week's High a Green Circle is plotted below the Candle, if the Price is inside the Previous Week's Range then a Gray Circle is Plotted below the Candle, and if the Price is below the previous Week's low then a Red Circle is plotted below the candle.
The idea here is to identify the trend, trend changes (Reversals) and initiate either a long or short positing purely based on price action.
For illustration purpose, If suppose you have entered the trade when you see a Green Square above and a Green Circle Below, hold on to the trade as long as the Green circle below does not turn into a Red Circle. It means the Weekly trend is Bullish and Daily trend may change more frequently, but you may hold on to your position unless and until the weekly Trend changes.
Also if may help to Book your profits in a timely manner, lets say you are in a long trade and you keep seeing Green Square at the top of the candle, the moment you see a Gray or a red Square at the top you may exit your long position. Obviously trader needs to use his brains to enter a position at right location on the chart and ride that position using this indicator.
I hope everyone would find this simple indicator very useful.
Regards
Rahul Desai
@Artharjan
Pinescript Risk Reward boxes + Custom 'Time Elapsed' MarkersUsing Pinescript to create custom Risk Reward Ratio (RRR) boxes with custom vertical time markers to help traders stay mindful of how long they've been in a trade.
//Usage:
-Add indicator to chart and you'll be prompted to click three times:
-- 1: Choose time (clicking last bar will mark entry as current candle's open).
-- 2: Click BOX TOP of RRR box on chart (long or short is toggled later).
-- 3: Click BOX BOTTOM of RRR box on chart (long or short is toggled later).
- then toggle Long or short in the dialog box.
-toggle on/off vertical time line markers (as reminder of how long you've been sat in your trade).
-User input choice of time line marker spacings (in minutes).
//Notes:
-Percentage reward and percentage risk are displayed in each of the risk reward boxes. Risk-Reward ratio is also displayed in the upper box.
-Bars to extend the RRR box to the right is also a custom user input.
-Note the 'entry' of the trade will always be the open of the candle you click on (the first click on loading the indicator).
-You can drag the vertical entry time and the horizontal box-top and box-bottom times dynamically, as you like, as trade progresses.
//Use-Case:
-I wanted a RRR box which gave me custom vertical time markers to keep me mindful of overstaying my welcome in a trade that likely was running out of steam and wasn't likely to go my way. Forcing me to stay nimble. I have found in daytrading that if a trade doesn't go your way promptly, it's often not a good one to hold.
RGB Color Codes Chart█ OVERVIEW
This indicator is an educational indicator to make pine coders easier to input color code.
Color code displayed either in hex or rgb code or both.
█ INSPIRATIONS
RGB Color Codes Chart
Table Color For Pairing Black And White
█ FEATURES
Hover table cell to see all properties of color such as Hex code and RGB code via tooltip.
Cell can be show either Full, HEX, RGB, R, G, B or na.
█ LIMITATION
This code does not consider usage of color.new()
█ CONSIDERATION
Code consideration to be used such as color.r(), color.g(), color.b() and color.rgb()
█ EXAMPLE OF USAGE / EXPLAINATION
ICT Session Opening FVG / Silver Bullet [MK]Students of ICT concepts will know that the first FVG found within particular session periods can identify an important price level for intraday traders.
"Find the first FVG at the start of the session and drag a box from it to the right"....ICT
The script finds the first FVG (either bull or bear) within the following periods:
London Killzone (0200 - 0500) EST
02:00 - 0259
03:00 - 0359
0400 - 0459
Dead Zone (05-00 - 0600) EST
05-00 - 0559
0600 - 0659
NY AM Killzone (0700 - 1100) EST
0700 - 0759
0830 - 0929
0929 - 0959
1000 - 1100 (Silver Bullet)
A chart higher timeframe can be chosen to detect the FVGs and they will be displayed on lower timeframe. Default is 5min for detection. I like to then following price reacting to 5mi FVGs on a 1 min chart.
FVG boxes can be extended to the end of the session, or to any time within the current days trading hours. Colors/Labels/ Session Periods can all be edited. A maximum timeframe for display is available and
timezone can be adjusted.
FVGs are only shown for the current days trading hours.
Break even stop loss (% of instrument price)Simply proof of concept to place a stop loss a percentage below entry price and move it to break even if the price moves the same percentage above the entre price.