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
LOW
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!
EMA Ribbon - low clutter, configurable [aspiers]This script improves on many of the existing EMA ribbon scripts out there:
Reduces visual clutter with shorter labels / titles, and thinner, transparent lines which don't obscure the actual price chart
Two beautiful color gradients for up and down trends
All colors and EMA periods are fully configurable, using the new input grouping / inline features
Uses Pine Script v4, which makes it more future-proof and allows new functionality, e.g.
It allow configurable period resolution, e.g. so user can fix at day resolution even when chart is being viewed at hour or minute resolution (this is the default)
Code clean-up: remove redundant ternary conditionals, improve variable names
Allow smoothing threshold for changes in trend direction to be configurable
Previous Days High & LowRenders the high and low values from previous days.
Useful alert conditions are provided: "Less than low" and "Greater than high".
Configuration:
The number of days is configurable with a default of 1.
The source of the high and low values.
Use the close value instead of high and low values. Default is false.
The example above uses 2 days to demonstrate an exit strategy.
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.
First Week Trend [MX]I created this indicator based on one of my ways of analyzing the BTC trend in particular, I noticed that the break of the first weekly candle usually indicates the trend for the rest of the month.
This indicator has a bug in which if you change the timeframe of the indicator it will show erroneous values
If you use the candlestick chart, you will need to pull the visual order of this indicator to the top to overlay the colors of the standard candles, or simply hide the standard candles
the trend colors are bugged in timeframes other than the weekly
special thanks to @xdecow who helped me with the code
////////////////////////////////////////////////////////////////////////
Eu criei esse indicador baseado em uma das minhas formas de analisar a tendência do BTC em específico, eu notei que o rompimento do primeiro candle do semanal costuma indicar a tendência para o resto do mês.
Esse script tem um bug em que se mudar o timeframe do indicador ele irá mostrar valores errados
Se você usa o gráfico de candlesticks, você precisará puxar para o topo a ordem visual desse indicador para sobrepor as cores do candles padrões, ou simplesmente ocultar os candles padrões
as cores da tendencia estão bugados em outros timeframes diferentes do semanal
agradecimentos especiais ao @xdecow que me ajudou no código
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.
1D Low/High MA + Least Square Mean (3 indicators in 1)This indicator is a combination of 3 public indicators being:
* a standard Simple Moving Average with the source as the candle low & length of 2
* a standard Simple Moving Average with the source as the candle high & length of 2
* the Least Square Mean with a source of high + low /2 and length of 9
This combo was inspired by Tyler Coates who crafted EMASAR.
He regularly uses the a SMA with source of Low / High and length of 2 for defining trading daily ranges as well as the Least Square Mean for calculations in the his trading which he teaches via youtube.
I hope this indicator will reduce time spent on setting up charts.
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
Local Limit LowerDisplays recent higher and lower lows.
In it's simplicity is a lot more powerful than might appear at first glance.
Does not rely on volatility calculation.
Can be linked together to create an objective view of recent support levels.
Makes current trends more visible.
Excellent as a trailing stop algorithm.
Can be used with its sibling: Local Limit Upper
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
High Low Rate Of ChangeAn experimental indicator using Pine Script Arrays. The indicators measures the rate of change of the highest highs and lowest lows. I call it the "High Low Rate of Change".
The H/L Rate of Change indicator finds the delta between the current highest high and previous highest high and after some filtering places these values into an array.
Same goes for the lowest lows.
In the end Sum it all up into the Histogram with optional smoothing using Exponential moving average (EMA).
==Colors==
Green: Up Trending.
Light Green: Weakening up trend.
Red: Down Trending.
Light Red Weakening Down Trending.
==Notes==
Bar colors are disabled by default.
Supports EMA smoothing (enabled by default).
Like if you Like and Enjoy!
Follow up for upcoming indicators: www.tradingview.com
Historic High Lows AdaptiveThis will plot in the ticker opened:
-All-time High and Low
-1 Year High and Low
-6 Months High and Low
-3 Months High and Low
-1 Month High and Low
-1 Week High and Low
-Previous day High and Low
Colors, extending the line to the right, width, showing price tag are all parameters.
High and Low calculations are updated daily
Lines haves issues sometimes rendering when the candles are in a period too small.
Pivots High Low (HH/HL/LH/LL)/Trend [Anan] Hello Friends,,
This is pivot points high low with pivot trend to define the trend direction.
Pivot trend is the pivot points average.
Options:
- Pivot Point Period
- Show/hide Pivot Points Labels
- Show/hide Bull/Bear Labels ( depends on pivot trend)
- Show/hide Pivot Center Line (Bull>Center, Bear<Center)
- Show/hide Support/Resistance Level Extensions
- Show/hide Fractal Break Arrows (you can set alerts as well)
Session High and Session LowI have heard many people ask for a script that will identify the high and low of a specific session. So, I made one.
Important Note: This indicator has to be set up properly or you will get an error. Important things to note are the length of the range and the session definition. The idea is that you would set it up for what's relevant to your trading. Going too far back in the chart history will cause errors. Setting the session for a time that is not on the chart can cause errors. If you set it to look farther back than there are bars to display, you may get an error. What I've found is that if you get an error, you just need to change the settings to reflect available data and it will be able to compile the script. At the time of its publishing, the default range start is set to 10/01/2020. If you're looking at this years later, you'll probably have to set the range to something more recent.
Features:
Plot or Lines:
Using Plot (displayed), the indicator will track the high/low from the end of the session into the next session. Then at the start of the next session, it will start tracking the high/low of that session until its end, then track that high/low until the start of the next session then reset.
Using lines, it will extend horizontal lines to the right indefinitely. The number of sessions back that the lines apply to is a user-defined number of sessions. There are limits to the number of lines that can be cast on a chart (roughly 40-50). So, the maximum number of sessions you can apply the lines to is the last 21 sessions (42 lines total). That gets really noisy though so I can't imagine that is a limiting factor.
Colors:
You can change the background color and its transparency, as well as turn the background color on or off.
You can change the highs and lows colors
You can adjust the line width to your preference
Session Length:
You can use a continuous session covering any user-defined period (provided its not tooooo many candles back)
You can define the session length for intraday
You can exclude weekends
Display Options:
You can adjust the colors, transparency, and linewidth
You can display the plotline or horizontal lines
You can show/hide the background color.
You can change how many sessions back the horizontal lines will track
Let me know if there's anything this script is missing or if you run into any issues that I might be able to help resolve.
Here's what it looks like with Lines for the last 5 sessions and different background color.