OBV High / LOW (On-Balance Volume )This is a simple application of OBV indicator (On-Balance Volume ), to visually determine when a given stock current obv is near the highest or lowest based on the number of lookback bars.
Indicator examples:
### OBV value is near an all-time high ##
breakthrough , stock value could set new all-time highs.
rejection , stock value could come down or consolidate.
Example
Inputs
OBV High Lookback -> numbers of bars to look back for the obv high.
OBV LowLookback -> numbers of bars to look back for the obv low.
OBV EMA Length -> Ema length
Notes:
This script also comes with an ema indicator based on obv for smoothing the obv signal since it gets noise at lower timeframes (by default comes disabled)
OBV information
www.investopedia.com
Comments:
This is my first script any ideas, suggestions, or detected errors (language/script) don´t hesitate to send a message.
Best regards, Mauro.
HIGH-LOW
Rohit_Past_Present_Future_CPR_PivotsThis script is for all market types, one could see historical, present and future pivots and CPR at the same time. Also one could apply daily, weekly and monthly pivot levels all together,. Further, daily/weekly/monthly high and low support could be seen as well.... Good Luck with your trading!!!!
ORTI Swing High Low / Support Resistance (Static TFM)The "ORTI Swing High Low / Support Resistance (Static Timeframe Multi-Period)" is based into existing studies that shows support and resistance levels taking as reference the highest and lowest points of certain periods, as a redesigned and recalculated set of the common plotted lenght.
The cherry on the top for this version is, when you want to get a predetermined count in (ranges) units of time, as: minutes, hours or days, in any a intraday graph you could get a static lenght, and this count will be automatically respected. For example, an average could be configured to know a high or low levels per hour, day, week or month ... or whatever comes to mind, and at every single chart that you move through (5m, 15m, 1h, 4h, etc), you will see the same lenght to make your own "support and resistance analysis" into a micro / macro market view.
Remember that part of analyzing chart patterns, the support and resistance levels are undoubtedly two of the most highly discussed attributes of technical analysis. Part of analyzing chart patterns, these terms are used by traders to refer to price levels on charts that tend to act as barriers, preventing the price of an asset from getting pushed in a certain direction.
With the new features, you will get a little help to identify in your technical analysis some signals to identify price points on a chart where the probabilities favor a pause or reversal of a prevailing trend. Support and resistance areas can be identified on your charts using this indicator.
For more technical information look at Investopedia.
Note: The previous calculation example is not the default, the parameters can be adjusted according to the criteria of the merchant.
R-HL-PDWThis script doesn't give buy or sell signals. It gives a reference point to the previous day's high and low as well as the previous week's high/low. This will be helpful for intraday trading decisions.
High Low Reversal This bot makes use of an algorithm which detects new highs and lows. When doing long trades, the bot will trigger a buy order on a newly made low. When making shorts, the bot will trigger a short trade on new highs.
Currently, the bot is optimized for cryptocurrencies on the M15 time frame. With the right amount of leverage and portfolio optimization this bot can obtain very strong results.
Feel free to optimize it to your own liking on different assets and/or time frames.
This bot performs exceptionally well in trending markets. Currently, it's only making long trades, but you can make it do short trades in the control panel.
The settings of the back test as follows:
starting capital = 100k
leverage = 1
commission = 0.2%
Equity per trade = 50%. Since the bot only makes one trade at a time you can allow it to use a bigger portion of your balance per trade.
I've also made a study-script for easy implementation on the exchange. You get that script once you get access to this bot.
QMWD RangerThis script will display the previouse Highs, Lows and Mid of the last:
- Quarter
- Month
- Week
- Day
Ranges
Its pretty good in finding potential pivot areas.
FirstBarRangeFirstBarRange study displays lines for the high and low of the first bar/candle of the trading day, along with shaded areas for the range on top of the first bar high and below the first bar low.
This study is very useful for intraday traders to see when stocks trade above the first bar high, it shows strength, and many times the high of the first bar is also good support.
On the contrary, below the first bar high tends to be good area of weakness and many times it becomes a good resistance level.
Many times when the stock trades inside the first bar range, price will be choppy and range bound.
Hi-Lo Channel StrategyHaven't seen a strategy quite like it. Buy when Heikin Ashi candle closes above a moving average that is sourced on highs - Sell when Heikin Ashi candle closes above a moving average that is sourced on lows. Moving average length should be between 5 and 20 ideally.
NOTE: the Heikin Ashi close values are calculated when the box is checkmarked. You do not need to view the chart with Heikin Ashi candles enabled on the chart. The buy and sell points of the strategy do not change whether or not you are viewing Heikin Ashi candles on the chart as long as the Heikin Ashi setting is enabled.
Buying/Selling ClimaxEnglish:
This indicator is designed for the stock market and marks potential buying or selling climaxes. If a "buying climax" or "selling climax" is marked, the probability is high that this price level will not be exceeded or undershot quickly. The indicator is used exclusively on the weekly time level.
Conditions for a "Buying Climax":
- New 52-week high
- The week closes in the loss "red week”
Alternative: The week closes below the opening price of the previous week
Conditions for a "Selling Climax":
- New 52-week low or crash (in the stock).
- The week closes in profit "green week”
- The 2 previous weeks are losing weeks
Alternative: The week closes above the opening price of the previous week
Deutsch:
Dieser Indikator ist für den Aktienmarkt ausgelegt und markiert potenzielle Kauf-/ bzw. Verkaufs-Höhepunkte. Wird ein „Buying-Climax“ bzw. „Selling-Climax“ markiert, ist die Wahrscheinlichkeit hoch, dass dieses Preisniveau nicht so schnell überschritten bzw. unterschritten wird. Der Indikator wird ausschließlich auf der wöchentlichen Zeitebene eingesetzt.
Bedingungen für einen „Buying Climax“:
- Neues 52-Wochen Hoch
- Die Woche schließt im Verlust „red week“
Alternative: Die Woche schließt unterhalb des Eröffnungspreises der Vorwoche
Bedingungen für einen „Selling Climax“:
- Neues 52-Wochen Tief oder Crash (in der Aktie)
- Die Woche schließt im Gewinn „green week“
- Die 2 Vorangegangenen Wochen sind Verlustwochen
Alternative: Die Woche schließt oberhalb des Eröffnungspreises der Vorwoche
High/Low MarkerThis is @Rene 's private Script for marking highs and lows for Vertex investing
My Highs and Lows are marked whenever a candle closes above or below an old high
Still a bit bugged as i only want it to show the most recent high after a low and vice versa -> High Low High Low
But i am new to Pine Script. Any help apprechiated.
HiLo Extension This Strategy is finding high and low breaks of the day and enter into the trader based on RSI value and time value
1) This strategy is created for Indian Index like Nifty, Bank Nifty and so...
2) Trades are initiate only after 10:15 AM and before 3:10PM
3) High and Low of the day break will be check during the above time frame
4) RSI value will be check (RSI 50)
5) and trade will be initiate
6) Stop loss set as vwma 20...
Note: This Script will work fine in Index future chart not index spot chart...
This is just my idea only... Please back test yourselve, before using it..
Your comments are welcome!
Strongholds - Objective & Accurate Reference Points / StructuresVery early in my trading career, I came across Pivot Points only to find out that there are as many calculations as one pleases. It was hard to find out which ones work. Most of them probably did only out of randomness, so I ditched the strategy and looked for something else.
I previously used my Oracle Eye and Reference Points scripts but it is time for an upgrade.
Stronghold is a script I have used for quite some time now. I ditched daily and weekly closing prices as not that important. Instead, Strongholds are equipped with:
►Daily High & Low • Azure color
►Weekly High & Low • Dark blue
►Weekly old High & Low • Semi-transparent dark circles
►Monthly High & Low • Wizardly purple
There is an option to print:
►4h High & Low • Semi-transparent red
►VWAP • Lovely purple
►Weekly VWAP • Black
All of the levels and lines are set for 1m, 5m, 10m, 15m, 30m, 1h, 4h, 1D timeframes. If you use any alien timeframe, you may need to enter the code.
You can opt-in and out for certain timeframes. For example, daily levels are visible from 15m or 30, so the indicator won't draw them unless you want to. However, they will not be seen on higher timeframes as there is no reason to show them and oversaturate the chart with lines.
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Remember that if you use this script with auto-scale, you need to tick Scale Price Chart Only . Otherwise, your chart will fly to the moon!
Good luck & have fun!
TSI Strength Meter vs USD with divergenceThis indicator consists of two lines. One is a gray line (USD) and the asset indicator is green or red.
The basis of this indicator is the true strength indicator (TSI) with parameters 5,15. Both line sets are based on a TSI (5,15).
The lookback period is for new highs / new lows. Default value is 200 periods.
GREEN/RED LINE
The first that is green and red is whatever you choose to display ( BTC in this case).
The green and red lines indicate going up or going down.
GRAY LINE
The gray line is the US Dollar . So everything is relative to that by default.
ZERO LINE CROSSES
These are momentum shifts. If you see a crossover of both around the zero line, its a good indication there is a change in momentum and a reversal of trend.
NEW HIGHS NEW LOWS
There are 4 new colors added to this indicator. For the asset you are viewing, a lime color means new highs within the lookback period. A new low is indicated by a yellow line color.
The new lows for the USD are white for new lows within the lookback period and blue line for the new highs.
DIVERGENCE
You can also spot divergences easily. For example, if a lime color is seen on the indicator line, that means "new high" but if it occurs below the last "new high" it means the asset is going up to new highs but the indicator is showing us that the readings are below the previous new highs, indicating a negative divergence.
The same goes for the yellow colored lines. higher yellows mean positive divergence.
And with the US Dollar , blue lines dropping means a negative divergence in the US Dollar , while white lines moving up means a positive dollar divergence.
INTERPRETATION
Examples:
If you see a green and sometimes red line of the asset indicator and a gray line that drops below the zero line; it may mean the asset is rising and the trend is up.
If you see a green and red line below the zero line and with a gray line above the zero line , it indicates there is a negative trend. If you suddenly see blue lines on the USD, this means its hitting new lows. If these blue lines then start to slowly move downwards; then we have a positive divergence. If that were to be followed by the green line crossing the zero line, its a pretty good be that the trend is changing and its a very good buying oportunity.
HTF Highs Lows [JV]█ OVERVIEW
This script presents a label with an overview of higher timeframe highs and lows. This can be useful information as we all know that price likes to revisit previous highs and lows area, specially on the higher timeframe.
█ CONCEPTS
This information can be relevant and valuable for various reasons:
Finding horizontal Support and Resistance
Get a better view on Market Structure
Provide some information about Order Flow
TrendLines
...
█ FEATURES
Plots
This script provides the option to show information about 3 timeframes
Each timeframe can be separately shown or hidden
The Y position of the info label can be user defined, based on high or low of the chosen timeframe
The X offset of the info label can be adjusted to the user's liking and the chart resolution
The label color and text color can be user defined
The info label's size can be user defined
█ NOTES
Caveat
The timeframes must be chosen in order of size. Meaning that the highest timeframe should be on top. This is title as such on the info label, but I want to mention it again as it's something to pay attention to.
Repainting
The question that pops up all the time is: Does it repaint ?
I will quote PineCoders on this:
We're pretty sure Wilder was not asked very often if RSI repainted. Why? Because it wasn't in fashion—and largely unnecessary—to ask that sort of question in the 80's. Many traders back then used daily charts only, and indicator values were calculated at the day's close, so everybody knew what they were getting. Additionally, indicator values were calculated by generally reputable outfits or traders themselves, so data was pretty reliable. Today, almost anybody can write a simple indicator, and the programming languages used to write them are complex enough for some coders lacking the caution, know-how or ethics of the best professional coders, to get in over their heads and produce code that does not work the way they think it does.
Briefly: yes, it repaints and no it does not matter.
Simple because we are working with highs and lows on a higher timeframe. So if we get a new high or low within a certain time frame, we want this new high or low to be displayed and, for me, it's not relevant if this information appears when it happens or when the candle closes.
Questions & Suggestions
Questions, suggestions or even a word of thanks are always welcomed in the comments section. I usually answer within the same day.
█ THANKS
A word of thanks to, and I hope I am allowed to use hyperlinks here, LonesomeTheBlue for being an inspiration on coding style and his work on arrays in Pine Script and to lmatl for his support, words of advice and letting me borrow his brain now and then.
TPCharts HighOfWeekShows the days on which highs and lows for a week occurred (Sunday through Saturday).
Yeah, you could download data feeds and write some Python, but not everybody wants to do that.
Usage:
Get probability on your side when entering or taking profits.
If 60% of the weekly lows are on a Tuesday, what day probably works best to buy?
Keep in mind that many altcoins have slightly different weekly patterns.
Options in settings:
1. Show each day's name in a bubble underneath.
2. Display "summary" total stats for highs / lows when over 50 SMA.
Future updates:
Handle bear markets for final stats. Currently only calculates high/lows in summary bubble when over the 50 SMA.
NSDT Daily Key LevelsSimple script to show key levels of current day and previous day. Labels can be turned on and off as needed. Line colors, thickness and style can be changed. Modified the "M/W/D Level" script from paaax. Credit for original code goes to him. Link to script and profile posted in code of this script.
Daily High & Low BoundaryDisplays the day's progressive high and low of the day colorized by the day of the week.
Realtime All-Time High and All-Time Low Tracker [WIP]This is a study intended to port the work of /u/QuantNomad's "Kozlod - All-time high/low alerts" to pine version 4 without giving any alerts. It is intended to capture the most extreme points on any given price chart in real time, the absolute high and absolute low points. Ideally, the plotted lines would strictly diverge from one another in opposite directions and widen with new highs or lows on a hypothetical "all-time" resolution.
Most of the original code was replaced and I'm trying to resolve a bug where the script fails to register new highs or lows while at the same time making sure that earlier data is plotted correctly. If applied to an asset that has not yet recovered , is just too new, or has not achieved a lower low than its opening price, this indicator ceases to function correctly. This would not be an issue if pine script was more general purpose and had something similar to Python's max(list) function.
Any and all suggestions are welcome. This is simply to serve as a springboard for any programmers trying to design algorithms or strategies that use these variables on any price chart.
Happy Hunting!
- Patch Hemlock
low and high X Bars//This script finds High and Low X bars back. Simple pine script, can customize lookback period.
Initial Balance (IB) and Previous Day / Week High, Low & ClosePlots Historical key levels for volume profile idea.
Plots the following:
- Previous Day High
- Previous Day Low
- Previous Day Close
- Previous Day IB High
- Previous Day IB Low
- Current Days IB High
- Current Days IB Low
IB is based on first hour of trading.
Made specifically for ASX stocks, have not tested it on other exchanges or assets.
Previous days highs and lowsA script which marks a line pointing the highs and lows of the previous trading day.
Day start top and bottomThis code is modified to draw the first 15 minutes(variable in setting by default 15m is set) of the high and lows through out the day.
It will work on time frames less than than or equal to 1st input. Hope this code helps you all.
IMPORTANT SETTING DETAILS:
1.Res = input(title="Starting X minutes lines to be Displayed",defval="15", type=input.resolution)
2.Day_start_15m=input("0915-0930",title="your country's Trading session time (starting X minutes)")
make sure to enter the starting 15 min of your country trading time in the input in 2nd input
both the above input 1 and 2 must be equal in time i.e "0915-0930"=15min and first one is also 15m
you need to make sure that the input settings are correct. It is By default set For INDIAs trading start time, you have to set start time according to your country.
Rabbit HoleHow deep is the Rabbit hole? Interesting experiment that finds the RISING HIGHS and FALLING LOWS and place the difference between the highs and lows into separate arrays.
== Calculations ==
In case current high is higher than previous high, we calculate the value by subtracting the current highest high with the previous High (lowest high) into array A,
same method for the lows just in Array B.
Since we subtract highs and lows it means velocity is taken into consideration with the plotting.
After adding a new value we remove the oldest value if the array is bigger than the Look back length. This is done for both lows and highs array.
Afterwards we sum up the lows and highs array (separately) and plot them separately, We can also smooth them a bit with Moving averages like HMA, JMA, KAMA and more.
== RULES ==
When High Lines crosses the Low Line we get a GREEN tunnel.
When Low Lines crosses the High line we get the RED tunnel.
The Greenish the stronger the up trend.
The Redish the stronger the downtrend.
== NOTES ==
Bars are not colored by default.
Better for higher time frames, 1 hour and above.
Enjoy and like if you like!
Follow up for new scripts: www.tradingview.com