Example - Custom Defined Dual-State SessionThis script example aims to cover the following:
defining custom timeframe / session windows
gather a price range from the custom period ( high/low values )
create a secondary "holding" period through which to display the data collected from the initial session
simple method to shift times to re-align to preferred timezone
Articles and further reading:
www.investopedia.com - trading session
Reason for Study:
Educational purposes only.
Before considering writing this example I had seen multiple similar questions
asking how to go about creating custom timeframes or sessions, so it seemed
this might be a good topic to attempt to create a relatively generic example.
Support et Résistance
SMA 200 Ribbon MTF - Support and ResistanceThe SMA 200 is one of the most important and strongest support/resistance lines on any timeframe. This script pulls the SMA 200 line from multiple timeframes so traders can visually see price action bounce between support and resistance . The current timeframes SMA 200 is displayed in white and turns yellow to signify "pressure". Can be used on higher timeframes to find bull action. This indicator can also be used to filter out pumps and dumps as shown in example 3 and 4.
Example of indicator on 5 min timeframe. Candles bounce along SMA200 lines.
Example of indicator on daily timeframe . Lines turn green and price action pumps. Lines turn red and price action dumps.
Example 3: A clean crossover of lines usually signals a bullish pump.
Example 4: Tangled or messy lines tend to result in a dump as price action struggles to cross resistance. A pullback is required to "clean" the lines.
EMA Band can be turned on using "tickbox" in settings menu.
Point and Figure on Candlestick ChartLive plotting of Point and Figure chart on a candlestick chart. With its own construction engine, it plot "X" and "O" column using a line chart. It plots the "X" column with green color and the "O" column with red color. Color of the line chart change from green to red when the column reversed from "X" to "O". It plot "Double Top Buy" and "Double Bottom Sell" level which help to do candlestick pattern analysis along with Point and Figure chart. Works on all timeframes with given parameters.
Options :
Box Size Assignment Method : Select a method to construct Point and Figure chart. There are two options "Fix" and "Percentage". The default value is "Percentage".
Box Size : The size of box. Minimum price movement to plot a new box. Smaller box size shows greater price movement and Bigger box size shows more filtered price movement compare to smaller box size. The default value is "0.25%"
Reversal Size : Minimum boxes required for column reversal. The default value is "3".
Stoploss Size In Box : To get affordable trade give the number of boxes for stop loss.
NYSE extended session backgroundThis script adds background to the chart to highlight different time areas in any chart.
The time areas are in relation to the open/close time of NYSE , both regular and extended session.
The background colors are the following by default:
NO COLOR : NYSE is open
DARK BLUE : NYSE is closed
LIGHT BLUE : NYSE post market session
ORANGE : NYSE pre market session
In addition, previous day close price line is shown during extended and closed sessions (orange line).
This script is useful to visualize any chart in relation to the NYSE timetable.
MTF Trend WidgetThis indicator identifies trends in multiple higher timeframes (D, W, M) and shows them in a widget off to the right of the chart.
It's meant to be used as an alternative filter for "trading with the trend." Typically people use moving averages of varying lengths for this (i.e. if over 200 MA it's an uptrend, etc.), but I wanted to see if it might be more effective to see if the higher timeframes were actually trending or not in a certain direction.
For the purposes of this indicator, an uptrend is defined as higher highs and higher lows. So if currently in a downtrend and the highs are broken, the indicator will flip to an uptrend because now we have a higher high. Vice versa for downtrends.
The user can choose the lookback period for defining these highs/lows (the pivot points). A smaller lookback number will give you more frequent pivot points.
The user can toggle on visibility of all historical pivot points to make sure the frequency and placement of the swing highs/lows is to their liking.
The user can show the support/resistance lines of those most recent swing high/low points on the multiple timeframes as well.
When these lines are breached, that is when the trends change, so you can see if you are close to changing any longer term trends.
My hope is that this gives people a quick glance at the overall trend without having to cycle through different timeframes.
The Strat info boxThis indicator is an all in one indicator for the "The strat" method by Rob Smith. This indicator DOES NOT provide trading advice or trade entry signals!
What is included:
* Candle Type 1 - Inside Candle
* Candle Type 2- Up or Down Candle
* Candle Type 3 - Engulfing Candle
* Strat signal:
- 2-1-2 setup
- 3-2-2 setup
* Full Timeframe Continuity:
- from a 5min timeframe to a yearly timeframe. Green gives you an uptrend, Red a downtrend.
* middle of day and week
- this give you a support and resistance level at the middle of the day or week. This is a good indicator if the stock goes up or down
* extra info like:
- ATR of 14 days
- DTR of current day
- Volume info
- Float info
NASDAQ:FB
Auto Fib Extension and RetracementsThis script is used for plotting the Fibonacci support and resistance levels. Compared to other ones, the changes to this script are that you can choose what color should all the lines be and that it doesn't change the chart's size, meaning that it won't shrink the chart so that all the levels can be seen. If you have any suggestions, I'm open to anything.
Also, if you could give a like/comment or if you could follow me, that would do my day. Thank you all and enjoy!
EMA 730 Ribbon MTF - Support and ReistanceThe EMA 730 line is a great way to show dynamic support and resistance . Price action travels "through" this line on each timeframe. This script pulls the EMA 730 Line from multiple timeframes so a trader can visually see price action bounce between support and resistance lines. Lower bands (white lines) can be turned off using "tickbox" in settings. EMA length can also be adjusted in settings. Some charts may work better with a length of 750.
Example of EMA Bands on lower timeframe.
Example - HTF Step InterpolationAbout this script:
This example aims to highlight an alternative way to view HTF data by providing basic interpolation functionality.
This script does not aim to provide use in itself as an indicator or strategy.
Reason for study:
Educational Purposes Only
Quantumvest - Auto LevelsAuthor: Arthur Wayne
Description: This script automatically plots levels according to Primetime Trading Academy guidelines.
Directions:
On the monthly chart, you should select two significant monthly support/resistance levels and input them into the script. It is recommended to mark these levels with the price label tool.
The script will then automatically plot 2 monthly 'wings' or additional monthly support/resistance levels above and below the original monthly high and low that are the same distance apart. Located half way in between the monthly levels, there will be weekly support/resistance levels. None of the values will go below 0. These levels should then be used on lower time-frames for technical analysis.
There is the option to customize the number of monthly wings, the width of the box surrounds the monthly s/r levels, the x-position of the level labels, as well as the colors for everything.
The biggest drawback is that levels will not save in between charts. This is a limitation of Pine Script and how TradingView does not offer the ability to create custom drawing tools, only indicators and strategies. This is why it is recommended to use the price label tool to keep track in between charts for different assets. Regardless, this script should make the process of drawing levels manually far more efficient than it was before.
Margin selling pressure levelsPredicts local bottoms and support levels. Simply enter a strong resistance level (Settings > Liquidation Resistance Level), and this indicator shows you levels where margin selling pressure is likely to drop off. This is based off of the assumption that leveraged traders will likely want their liquidation point protected above a strong resistance level.
2x - blue
3x - green
4x - yellow
5x - orange
10x - red
Margin buying pressure levelsPredicts local tops and resistance levels. Simply enter a strong support level (Settings > Liquidation Support Level), and this indicator shows you levels where margin buying pressure is likely to drop off. This is based off of the assumption that leveraged traders will likely want their liquidation point protected below a strong support level.
2x - blue
3x - green
4x - yellow
5x - orange
10x - red
Qullamaggie BreakoutThe intent of this strategy is to buy breakouts with a tight stop on smaller timeframes in the direction of the longer term trend. Default longer term trend is the daily, but the user can choose any timeframe to use for the SMAs (which act as filters and trailing stops).
Exit the trade using a trailing stop of a close below either the 10 MA or 20 MA (user choice) on that larger timeframe as the position moves in your favor (i.e. whenever position price rises above the MA). This is one area where this script could use a little work or some human intervention - when the trade is entered right in the vicinity of the moving averages, you get some whipsaw. Not sure how to avoid that at this point though if you want to look at those longer term moving averages as your exit criteria.
Option of using daily ATR as a measure of finding contracting ranges and ensuring a decent risk/reward. (If the difference between the breakout point and your stop level is below a certain % of ATR, it could possibly find those consolidating periods.)
MultiPrice AlertThis is an alert script using Pinescript version 4. This enables one to set 5 alerts (1 StopLoss, 4 Targets), on 3 different symbols, at using a single alert in the UI.
Every visible line will only appear on the symbols that are selected. After setting targets when making an alert, select this indicator as a condition. Change the name to whatever you want, usually the names of the set of tickers.
The Alert message is dyanmic showing which Symbol with each type of alert, at whatever price.
Ability to disable the targets + symbols.
Alerts work by Stop Loss crossing under price and Targets Cross Over. Enabling the "Short" Targets reverses this.
The line that is being displayed is actually the price of the asset being moved over x number of bars. I have not found a way to plot a traditional horizontal line, as the code for it uses a fixed price.
As it being a user input, it is a variable. Any help with this would be appreicated.
Alerts are set to once per bar.
Known bug that sometimes if the prices that you set are inside the current candle stick, then your alert will immeaditally fire, either change the timeframe or let it fire and wait fo
After a target is hit, I reccomend setting the alert to 0 and REMAKING the alert. You MUST REMAKE THE ALERT AFTER ANY CHANGES. This script WILL NOT CHANGE ALERTS AS YOU CHANGE SETTINGS.
TradingView Alerts are not this smart , at least I haven't found a way to do this yet.
RexDog Hour Close LinesThe RexDog Hour Close Lines plots the last 4 previous hour (60 minute) closes. Extremely helpful indicator for traders who trade on lower timeframes below the 60.
The plotted lines are also offset to represent that hours close location on the chart-- but keep the below in mind.
The offset is set for a default resolution of 5 minutes. In that chart timeframe, the offset is correct as to the close location. Changing the timeframe to 3m for instance the offset is not accurate to that particular bar. I am sure there is a simple way to do this but maybe I'm just not smart enough to figure it out. Either way, the offset in any timeframe is easy to distinguish the oldest hour close to the newest.
This indicator has the following options:
You can enable or disable any previous 4 hour close line
You can change all line sizes
You can change all line colors. I do apologize if it's inconvenient that I've defaulted the lines to different colors.
I've limited the visibility to only periods below 60 minutes-- but and maybe there is a better way to do this (if so please share). The limit is based on the most common periods below 60: 1, 2, 3, 5, 10, 12, 15, and 30.
Will most likely release the 240 and 30-minute version of this I have on a few charts.
Beam Bands + Fibonacci LevelsThis indicator calculates the Fibonacci retracement levels based on beam bands. As you can see the price very often reacts to these levels.
Gann Square of 9(For Bursa Malaysia only)
This indicator will display nearest support and resistance from Gann Square of 9 Box.
Red line (Strongest)
Resistance
Support
Blue line (Moderate)
Act as support and resistance
Only workable for price lower than RM18.
Main MAs and EMAs multi-timeframe for supportObjective is to map out different multi-timeframe support/resistance , all at once. Includes weekly, daily and 4H EMAs and MAs, as per the follow (allowing customization)
WEEKLY (in pink/purple variations):
- 13 EMA
- 21 EMA
- 34 EMA
- 50 M.A
DAILY (in green variations):
- 21 EMA
- 50 EMA
- 120 M.A.
- 200 M.A.
4H (in yellow/golden colors):
- 400 EMA
- 500 EMA
- 675 EMA
- 715 EMA
- 920 EMA
- 1150 EMA
Notes:
- Quite useful to all types of assets; crypto, commodities , stocks, etc...
- Ideally not to be visible all the time, as it can "pollute" the charts. But very helpful in moments of great volatility
WattageSimple plot script for ranges from prior day closed based on Brian Watts talks.
Should work on any timeframe. For example, if 5m the ranges will still be for the prior day.
Edit based on daily ranges of whatever symbol. Change the ranges as you see fit.
It is interesting if you turn on prior day close for verification and current day high/low in the chart settings.
Meant as open source for you to do what you please.
Thank you Brian Watt.
NSDT Support/Resistance ZonesA simple script that allows you to plot 8 different zones of support and resistance. Enter the high and low of a support/resistance zone, and the script will fill the range for easier viewing. Open source and all settings can be customized.
array coloursWith great gratitude to Tradingview and Pinecoders I give you a simple highest/lowest indicator, inspired by the recent added function:
‘color.rgb (red, green, blue, transp)’
The colour is derived from rsi values
The main goal was to show the use of:
- array.new_color()
- color.rgb()
- color.from_gradient()
Cheers!
'Golden ratio' Cubes - 'GoRaC'The difference between 2 points is plotted here using 'Golden ratio' cubes
(working differently than my 'Golden ratio spiral - 'GoRaS')
The 2 points can be 'high/low' or 'max(open/close)/min(open/close)',
with the possibility of higher resolution, the following examples are with 1 week resolution
By extending the lines you can spot support/resistance area's
You can reverse:
or 'mirror':
The 'bars back' can be set to get a previous period
Important:
In the example of a week resolution on a daily chart:
if you set '0', and it is Friday, the week isn't finished yet!
Everything still can change (= repaint)
1 bar back (in this case 7 daily bars back since the res = week!):
2 bars back:
3 bars back:
Here using 'high/low' and lines extended to the left:
or 'max(open/close)/min(open/close)' and lines extended to the left:
Cheers!
Dynamic Support And Resistance [CC]The Dynamic Support And Resistance Indicator was created by Mike Siroky (Stocks and Commodities pgs 14-18) and this is a handy indicator that will show you useful support and resistance levels no matter how the stock is doing right now. I have color coded the middle line to show buy and sell signals so buy when the line turns green and sell when it turns red.
Let me know if there are any other indicators you want me to publish!