TF Segmented Linear RegressionFit a line at successive intervals, where the interval period is determined by a user-selected time frame, this allows the user to have an estimate of the intrinsic trend within various intervals.
Settings
Timeframe : Determine the period of the interval, if the timeframe is weekly then a new line will be fit at the start each weeks, by default "Daily"
Mult : Multiplication factor for the RMSE, determine the distance between the upper and lower extremities
Src : Input data for the indicator
Plot Extremities : Logical value, if true then the extremities of the channel are plotted, if false only the midline is plotted, true by default.
Usage
The timeframe setting should be higher than the current chart timeframe, note however that too large values of timeframe might return an error. Since the maximum number of lines that can be plotted is 54, using the extremities will only return 18 channels.
The indicator can be compared to the "regression trend" drawing tool
Main tf = 5 min with the indicator using a daily timeframe, the filled area is produced by the regression trend drawing tool using the same interval as the indicator, and coincide with it.
Main tf = 15 min with the indicator using a weekly timeframe, wider channel indicate that the values tend to be farther away from the fitted line.
A line with a significant slope indicates a strong trend, in that case, the width of the channel is determined by the amplitude of the retracements in the trend, with a narrower channel indicating a cleaner trend.
When the fitted line has a low slope value and the channel is wide, it means that there were two or more variations of opposite directions with large amplitudes within the interval, this also indicates that a linear model is not appropriate.
A slope approximately equal to 0 with a low channel width indicates a trendless market with cyclical variations of low amplitude in it.
Refrences
Determining the starting and ending points of the fitted line was done using a linear combination between the wma and sma
The wma and sma functions both use a series as period by making use of the Wma and Sum functions in the following script
在腳本中搜尋"weekly"
Multi-Timeframe Pivot PointsThis is a MTF pivot point indicator. I was unhappy with the standard pivot point indicator in Trading View as I wanted to be aware of how price was interacting with pivot points on a higher timeframe. For example, if I'm on the 1H time frame looking at daily pivots, I want to be sure that my trading plan to move between these pivots does not contradict what price is trying to do in relation to the weekly pivots. In addition, sometimes daily and weekly pivots will align increasing probability of a bounce
Ultimately its about trying to automate as much as possible to quickly have an awareness of what might be happening on the timeframe above without having to manual enter levels.
I concluded I don't like the results of this script - whilst i clearly see price interacting with pivots on the current timeframe and higher timeframes there is too much screen clutter on the screen for me.
Rather than delete the script I thought I'd make it available for other people to use. I hope its useful to people. Good luck
(For the record it actually takes a little thinking outside the box to make so many pivots display - you can't just plot hlines. If your a pinescript geek you might like the code)
Strategija 3This one is the combination of BBsqueeze, ADX and EMA's.
On Weekly TF we wait for the BBsqueeze signal to fire. We also check if the ADX is above 20 so we know that we are in a trend. If in a window of less than 10 weekly bars (default setting) we gewt a pullback to the active 21 EMA and the bounce is significant, we get the entry arrow. Conversely for shorts.
Please use it, edit and comment if you like (or dislike) it.
Stay safe
DT-OscillatorThis is Robert C. Miner's DT Oscillator, a version of the Stochastics & RSI.
See his book, High Probability Trading Strategies
There are four possible parameter combinations for this indicator:
8,5,3,3 Monthly,Weekly,Daily
13,8,5,5 Weekly,Daily,H4
21,13,8,8 Daily,H4,H1
34,21,13,13 H4,H1,M15
Volatitity Bands (STARC) on RSI for reversal warning [beta]Origin : The Indicator uses STARC volatilty bands created by Manning Stoller, based on ATR.
He perfered them to Bollinger because extreme price action never exceeds them.
Her former scholar and now TA Superstar Constance Brown applied them on RSI for getting
very relavant trend reversals. (She only used them in times when "overbought or not" becomes a severe question.
What it does: It delivers a reversal signal after rsi exceeded the bands and - as the bands resume the trend - the rsi fails to test the band once more. This is the moment of a reversal warning.
How to work wit h:
- Take the index of your interest and choose a time horizon one or two scales higher than your usual working horizon .(i.e if you work on Daily choose weekly).
-Scale the upper and the lower band via settings, so that the rsi only in rare cases exceeds or touches the bands. This is to tweak the reversal threshold. (For weekly SPX i am fine with 2.2 and 2.1)
- Find the arrows that mark possible reversals.
- Ready
Note: I called this a beta because i publish it with nearly no practical experience with it , just checked the formal correctness of the code. (Published so fast because it was written during the coronavirus days, for which to handle it might be helpful. )So feedback very welcome.
I took the formula in slight modification from the book "Technical Analysis for the Trading Professional", 2nd edition, by Constance Brown.
"Fun" Note: As you see the script would have warned before the corona selling - if you had used it.
I didn't because bull flags and all predicted nice weather...
Greets and again feedback welcome
yoxxx
Best Volatility CalculatorHello traders,
This indicator shows the average volatility, of last N Periods, for the selected time frames.
You can select up to 2 timeframes with this version
Volatility is defined as the close of current candle - close of the previous N candle
Presented as Currency, Pip, percentage labels in a panel below.
Will calculate in real-time only for the current instrument on the chart.
The indicator is coded to not be repainting
Example
In the indicator screenshot, I used a lookback period of 1.
That compares the current candle close versus the previous one for the daily and weekly timeframe
Showing how the results are calculated for the weekly calculations
Enjoy :)
Best regards
Dave
SMS Indicator [Nicholas Merten]SMS is the acronym for the combination of the three prominent indicators; the squeeze momentum, MACD and Stochastic RSI indicator. It aggregates all of three lagging indicators to derive the trend of an underlying instrument. The script outcome works best when applied on weekly, standard charts (i.e. candles stick charts).
In general terms, these are the rules that define the indicator. But bear in mind, there are other miscellaneous factors that can determine the SMS indicator. (Feel free to review the pine code if you'd like):
"If the squeeze momentum is setting a higher weekly candle, add a point"
"If the MACD is closing its divergence from a descending movement, add a point"
"If the MACD crosses to the upside, add a point"
"If the blue line crosses the orange at the bottom of the Stochastic RSI , add one point"
"If the two lines have entered the purple channel from the bottom of the Stochastic RSI , add one point"
If the score is 3/5 or more, the indicator is flashing a bullish signal . If it's 2/5 or below, the indicator is flashing a bearish signal.
You can easily create an alert to trigger when there's a 3/5 point cross or a cross below 2/5, gearing up for a potential reversal in trend.
Finally, don't just trade on this indicator alone. This indicator is not meant to be used alone, rather, it can be a useful guide to understand the generic trend of an instrument by merging together a lot of leading indicators.
RSI Oversold/Overbought IndicatorThis is a very simple but quite powerful indicator which looks at the RSI simultaneously over the 4h, Daily and Weekly timeframes, and places bands on the chart when one or more timeframes move into oversold/overbought territory. For further filtering I use the 200 day SMA to determine if we are in a Bull or Bear market, which puts a bias on the RSI (30/80 in a Bull market and 20/70 in a Bear market).
The deeper the colour, the more oversold the market is. The weekly RSI can be used as an early warning sign, with the Daily/ 4h RSI useful to identify local peaks.
CSA 5-Step Moving Average8-09-2019
The CSA 5-Step Moving Average plots the Daily, Weekly and Monthly simple moving average in 1 indicator.
The indicator works for the following Time frames:
5 min
10 min
15 min
30 min
60 min
120 min
240 min
If you select any other time frame, noting will be plotted.
When selecting the 5 min time frame, the Monthly moving average will not be plotted.
Colors:
Daily = White
Weekly = Yellow
Monthly = red
Dollar Cost Average (Data Window Edition)Hi everyone
Hope you had a nice weekend and you're all excited for the week to come. At least I am (thanks to a few coffee but that still counts !!!)
This indicator is inspired from Dollar-Cost-Average-Cost-Basis
EDUCATIONAL POST
The educational post is coming a bit later this afternoon explaining how to use the indicator so I would advise to follow me so that you'll get updated in real-time :) (shameless self-advertising)
1 - What is Dollar-Cost Averaging (DCA)?
Dollar-Cost Averaging is a strategy that allows an investor to buy the same dollar amount of an investment on regular intervals. The purchases occur regardless of the asset's price.
I hope you're hungry because that one is a biggie and gave me a few headaches. Happy that it's getting out of my way finally and I can offer it
This indicator will analyse for the defined date range, how a dollar cost average (DCA) method would have performed vs investing all the hard earnt money at the beginning
2- What's on the menu today ?
Please check this screenshot to understand what you're supposed to see : CLICK ME I'M A SCREENSHOT (I'll repeat this URL one more time below as I noticed some don't read the information on my description and then will come pinging me saying "sir me no understand your indicator, itz buggy sir"
(yes I finally thought about a way to share screenshots on TradingView, took me 4 weeks, I'm slow to understand things apparently)
My indicator works with all asset classes and with the daily/weekly/monthly timeframes
As always, let's review quickly the different fields so that you'll understand how to use it (and I won't get spammed with questions in DM ^^)
- Use current resolution : if checked will use the resolution of the chart
- Timeframe used for DCA : different timeframe to be used if Use current resolution is unchecked
- Amount invested in your local currency : The amount in Fiat money that will be invested at each period selected above
- Starting Date
- Ending Date
- Select a candle level for the desired timeframe : If you want to use the open or close of the selected period above. Might make a diffence when the timeframe is weekly or monthly
3 - Specifications used
I got the idea from this website dcabtc.com and the result shown by this website and my indicator are very interesting in general and for your own trading
The formula used for the DCA calculation is that one : Investopedia Dollar Cost Average
4 - How to interpret the results
"But sir which results ??"...... those ones : CLICK ME I'M A SCREENSHOT :) (strike #2 with the screenshot)
It will draw all the plots and will give you some nice data to analyze in the Data Window section of TradingView
I'm not completely satisfied with the tool yet but the results are very closed to the dcabtc website mentioned above
If you're trading a very bullish asset class (who said crypto ?), it's very interesting to see what a DCA strategy could bring in term of performance. But DCA is not magic, there is a time component which is the day/week/month you'll start to invest (those who invested in crypto beginning of 2018 in altcoins know what I'm talking about and ..............will hate me for this joke)
5 - What's next ?
As said, the educational post is coming next but not only.
Will probably post a strategy tomorrow using this indicator so that you can compare what's performing best between your trading and a dollar cost average method
I'll publish as a protected source this time a more advanced version of that one including DCA forecasts
6 - Suggested alternative (but I'll you doing it)
If you don't want to have this panel in the bottom with the plots and analyze the results in the data window, you can always create an infopanel like shown here Risk-Reward-InfoPanel/ and display all the data there
Hope you'll like it, like me, love it, love me, tip me :)
____________________________________________________________
Feel free to hit the thumbs up as it shows me that I'm not doing this for nothing and will motivate to deliver more quality content in the future. (Meaning... a few likes only = no indicators = Dave enjoying the beach)
- I'm an offically approved PineEditor/LUA/MT4 approved mentor on codementor. You can request a coaching with me if you want and I'll teach you how to build kick-ass indicators and strategies
Jump on a 1 to 1 coaching with me
- You can also hire for a custom dev of your indicator/strategy/bot/chrome extension/python
CME Gap Finder - BitcoinOnly for Bitcoin!
This indicator locates weekly gaps created by the CME Futures market for Bitcoin.
As you can see, Bitcoin tends to close the weekly gaps created in the futures market so I thought this could be a very useful tool.
Instead of having to look between multiple charts, this simply overlays the past weeks open and close should a gap appear.
I hope you find this indicator useful!
Cheers!
Long Term Levels (4h, D, W, M, Q, & Y)This shows and labels the highs and lows from the previous 4h, daily, weekly, monthly, quarterly and yearly session. By default it only shows weekly, monthly and yearly. It also has an option to use small labels (M vs Monthly High) to save your eyeballs. You may need to adjust your charts right hand margin to see them properly.
Everything is shown in very tasteful shades of blue. For a faster loading version of this check my other indicators.
ATR based Pivots mcbwHey everyone this is an exciting new script I have prepared for you.
I was reading an old forex bulletin article some time ago when I came across this: solar.murty.net (or you can download the full bulletin with lots of other good articles here: www.forexfactory.com).
You can already buy this for metatrader (www.mql5.com) so I figured to make it for free for tradingview.
This bulletin suggested that you can reasonably predict daily volatility by adding or subtracting multiples of the daily ATR to the daily opening. Using this you can choose multiples to use as price targets and alternatively as stop losses. For example, if you already have a sense of market direction you can buy at market open place a stop loss at - 1 daily ATR and a profit target at + 3 ATRs for a risk to reward ratio of 3. If you are looking for smaller/quicker moves with a ratio of 3 you can have a stop loss at -0.25 ATR and a take profit at +0.75 ATR.
Alternatively this article also suggests to use this method to catch volatility breakouts. If price is higher than the + 1 ATR area then you can safely assume it will be going to the +2 ATR area so you can put a buy stop at + 1 ATR with a profit target at + 2 ATR with a stop loss at +0.5 ATR to catch a volatility breakout with a risk to reward ratio of 2!
Even further there are methods that you can use with ATRs of multiple window sizes, for example by opening two copies of this indicator and measuring recent volatility with a 1 week window and long term volatility within a 1 month window. If the short term volatility is crossing the long term volatility then there is a high probability chance that even more price movement will occur.
However I have found that this method is good for more than daily volatility , it can also be used to measure weekly volatility , and monthly volatility and use these multiples as good long term price targets.
To select if you want daily, weekly, or monthly values of the ATR of volatility you're using go to the settings and click on the options in the "Opening period". The default window of the ATR here is 14 periods, but you can change this if you want to in "ATR period". Most importantly you are able to select which multiples of the ATR you would like to use in the settings in "ATR multiple 1" which is the green line, "ATR multiple 2" which is the blue line, and "ATR multiple 3" which is the purple line. You can select any values you want to put in these, the choice of 0.25, 0.5, and 1 is not special, some people use fibonacci numbers here or simply 0.33, 0.66, and 0.99.
Repainting issue: This script uses the daily value of the Average True Range (ATR), which measures the volatility that is happening today. If price becomes more volatile then the value of the ATR can increase throughout the day, but it can never decrease. What this means is that the ATR based pivots are able to expand away from the opening price, which should not affect the trades that you take based on these areas. If you base your take profit on one of these ATR multiples and the daily volatility increase this means that your take profit area will be closer to your entry than the ATR multiple. Meaning that your trades will be more conservative.
While this all may sound very technical it is super intuitive, throw this on your chart and play around with it :)
Happy trading!
Pivot Point Daily prediction bitcoin - by Simon-RoseThis is an additional Script to my recent Pivot Point indicator scripts which will show you the next days pivot points based on the actual price range.
This is useful if you are trading right before a new day and want to know how the next bdays pivot points may be placed.
If you have any questions or suggestions pls write me :)
Happy trading
Cheers
Daily Pivots:
Weekly Version:
Monthly Version:
4 Major Moving Averages All Time FramesThis script incluse the 100 Daily SMA, 200 Daily SMA, 100 Weekly SMA, and the 200 Weekly SMA. They stay the same no matter the timeframe used.
Standard Deviation W/Q/M PivotsThis is a re-iteration of the standard deviation of daily pivots with the pivots applied on weekly, monthly, quarterly and yearly levels. For intraday traders the weekly pivot points will act as a major support resistance levels. Quarterly and monthly pivot points are useful for short-term positions while the yearly pivot determines the stock's long term support-resistance levels and useful in determining if the stock is in a bullish/bearish leg.
Previous High/Low Current OpenDisplays
Previous Monthly/Weekly/Daily High/Low over current prices
Current Monthly/Weekly/Daily Open over current prices
Pullback Trading [Fhenry0331]The indicator is taken from Alexander Elders "Triple Screen System," minus using the Weekly MACD as a filter/trend. I believe waiting for the force index and the weekly MACD histogram to line-up is uber conservative and a trader will miss too many signals (In my opinion).
The indicator is for a pullback trader. A trader that waits for a trend to develop then enters on a pullback.
The indicator defines an uptrend start: as the 13 ema crossing above the 26 ema. It defines a downtrend start: as the 13 ema crossing below the 26 ema.
The pullback in an uptrend: 13 ema is above the 26 ema. Elders-Force-Index is below the zero line. Price low has crossed below the 13 ema (one can also say price closes below the 13 ema if they so wish).
The pullback in a downtrend: 13 ema is below the 26 ema. Elders-Force-Index is above the zero line. Price high has also crossed above the 13 ema.
Please note that the pullback signals do not necessitate an automatic buy or sell (the instrument can be still pulling back deeper and not ready to resume it's trend.) One should place orders above (long) or below (short) bars with the pullback signals. Do so on signals until orders are filled.
Although the indicator is meant for pullbacks one can make an aggressive entry at the onset of a crossover of ema's.
For clarity background colors has been added to the indicator.
works well on daily time frame. Also look at intraday (5) minute time frame on trending stocks (news, earnings, volume, etc.)
Keep It Simple.
Enjoy!
Multiple Trend İndicator+ By BD4 different color trend show for weekly, daily and 4 hours.
red : mavilim downtrend, and mavilim below the wma21
orange : mavilim uptrend, and mavilim below the wma21
lime : mavilim downtrend, and mavilim above the wma21
green : mavilim uptrend, and mavilim above the wma21
also on the current chart; u can show current mavilim, weekly wma21, daily wma21 and 4hours wma21.
also you can add code into your frequently used indicator.
I hope this helps you.
sorry i don't know enough english for detailed description. you can try and learn more
Key Levels [@treypeng]Draws horizontal lines for Daily, Hourly (1) and Weekly levels. Really handy to switch on quickly when scalping.
Light blue: Previous hour OHLC
Thick light blue: Previous hour Close / current hour Open
Dark blue: Yesterday OHLC
Thick dark blue: Yesterday Close / today Open
Purple: Weekly Open
It's a bit ugly, I'd prefer horizontal rays instead of lines stretching back across the chart but I couldn't figure out how to do this in PineScript. If I get it sorted, I'll publish an update.
High Time Frame Open Close High Low LevelsGives you the OHLC levels of the weekly and daily candles as levels in whatever timeframe you're on so you can have a macro view in lower timeframes without having to switch timeframes constantly.
You may toggle the visibility of all the daily or weekly levels as well as each individual open/close/high/low.
The line styles and colors are customizable.
Trend Reversal Alerts Strategy [lite]This strategy was created as experimental and after playing around with it, I was able to realize what is a good way to base your strategy on and what is not.
This one is most primitive way and you should not expect gains from it(it's best on the weekly btw).
Anyway, all my attempts to advance this strategy in the end gave me around 1%2% +Net Profit on the hourly timeframe and drastically reduced the Net Profit by 50% on the weekly, so I think it is a waste of my time, but if you feel like you have ideas to share with me, please feel free to comments below!
Simba Bitcoin MomentumMaybe the best to trade Bitcoin on 1D!
Do you want to use it?
You can get access for one week free, after that, the weekly rental costs are 0.1 BTC. When you dont pay accurate the weekly subscription, you will be removed.
Write me an email to simba_cfd@protonmail.com when you want access.