US Market CrashesThis script allows you to manually highlight specific periods on a chart, making it easy to visualize significant market events such as recessions, market crashes, or other key timeframes. Unlike traditional indicators that are based on price movements, this script provides a flexible way to mark any custom date range directly on your Trading View charts.
Features:
Custom Date Ranges: Easily specify start and end dates for periods you want to highlight on the chart.
Custom Colors: Choose different colors for each highlighted period for clear visual distinction.
Predefined Market Crashes: By default, the script highlights 18 historical market crashes where the market declined by over 20%.
Use Cases:
Historical Analysis: Highlight and study the impact of past recessions or market crashes.
Event Marking: Mark specific economic events, earnings seasons, or other relevant periods.
Presentation: Use the highlighted periods to enhance presentations or reports on market behavior.
How to Use:
Input the start and end dates for the periods you want to highlight.
Adjust the colors and transparency as needed.
Apply the script to your chart to see the highlighted periods.
This tool is perfect for traders, analysts, and investors who want a clean and straightforward way to visualize important historical periods on their charts.
The default setup includes 18 significant market crashes with declines of over 20%.
Overlays
Overlay Mini Plot(s) of Correlated Asset(s)Overlay a small plot of a correlated asset of your choosing. Shrink/expand, Set vertical and horizontal position, plot multiple mini-plots via duplicate indicators with varied settings.
Plots the last X bars of any asset; including the live candle currently painting
Useful for low time frame trading when you want to see correlated asset price movement right alongside the price movement you're watching.
Useful for quick and simple comparisons; when you don't want the clutter of split screen or multi-pane view.
Useful for backtesting.
Price scale agnostic; just plots the shape of the recent price action, with several optional labels: Asset+timeframe | Live Price | Highest price over X bars | Lowest price over X bars.
Works fine with all the assets i've tested it on.
~~User inputs~~
-number of bars to paint.
-horizontal offset: plot to right X bars or to left X bars
-vertical offset: shift up or down, shrink or expand; by using 2 'spacer' inputs
-color/transparancy of candles and price labels.
-width (pixels) of candle bodies.
-choose to display price labels or not
-choose to display asset label or not
~~Tips~~
--Add several of these indicators; changing the vertical 'Shift/Shrink' settings on each to visually separate them.
--In the above chart or EurUsd, there are three indicators =>> three mini-plots overlaid: DXY, EurGbp and GbpUsd. Using the following settings for Space Above:Space Below: DXY- 0.1:4.5 | EurGbp- 1.8:1.8 | GbpUsd- 4.5:0.1
--the more you add, the more you'll have to vertically shrink the plots
© twingall
Electrified Momentum OverlayVisualizes a moving average and changes in momentum in one overlay.
8 phase alert options.
TEMA/hullMA Ribbon with Bollinger BandsDesigned for shorted time frames.
Bollinger bands based off of TEMA as source.
Ribbon based off TEMA and hullMA divergence.
RMA used to signal Bollinger bands.
Ribbon:
pinch -> reversal
blue -> sign of possible uptrend
red -> sign of possible downtrend
Bollinger bands background:
blue -> sign of continuing uptrend
red -> sign of continuing downtrend
Pine Script Tutorial #4Welcome to Pine Script Tutorial #4
This is more complex than the previous 3 tutorials. This one builds upon the first 3 tutorials.
What does this code do?: It plots on a histogram (at the bottom), the difference between closest round number and the close. So for example 84 -close = 16 pips. It shows the 16 pips on the histogram.
First off, it is actually Two studies on this graph, not one. I wanted the histogram at the bottom and round number indicator to overlay on the graph. There is no code within Pine Script that lets you do that within one script.
Secondly, there is no code that lets you spit out number on the graph, that is why I used histogram, initially I wanted it to tell me 16 pips in writing but no way of doing that.
In order to replicate the graph you have to first plot the rounding formula as overlay. Thean take out the overlay and plot te histogram.
I got the rounding formula from one of the coders here and simplified it. Just search round.
Hope this helps,
Feel free to comment.
altcoin index overlayPurpose
This displays the "altcoin index" as a plot on your chart. Suggested use is coupled with the "altcoin index oscillator".
Use
Add it as an indicator while looking at the chart you would like to assess. Click the settings button (cog) to select which coins you would like included in the index.
You can couple this tool with the "altcoin index oscillator" indicator to view the correlation.
Notes
The "altcoin index" is the average BTC price of a selection of altcoins. Therefore this is their relation to bitcoin and not any national currency. Due to this, the indicator will be useless if you try to use it with BTCUSD etc.
Market Direction Indicator [LazyBear]Market Direction Indicator (MDI), by Donald Lambert, is an extension of simple moving average cross over systems. Series of price cross over points are determined to derive MDI.
Note that the short/long lengths will differ between instruments. They need to be tuned properly.
I have added an option to specify a "cutoff" parameter. When MDI is in the cutoff zone (-/+ cutoff), bars are colored gray. Set this to zero to turn off cutoffs.
Other options:
- OverlayMode: Enable this to color bars. MDI values are not plotted. If unchecked, MDI default rendering mode is Histogram mode.
- ShowBelowZero: Plots the negative values below zero (Oscillator mode)
Use "MDI" and "ZeroLine" for setting up alerts. Make sure MDI is in OscillatorMode.
Master list of all my indicators:
docs.google.com