[co.n.g.] ADR 5/10/14/20Average Daily Range (ADR) over 5/10/14/20 Days
What it is
One of the oldest measurements of price volatility that is being used in technical and statistical trading is the range of a specific period of past days to estimate probability of chances, risk and price movements, as seen f.e. in
Molodovsky, N. (1967). Building a Stock Market Measure—A Case Study. Financial Analysts Journal, 23:3, 43-46 , DOI: 10.2469/faj.v23.n3.43.
Problem
After having tried all available community scripts I've encountered various indifferences, especially since Pine v5.
First, the anchor period changed, when I've switched between regular and extended trading hours.
- This meant, that the anchor switched between the official open of the day and the first bar of a new day beginnig at 00:00 UTC (or the corresponding timezone).
Second, thus in some scripts also changed the calculated average range, including or excluding pre market and after hours.
And therefor third, in many cases the distance between open and ADR high/low was indiffferent, putting one closer and the other further away.
Why is that?
After having tried seven different modes of calulation - from ta. to array, it appeared that especially since Pine v5 the calulation is lagging when calling
the request.security function and is thus rendering the calculations indifferent.
Especially the open is lagging and plotting delayed, about 15 minutes on a M1-chart or about 45 minutes on a M15 chart, which made id difficult to spot open (test) drives
- as f.e. described in Dalton, J. F., Jones, E. T., & Dalton, R. B. (1990). Mind over markets: power trading with market generated information. 1st edition . Probus. -
and estimating extremely strong or weak open moves.
While switching between regular and extended intraday charts, the open was either calculated on the open as request of "D" (open of the regular session)
and "1440" (which means full intraday since 00:00 UTC or the corresponding timezone), leading to undesired anchoring.
After having tried about five different anchoring periods and comparing the adr to @TradingView 's stock screener, there was no proper calulation or plotting possible,
if not partially hardcoded (being the least desired, elegant or flexible method).
Visualizing the problem
As described in the picture:
@sherwind 's ADR is plotting entirely wrong! I couldn't even figure out (even the source is available) whre the problem is rooted.
@treypeng 's ADR is anchored properly, but unfortunately the calculation is wrong.
Originality
As evident in the attached picture - and you are able to compare this to @TradingView 's stock screener - in this script as well the ADR is calculated PROPERLY
as well as the anchoring is set PROPERLY within the first tick of the session.
As matter of fact, you don't have to examine different timeframes, charts or sessions simoultaneously to see the correct levels and
you're able to ease observations and focus on your trading.
Innovation
There is no innovative approach, as described above, simply because this statistical approach is around since the 1960's.
Considering coding, neither is, but it is properly calculated and anchored.
What this script does
Anchoring at the first tick of the new New York session
Plotting the actual - not the past nor future - average day range (gray lines in picture)
Plotting the actual - not the past nor future - 75% average day range ( silver lines in picture)
Vizualising ADR breakouts by colouring the backround green (long breakout) or read (short breakout)
Selection methods
Keeping it simple stupid, as of now:
Abiliy to chose between 5/10/14/20 days
Additional
Theory says, that we are staying within the ADR of 75% every day.
_
Alas, there are some exceptions.
If price is breaking out of the ADR, we are likely to move in this direction for the rest of the day.
If price has broken out of the ADR on the previous day, ist highly unlikely to expect another ADR breakout day,
which doesn't mean that there might not appear a strong or weak second day.
Notes
Designed for intraday stock trading of the U.S. market.
Best (and easiest) chances are to be spotted in special conditions.
//Cheers,
//Constantine
Trend
Volume Weighted Average Price STHello everyone.
I am using vwap standard deviation to find trades.
Above standard deviation 1 is buy
Below standard deviation -1 is sell
Price crossunder of vwap after Buy signal is exit for long trade
Price crossover of vwap after Sell signal is exit for short trade
You can set target points(optional)
You can limit number of trades every day.
Background color changes to gray when today range matches to ATR(14) or you can enable label to see the value at last bar
Contact me for more details if you have any queries.
Unified Composite Index [UCI] [KuraiBlu] [LazyBear]The purpose of this indicator is to combine the four basic types of indicators (Trend, Volatility, Momentum and Volume) to create a singular, composite index in order to provide a more holistic means of observing potential changes within the market, known as the Unified Composite Index . The indicators used in this index are as follows:
Trend - Trend Composite Index
Volatility - Bollinger Bands %b
Momentum - Relative Strength Index
Volume - Money Flow Index
The average price source can’t be altered as I’ve made it an average between ((open + close) / 2) and ((high + low) / 2).
The best way to use this is by observing several of the indicators at once in conjunction with the average, rather than simply using the average produced to determine the right moment to enter, or exit a trade by itself. I've found when one indicator goes way out of bounds relative to the other three (and subsequently, the average array), then it presents a good buying, or selling opportunity.
Some adjustments were made to several of the indicators in order to standardize them on a scale of 1-100 so that they could better accommodate the average array that was finally produced. Thanks to LazyBear for letting me strip down the WaveTrend Oscillator.
Bayesian BBSMA + nQQE Oscillator + Bank funds (whales detector)Three trend indicators in one. Fork of Gunslinger2005 indicator, with a fix to display the nQQE oscillator correctly and clearly, and converted to pinescript v5 (allowing to set a different timeframe and gaps).
How to use: Essentially, nQQE is a long term trend indicator which is more adequate in daily or weekly timeframe to indicate the current market cycle. Banker Fund seems better suited to indicate current local trend, although it is sensitive to relief rallies. Bayesian BBSMA is an awesome tool to visualize the buildup in bullish/bearish sentiment, and when it is more likely to get released, however it is unreliable, so it needs to be combined with other indicators.
Please show the original indicators some love:
Bayesian BBSMA:
nQQE:
L3 Banker Fund Flow Trend:
Originally mixed together by Gunslinger2005:
WilliamTrendFollowerWith this indicator, we try to catch the trends in price. With continued use of this indicator, we expect it to eventually escape horizontal positions and catch up with continuous trends.
Combined with the WilliamsR indicator and the exponential moving average indicator.
The WilliamsR Fisher Transforms are combined with the ATR indicator to create a line that lags behind the moving average value.
Since it is a tracking indicator, we created a line that is more connected to the price and itself.
In this way, a curve close to the price line is obtained in uptrends and downtrends.
In this indicator, if you choose the parameters correctly, you can easily bypass the horizontal positions. This gives you a safe visualization of support and resistance points as well.
With this tracker, you can generate Buy and Sell signals and you can see them on the chart.
From the settings of these indicators, you can set the multiplier and the exponential moving average period.
It works in all time intervals.
But it was calculated without volume , instead it was created using fisher transforms, moving averages, and the average true range .
You can set an alarm for Buy and Sell orders.
You can see the processing entry and exit areas in a straight line.
The Fisher Transform indicator is an oscillator that helps identify trend reversals and can be applied to any financial instrument. J.F. Created by Ehlers
Linear Average PriceWhat is "Linear Average Price"?
"Linear Average Price" is both a trend and an overbought oversold indicator .
What it does?
it creates a trendline and trading zones.
How it does it?
To create the trend line, it averages the difference between each data and chooses it as the slope of the line it creates. then it positions this line so that it passes right through the middle of the data at hand. It uses standard deviation to create trading zones.
How to use it?
It can be used both to have an idea about the trend direction and to determine buy-sell zones. You can choose how many candles the indicator will calculate from the "lenght" section. The "range" part is the coefficient of the standard deviation and can be used to expand or collapse zones.
Trend Dominance Multi Timeframe [Misu]█ This indicator shows the repartition of bullish and bearish trends over a certain period in multiple timeframes. It's also showing the trending direction at the time.
█ Usages:
Trend dominance is expressed with two percentages: left is downtrend and right is uptrend. Cell colors turn green if dominance is up and red if it is down.
Knowing the trend dominance allows you to have a better overview of the market conditions.
You can use it to your advantage to favor long or short trades, reversal or breakout strategies, etc.
█ Features:
> Table colors
> Instant Trend Multitimeframe
> Trend Dominance Multitimeframe
█ Parameters:
> Length: Length is used to calculate ATR.
> Atr Multiplier: A factor used to balance the impact of the ATR on the Trend Bands calculation.
> UI Settings
Muti EMAVẽ 5 Đường EMA , chỉ số mặc định tương đường với dãy số Fibonanci (ngoại trừ đườn EMA200), giúp cho những tài khoản free có thể sử dụng hơn 3 chỉ báo BINANCE:NEARUSDT
Performance Tablethis scrip is modified of Performance Table () of TradingView user @BeeHolder = Thank u very much.
-
@BeeHolder formula is based on daily basis,
but my calculation is based on respective day, week and month.
-
The formula of the calculation is (Current Close - Previous Close) * 100 / Previous Close, where Past value is:
1D = close 1 day before
5D = close 5 day before
1W - close 1 week before
4W = close 4 week before
1M - close 1 month before
3M - close 3 month before
6M - close 6 month before
12M - close 12 month before
52W - close 52 week before
Also table position cane be set.
thank you all
-
Golden SlopeGolden Slope is an ATR based trend tool that mixes KNN machine learning to allow you to confirm your entry and exits, which can give out significantly more accurate signals.
Flag and rectangle signals are machine learning signals, they confirm an entry and exit position. You can use entry and exit signals alone but it's more accurate to confirm with machine learning signals. The idea is to either see a machine learning signal first and confirm it by Golden Slope entry or the other way around.
PS. Watch out if candle starts hitting the golden belly (or the yellow area after an entry signal is given because it can indicate a reversal before machine learning or the golden slope itself catch it, but these events happen rarely.
Trend Hunter v4This strategy follows the Trend Hunter training strategy taught at InvestIshare.
Entries are made based predominantly on the price action being above/below the Ichimoku Cloud with the ATR based super trend being used as a trailing stop loss.
Additional trend tracking tools can be toggled on / off to improve the wind rate on some time frames, with additional options available to limit entries if certain conditions are met.
If you would like access to this indicator, send me a DM on the Investishare Discord in the Trend Hunters channel.
The default parameters are set for BTC on the 2 HR time frame
[fpemehd] SSL Baseline StrategyHello Guys! Nice to meet you all!
This is my third script!
This Logic is trend following logic, This detects long & short trends based on SSL Hybrid Baseline.
This fits to the longer time frame like 4hr and 1d.
### Long Condition
1. close > SSL Hybrid baseline upper k
- Baseline is the ma of close price. (You can choose ma type and length)
- Upper k is the upper Keltner Channel.
### Short Condition
1. close < SSL Hybrid baseline lower k
- Baseline is the ma of close price. (You can choose ma type and length)
- Lower k is the lower Keltner Channel.
### Etc
1. Added Stoploss based on highest high or lowest low with lookback.
2. Strategy Template is based on @kevinmck100 template. Thank you!
Ultimate Moving Average Strategy CreatorHave you ever wanted to create your OWN strategy, but don't have coding experience? Well now you can.
With simple settings, but millions of potential strategies and combinations, this indicator / strategy lets YOU make ALL the rules.
Start by choosing up to 4 moving averages from all the various types - Simple, Exponential, Hull, Volume-Weighted, etc. Choose the period and choose price source.
Now the fun part.
You select your values to compare and how to compare them. Want to test if the Fast Moving Average crosses over the Slow Moving Average? No problem. Want to add an additional test to check the closing price is greater than the Fast Moving Average? Done.
With additonal options to set take profit % and stop loss %, as well as a date range and the option for 'Long Only' positions, you can instantly see the results of any strategy in the strategy tester, then simply make an adjustment and refine the criteria without having to know or understand any of the complex coding and scripting.
I have tried many popular moving average strategies, but irrespective of the results, the thing that stood out to me was how inflexible they were. If it was designed to test a triple crossover, that's all it could do. With this indicator, literally anything is possible and modifying the parameters couldn't be easier.
Symbols at Highs & LowsFor the chosen symbols (Defaults to XLV, XLF, IWM, QQQ), this displays a table that indicates (by color) if each symbol is at the high or low of day. When used with the main indexes, If all symbols are at highs or lows together, this can be a great indicator that a trend day is occurring in the market. You can customize the indicator to use up to 8 symbols of your choice. You can also customize the appearance so that it only displays an "All symbols are at the Lows/Highs" message. Finally, you can customize the % threshold to use when measuring how close to the high/low of day price needs to be in order to be considered "at high/low of day".
Dynamically Adjusting EMA Crossing
The Exponential Moving Average is the most commonly used indicator in every market. but no one can predict which pair of exponential moving average crossing will work best together. Every instrument require different EMAs crossing. It can be 2 EMA crossings or 3 EMA crossings.
Dynamically Adjusting EMA crossing tries to solve this issue. Algorithm finds the optimal EMA crossing setting for every instrument across all timeframes based on the EMA lengths provided in the settings. It evaluates the most profitable crossing combination for each instrument. The logic backtests the different combinations of EMA crossing based on the EMA lengths provided in the indicator's settings.
There are 3 EMA options in the settings Fact, Slow and Long. Indicator's Settings have the option to choose 2 EMA crossings or 3 EMA crossings.
Default Settings
Fast : 5 to 10
Slow : 13 to 19
Long : 20 to 60
Please do keep in mind that the performance of the indicator reduces as we increase the default settings range.
Please contact me for access
Wavetrend DivergencesCreated for the MarketCipher Community and friends :)
This indicator is partly based on Wavetrend Oscillator by LazyBear / blue momentum waves on MarketCipher B.
The Wavetrend indicator is a combination of 2 oscillator lines that signals the short term direction of the price once the lines cross. The Wavetrend indicator is useful but only once a divergence has been identified based on the crosses and the price which is what this strategy partly uses to open trades. This indicator signals divergences in the wavetrend, both regular and hidden divergences.
This indicator utilizes support and resistances to make sure that the indicator only signals high probability winning divergences. Supports represents a low level a stock price reaches over time, while resistance represents a high level a stock price reaches over time. Support materializes when a stock price drops to a level that prompts traders to buy. This reactionary buying causes a stock price to stop dropping and start rising and this is where the indicator will be looking for a divergence at a price point of your choosing.
To make it easier i have added a support and resistance drawing indicator that will help you find price points on the chart that the price is likely to get a reaction from. There are right now only 4 support or resistances that can be drawn at one time so make sure to update the levels as the market changes.
I have helped update and modify from the original script. Here it is:
On top of these indicators i have added my own indicator that will signal a short term trend reversal that is based on pivot points and moving averages. This will usually signal reversals earlier than divergences and is very effective when following the trend and using support and resistances and can be used as an extra confirmation that there will be a reaction from the support or resistance and that the divergence will play out like you want it to. These trend reversal dots can also be used to take profit.
Trade setup example:
As seen in the picture below price comes down to a previously drawn support line, then there is a trend reversal dot that signal a potential reversal and finally a divergence is signalled once there is a clear reaction to the support. When all these signals come together there is a high probability that the trade will end up in profit. To take profit in this trade setup you can use the trend reversal dots, the drawn resistances or your own intuition and technical analysis with Marketcipher B and DBSI. A stop loss in this trade setup could be at the swing low, below the blue or teal line.
There are alerts for everything so that you wont miss a trade setup. Hope you like it :)
I have some ideas on how to improve the indicator so there will be updates in the future.
Strategy Myth-Busting #8 - TrendSurfers+TrendOsc - [MYN]This is part of a new series we are calling "Strategy Myth-Busting" where we take open public manual trading strategies and automate them. The goal is to not only validate the authenticity of the claims but to provide an automated version for traders who wish to trade autonomously.
Our 8th one is an automated version of the " 653% Gain Magical 1 Minute Scalping Strategy Tested 100 Times | Become Consistently Huge Profit " strategy from " Fxaccurate US " who claims to have achieved 653% profit scalping GOLD on the 5 minute timeframe. As you can see from the backtest results below, I was unable to substantiate anything close to that that claim on any timeframe or symbol. Myth 10000% busted.
If you know of or have a strategy you want to see myth-busted or just have an idea for one, please feel free to message me.
This strategy uses a combination of 2 open-source public indicators:
Trend Surfers - Premium Breakout + Alerts by TrendSurfersSignals
Mawreez' Trend Oscillator Indicator by Mawreez
Trading Rules:
1 min - 15 min candles
Stop loss middle between high and low Risk 1:2
Long Condition
Trend Surfers Trailing stop line goes below (Crosses) lowest low
Bullish Candle (red)
Mawreeze Trend Oscilator Indicator is green
Short Condition
Trend Surfers Trailing stop line goes above (Crosses) highest high
Bearish Candle (red)
Mawreeze Trend Oscilator Indicator is red
Trend ExplosionThis script features a combination of trend indicators. Upon backtesting various indicators and how price action reacts to past signals, I discovered that using a combination of conditions would allow for a simple, easy-to-use, yet (in my opinion) accurate representation of current market sentiment. I typically use this on the 5/15 minute charts as I reference higher timeframe conditions. If you would like to trade the 1 hour and above timeframes, you would have to manually adjust the timeframe you want under "Resolution". Another thing to note is that this script provides a REFERENCE for trends. It does not provide entry and exit signals and you would have to discretionarily determine those yourself.
Long sentiment = Green triangles below the bar
Short sentiment = Fuchsia triangles above the bar
Due to a large amount of effort and time taken into creating this script, I have decided to protect the source code. If you do have any suggestions, you can feel free to drop me a DM.
Trend BandsThis script is, yet again, another mean reversion indicator. When the trend index touches the upper / lower bands, there seems to be a decent probability that the market might reverse at that area. However, I do emphasise on exercising caution when trading against the current wave of the market as there are instances where the trend index extends past the upper / lower bands for a prolonged period of time. However, in a non-trending semi-consolidated market, this script seems to do quite well for itself. Enjoy!
MA Simple Strategy with SL & TP & ATR FiltersHello Guys! Nice to meet you all!
This is my second script!
This Logic is trend following logic, This detects long & short trends by comparing the value of MAs.
This fits to the longer time frame.
### Long Condition
1. Compare 4 MAs (you can chose MA Type)
- Shortest MA (MA 1)
- Shorter MA (MA 2)
- Normal MA (MA 3)
- Longer MA (MA 4)
2. If MA 1 > MA 2 > MA 3 > MA 4, then Enter Long Position
- ‘The arrangement of MAs in descending orders’ is the proxy of the long trend.
### Short Condition
1. Compare 4 MAs (you can chose MA Type)
- Shortest MA (MA 1)
- Shorter MA (MA 2)
- Normal MA (MA 3)
- Longer MA (MA 4)
2. If MA 1 < MA 2 < MA 3 < MA 4, then Enter Short Position
- ‘The arrangement of MAs in ascending orders’ is the proxy of the short trend.
### Close Condition
1. When trend Changes
- When (MA 1 > MA 2 > MA 3 > MA 4) breaks or (MA 1 < MA 2 < MA 3 < MA 4) breaks.
2. When the price hits the stoploss
3. When the price hits the take profit level (basically 50% of qty will be closed)
### Etc
1. Trend filter (ATR should be bigger than SMA of ATR)
- If the volatility of price is to small (ATR), then there could be false signal. To filter this out, I used the condition ‘ATR should be larger than SMA of ATR’.
2. Stoploss
- Enabled Stoploss based on ATR, Percent, Risk-Reward Ratio,
- Enabled Trailing Stoploss.
3. Choose MA Type
- You can choose MA Type
+ Thanks for the stoploss template @jason5480
Modified Color Relative Strength IndexThis indicator is old normal RSI, but I have Modified its Color, to make trade able to investigate the trend easier
This indicator uses the concept of:
- RSI Relative Strength Index
- and Many Different MA (For example EMA SMA RMA LSMA WMA etc.)
There are 2 line displays in this indicator
1) Normal RSI line, Default is set as White color
2) MA line which calculates from RSI, a trader can choose the model to calculate RSIMA in setting
How Modified Color Relative Strength Index work?
We use RSI as we normally use, but the RSIMA is a little different in this Indicator
I use the idea that if RSI is over RSIMA, the Trend seems to be Uptrend which will display as a Green color filled. Same as if RSI is lower than RSI MA that trend seems to be a Down Trend.
With this idea, we can identify the trend of the chart but we still don't know whether the trend is strong or not, to satisfy this problem the change rate of RSIMA came into its role.
Now let me reviewing you some of my 5-grade math ideas:
Remember how to calculate the Average value? that's right we sum all of the values and divide it all by the amount of the number
for example, we want to calculate the average value of 1 2 3 4 5 so it should be (1+2+3+4+5)/5 which is the amount of number and then we get the average value of 1 2 3 4 5 = 3
now apply that concept to the change in RSIMA value
There will be 3 stages of the color displayed in RSIMA
1) Green will be displayed if the rate of change or RSIMA is over X time average rate of change of this RSIMA while trader and change X in the setting (Positive value)
2) Red will be displayed if the rate of change or RSIMA is over X time average rate of change of this RSIMA while trader and change X in the setting (Negative value)
3) Light Blue and Orange (Gray) will be displayed if the rate of change or RSIMA is not over X time average rate of change of this RSIMA while trader and change X in the setting if the recently is red the RSIMA line will be orange while it is green, RSIMA will be color in Light Blue
Green and Red can be a help to confirm, how strong the trend is. While Light blue and Orange mean there is a small amount of change so traders should be prepared to Buy/Sell
Use of Modified Color Relative Strength Index
When the area between RSI and RSIMA is Green and RSIMA is colored in Green, That is a Strong Uptrend
Same a Strong Down Trend, area between RSI and RSIMA need to be RED and RSIMA colored in red too,
other than this is considered as a sideway Trend or weak Trend
Apply RSI with other Indicator
- You can use any indicator that can help you enter the trade easier with it
- I personally use it with MACD, BB Band, and UT Bot Alerts
Bollinger BandsThis strategy is inspired from Power of Stock aka Subhasish Panni.
Target is minimum 1:3 when you get this setup right.
Buy when:
1) Low is greater than upper band of BB and next candle breaks high of that candle, SL is Low of previous candle which is has low above upper band.
2) High is lower than lower band of BB and next candle breaks high of that candle, SL is low of previous candle which has high lower than lower band.
Sell when:
1) Low is greater than upper band of BB and next candle breaks low of that candle, SL is high of previous candle which is has low above upper band.
2) High is lower than lower band of BB and next candle breaks high of that candle, SL is high of previous candle which has high lower than lower band.
Disclaimer: this setup will cause many small stoploss hit, you have to accept that loss but you will be profitable because of R:R.
Tradesharpe Session BiasThis script is designed for traders who want help defining their session bias it is for people who trade in sessions which will most likely be 1 4h candle. The way I trade using Price action to get my daily bias, to either look for sells or buys or both I look at the previous daily candle close and previous 4hr candle close before analyzing the structure on the lower time frames to get my session bias of bullish/bearish. so this indicator compares the daily and 4hr candles to develop a bias for example
previous daily bullish + Previous 4hr Bullish = BULLISH BIAS
previous daily Bearish + Previous 4hr Bearish = BEARISH BIAS
if Daily bullish 4hr bearish = MIXED SESSION
if daily bearish 4hr bullish = MIXED SESSION
MIXED SESSION = Can argue both buys and sells
BEARISH SESSION = Best to look for Sells only based on my trading style
BULLISH SESSION = Best to look for Buys only based on my trading style