S&P500 5% down尊敬している 投資塾ゆうさん が見つけた買いシグナル(S&P500 が5%ダウンしたら買い)のインジケーターを作ってみました。
■ロジック
- S&P500 (SPX) の終値について、直近金曜とそこから1週間さかのぼった金曜日を比較し5%下落していたら買い
ロジックに合致した足の背景色が緑になります。
-----------------------
in English
I made an indicator for the buy signal (buy when S&P500 is down 5%) that Yu-san, an investment school I respect, found.
Logic
- Compare the closing price of the S&P500 (SPX) between the most recent Friday and the Friday one week back, and buy if it is down 5%.
The background color of the legs that match the logic will be green.
Индикаторы ширины рынка
Percentage Distance From Moving AverageThis indicator shows the percentage that an asset price is above or below its 50-period simple moving average.
You can change the 50-period moving average to whatever you'd like in the settings of the indicator.
There are other versions of this indicator that are currently public, but they all use the exponential moving average instead of the simple moving average.
DIX Two Symbols Delta and Cumulative DeltaJust a simple script to subtract the DIX of any two symbols give the Delta and Cumulative Delta. The default symbols are QQQ and IWM. There are a lot of possibilities with this, and it could easily be expanded to accommodate more symbols, but there are limitations to how many symbols I can add to this.
Subtract any Two Symbols and calculate the Cumulative DeltaJust a simple script to subtract any two symbols giving a delta of the values, and then getting a cumulative sum of each bars delta value. The two default symbols are the Value of All Trades on Upticks for US Stocks, and the Value of all Trades on Downticks for US Stocks. There are a lot of possibilities with this. Delta is turned off by default, to turn it on you have to select "Show Delta" in the inputs.
Asian Range by Nico948Displays the Asian session range on your graph.
Masked for timeframes higher than 15 minutes.
However, it can be displayed on 1 hour timeframe by filling in the relevant box in the parameters.
Multitimeframe Pivot HiLoPivot High/Low for multi timeframes.
Could be great entry filter to include multi time frame pivots in trend trading strategies.
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
Multi Time Frame Trend, Volume and Momentum ProfileWHAT DOES THIS INDICATOR DO?
I created this indicator to address some of the significant inconveniences when analyzing a security, such as continually switching between different time frames to determine the trend and potential pullbacks, adding volume or volume-derived indicators, and finally, something that would help me determine the strength of the trend (maybe two additional indicators here). So I decided to code this all-in-one indicator that you can add multiple times to your chart depending on the settings you want to use, or just optimize the parameters for the particular asset and then switch between the options.
As the name suggests, it consists of three main sections - Trend , Volume , and Momentum . You have complete control over the parameters, including the Time Frames you want to use for each one (they can be different). So, let me explain each section in more detail.
HOW DOES THE INDICATOR WORK?
1. Trend Settings
In order to determine the trend, you need to set up two Moving Averages. You have a wide choice here - SMA, EMA, WMA, RMA, HMA, DEMA, TEMA, VWMA, and ALMA. Since the indicator does not plot the moving averages on the chart, I strongly suggest using this indicator along with the free "Trend Indicator for Directional Trading(main)" , which you can find in the Public Library. Once you set up the Trend Resolution, the Types of MAs, and their lengths, the indicator will generate a histogram of their convergences and divergences.
The change in colors should help you more easily determine the trend:
a) Bright Green - bull trend and price trending up (a good place to open long)
b) Dark Green - bull trend and price trending down (stay flat or open a long position with great caution)
c) Bright Red - bear trend and price trending down (a good place to open short)
d) Dark Red - bear trend and price trending up (stay flat or open a short position with great caution)
e) In addition, you can change the color palette to reflect the bull/bear trend momentum by scrolling to the bottom and selecting "Color Based on Bull/Bear Momentum", but I will discuss this in more detail below.
This part of the indicator is useful for opening a trade in the direction of the trend or for spotting a potential divergence. Both cases are illustrated below.
2. Volume Settings
The calculations for this part of the indicator are partially taken from "Multi Time Frame Effective Volume Profile" . I will quickly outline the specifics here, but if you want a more thorough understanding of how it works, please check the description of the MTF Effective Volume Profile indicator .
You have three elements with the following default settings - Resolution (5-min), Lookback (100), and Average (1). This means that the indicator will analyze the last one hundred 5-min bars and will plot a sum of only those that are at least 1 times bigger than the average. Those that are smaller than the average will be left out from the calculation. What you get is a trend line showing you accumulation/distribution based on modified volume parameters.
This part of the indicator is useful for spotting exhaustions and increased buying/selling volume that is opposite to the price trend. As you will see in the picture below, in frame 1 the selling pressure is decreasing, while buying volume is increasing. At one point supply dries out and the bulls take control, thus reverting the price. In frame 2, however, you can see that the higher high is not met with nearly as much buying volume as in the previous peak, showing that the bulls are exhausted and maybe a trend change will follow or at the very least that the bull trend will take a break.
3. Momentum Settings
The final part is an RSI smoothed through a Moving Average with the addition of some minor optimizations. Thus, the parameters you have to configure here aside from the resolution are the RSI length, the moving average that will be used, and its length. Out of the three, this is the most lagging component, but it's also the most accurate one. I must mention that due to the modified nature of this RSI, overbought and oversold levels carry less weight to the trading signals. Rather, pay attention to the change of colors, as they do so when the RSI changes direction based on preset parameters. The picture below shows such instances.
4. Additional Settings
This section consists of 4 elements:
a) Length of Trend - filters out the noise and gives a signal only when the trend becomes more established
b) ADX Threshold - filters out trading ranges and indecision zones when it's not recommended to open a trade
c) Select Analysis - choose what part of the indicator you want to see from a drop-down menu
d) Color Based on Bull/Bear Momentum - a global setting that will override the preset coloring of each indicator and will replace it with colors based on bull/bear strength and momentum - green for bulls, red for bears, and gray for non-trading zones.
The last part of this indicator is a combination of all of the above and is called a Points-Based System . It generates 3 rows of dots that go light green when bull criteria are met, orange when bear criteria are met, or gray when it's neither of the two. When you get a column of 3 green dots you get a buy signal. Similarly, a column of 3 orange dots gives you a sell signal. Grey zones are non-tradeable. It goes without saying that the frequency and quality of the signals you get will almost entirely depend on your settings, so feel free to experiment and adjust the indicator to catch the best moves for the given security.
In terms of indicator adjustments, I have left almost every part open to configuration. That is 15 parameters and 35 adjustable colors.
HOW MUCH DOES THE INDICATOR COST ?
As much as I would like to offer it for free (as some of my other ones), a great deal of work, trading logic, and testing have gone into creating this indicator. More than a few hundred iterations and a few dozen branches were required to reach the end result which is a precise combination of usefulness, simplicity, and practicality. Furthermore, this indicator will continue to be updated and user-requested features that improve its performance will be added.
Disclaimer: The purpose of all indicators is to indicate potential setups, which may lead to profitable results. No indicator is perfect and certainly, no indicator has a 100% success rate. They are subject to flaws, wrongful interpretation, bugs, etc. This indicator makes no exception. It must be used with a sound money management plan that puts the main emphasis on protecting your capital. Please, do not rely solely on any single indicator to make trading decisions instead of you. Indicators are storytellers, not fortune tellers. They help you see the bigger picture, not the future.
To find out more about how to gain access to this indicator, please use the provided information below or just message me. Thank you for your time.
Year/Quarter/Month/Week/Day breaksUse this script very effectively to create completely customisable breaks ranging from :
YEAR
QUARTER
MONTH
WEEK
DAY
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
Multi Time Frame Effective Volume ProfileWHAT DOES THIS INDICATOR DO?
It is a well-known fact that volume often precedes price. As such, if you can spot an increased volume early on, you can take a position before the majority joins the trend. The purpose of this indicator is to show the tactical moves of the insiders and the big players before they become obvious to everyone. Similarly, you should more easily be able to identify trend exhaustion and look to close your position.
This volume indicator is largely inspired by Pascal Willain's concept of Effective Volume described in his book "Value in Time" , which is an improvement over Larry Williams' accumulation/distribution formula. The more robust formula takes into account two very important factors:
1) the gaps that are an inevitable part of almost all securities;
2) the closing price in relation to the spread, which indicates the bull/bear strength;
I have slightly modified Pascal Willain's formula for Effective Volume and introduced a few additional features, which I believe make the indicator easier to use and understand.
HOW DOES THE INDICATOR WORK?
1. Volume Bar Deconstruction
The first significant part of this indicator is that it deconstructs the volume bar of your current trading session into one-minute volume bars, separates the significant volume, and then reconstructs the bar again. As a result, you get a new bar, in which only the significant volume is counted. Not only this, but you also get a more comprehensive view of the relationship between buying and selling that occurred on the smaller time frame.
In the screenshot below you can see that although the bears were stronger, the bulls met them with almost identical force, which resulted in absorbing the supply in 1 and then in 2 the demand drove the price up. In a traditional volume bar chart (which is also plotted), you only see the total traded volume in either red or green depending on the closing of the bar. As you would probably agree, this does not reveal the whole story.
Accumulation/distribution by large players and funds is done with great precision, which is hard to catch intraday and nearly impossible on a daily time frame. However, large orders are hard to conceal on the 1-min chart since any unusual volume sticks out like a sore thumb. The whole idea here is for you to get a comprehensive view of what's going on in the small time frame, reveal any hard to spot transactions, and then make an informed decision on your trading time frame.
To ease your analysis even further, the indicator shows you minor volume as a percent of the major volume . Since your current time frame volume bar is a sum of all buying and selling volume from a smaller time frame, you get to see a more complete picture of the buying and selling that occurred. For example, you have a total volume of 150 BTC in a single 1h volume bar, out of which 100 BTC is in selling volume and 50 BTC is in buying volume. What you will see as parameters are this: 50 (buying volume), 100 (selling volume), 50 (minor volume as a percent of the big volume, since 50/100 = 0.5 = 50%). The higher the percentage, the more even the powers between buying and selling are.
2. Volume Trend
Building upon the first feature of the indicator, you can also choose a cumulative volume trend line. It is constructed by evaluating the type of the significant volume - adding it up if the bar closes positive (green) and subtracting it if the bar closes negative (red). The evaluation is once again done on a 1-min time frame by default, but you can change that along with the count lookback period in settings.
3. Bull / Bear Equilibrium
Based upon the volume bars, Bull/Bear Equilibrium shows you the difference between buying and selling pressure under the form of a smoothed histogram. It is particularly useful not only for spotting trends early in the beginning, but also when those trends start reaching a point of exhaustion. You can then move your Stop Loss accordingly, close part of your position to preserve profits, or even look for a good entry position in the opposite direction.
HOW MUCH DOES THE INDICATOR COST ?
As much as I would like to offer it for free (as some of my other ones), a great deal of work, trading logic, and testing have gone into creating this indicator. More than a few hundred iterations and a few dozen branches were required to reach the end result which is a precise combination of usefulness, simplicity, and practicality. Furthermore, this indicator will continue to be updated and user-requested features that improve its performance will be added.
Disclaimer: The purpose of all indicators is to indicate potential setups, which may lead to profitable results. No indicator is perfect and certainly, no indicator has a 100% success rate. They are subject to flaws, wrongful interpretation, bugs, etc. This indicator makes no exception. It must be used with a sound money management plan that puts the main emphasis on protecting your capital. Please, do not rely solely on any single indicator to take trading decisions instead of you. Indicators are storytellers, not fortune tellers . They help you see the bigger picture, not the future.
To find out more about how to gain access to this indicator, please use the provided information below or just message me. Thank you for your time.
vivander_BWAShows the percentage of the body of the candle in relation to the total size of the candle (including wicks)
[A618] Liquidity Levels Based OBV SR with KAMAWe all know OBV plays a very important role in figuring out price volume divergences and it can help anyone analyse the directivity force of the market and has a very good tradeoff if applied correctly
In this Experiment i have derived liquidity levels for OBV using volume jumps inside the market
A volume jump is classified as:
Good Volume Jump = 1.618 times the Average Volume (WMA or 2pole ButterWorth's Filter of Volume)
Great Volume Jump = 2 times the Average Volume (WMA or 2pole ButterWorth's Filter of Volume)
Extreme Volume Jump = 3 times the Average Volume (WMA or 2pole ButterWorth's Filter of Volume)
So the horizontal levels which you see on the indicator (colored in red/ blue / gray lines) are the derived Liquidity Levels for OBV in the Market, these are the levels where OBV is most likely to perform a movement or come back
Also I have applied KAMA indicator on top of OBV for better Directive guidance, as of my experiments KAMA seems to be most stable and consistence of all the other moving averages,
KAMA's Length inculde:
KAMA - 8
KAMA - 34
KAMA - 200
Hope this Script help you guys!
Thanks to Tradingview for providing such an awesome platform
##Note for Credits ::
The Ehlers 2 pole butterworth Filter function is derived from @cheatcountry script ()
ZigZag with Fibonacci LevelsHello Traders,
This is " ZigZag with Fibonacci Levels " script. It finds the ZigZag, draw Fibonacci lines and put labels accordingly. I get many requests for this script, so here it is.
You can set ZigZag period as you wish. Bigger numbers (such 20, 30) may give better perspective and result.
It draws Fibonacci levels between 0%-100% and If the price goes higher/lower than 100% level than the script draws Fibonacci Levels accordingly. This means it draws Fibonacci levels until this levels get higher/lower than the price.
As an example:
if you don't want to see ZigZag Lines then you have option to disable it and see only Fibonacci levels:
You have coloring options for Zigzag, Fibonacci lines and texts:
Enjoy!
Machine Learning / Longs [Experimental]Hello Traders/Programmers,
For long time I thought that if it's possible to make a script that has own memory and criterias in Pine. it would learn and find patterns as images according to given criterias. after we have arrays of strings, lines, labels I tried and made this experimental script. The script works only for Long positions.
Now lets look at how it works:
On each candle it creates an image of last 8 candles. before the image is created it finds highest/lowest levels of 8 candles, and creates a string with the lengths 64 (8 * 8). and for each square, it checks if it contains wick, green or red body, green or red body with wicks. see the following picture:
Each square gets the value:
0: nothing in it
1: only wick in it
2: only red body in it
3. only green body in it
4: red body and wick in it
5: green body and wick in it
And then it checks if price went up equal or higher than user-defined profit. if yes then it adds the image to the memory/array. and I call this part as Learning Part.
what I mean by image is:
if there is 1 or more element in the memory, it creates image for current 8 candles and checks the memory if there is a similar images. If the image has similarity higher than user-defined similarty level then if show the label "Matched" and similarity rate and the image in the memory. if it find any with the similarity rate is equal/greater than user-defined level then it stop searching more.
As an example matched image:
and then price increased and you got the profit :)
Options:
Period: if there is possible profit higher than user-defined minimum profit in that period, it checks the images from 2. to X. bars.
Min Profit: you need to set the minimum expected profit accordingly. for example in 1m chart don't enter %10 as min profit :)
Similarity Rate: as told above, you can set minimum similarity rate, higher similarity rate means better results but if you set higher rates, number of images will decrease. set it wisely :)
Max Memory Size: you can set number of images (that gives the profit equal/higher than you set) to be saved that in memory
Change Bar Color: optionally it can change bar colors if current image is found in the memory
Current version of the script doesn't check if the price reach the minimum profit target, so no statistics.
This is completely experimental work and I made it for fun. No one or no script can predict the future. and you should not try to predict the future.
P.S. it starts searching on last bar, it doesn't check historical bars. if you want you should check it in replay mode :)
if you get calculation time out error then hide/unhide the script. ;)
Enjoy!
Equity chart [LM]Hey Guys,
I have created draft version of chart where you can put your position amount and position price and position date for each entry and it will chart your equity as candle stick chart. There are currently possible to include 4 positions but you can add as many you like by modyfing the code.
It will calculate your average entry based on your input and in date where you add other entry it will create gap. I have already plan to include there also leverage on each position. The idea is that you should trade your equity and with this indicator you will be able to create your custom indicator based on equity chart and not price chart.
!! Unless you will enter position nothing will be rendered
Indicator is under breadth indicator because didn't know where to put it.
I release this script for collaboration and improving the idea with new features
Cheers,
Lukas
Double Mcclellan OscilatorPlots two Mcclellan Oscillators.
First MCO is plotted as the histogram using traditional n values of 19 and 39. Histogram is green when the oscillator is greater than 0.
Second MCO is plotted as the lime green and pink line. N values for the second oscillator should be lower than the first so that it has a shorter window length.
Advance/decline can be calculated using NYSE or NASDAQ stocks.
Trading-Dojo ATH/ATL AlerterTrading-Dojo High-Low indicator with alerts.
Allows you to set popup or email alerts when price breaches historic highs or lows
Or chose Embed method to have it publish directly to a webhook in Discord!
Simply place the indicator on a chart, right-click the indicator lines and add alert. Choose the type of alert you want and that's it.
* Note: the indicator excludes the current candle so if you hit ATH yesterday and you're on the weekly timeframe , it won't fire off an alert. For better resolution use Daily or lower if the asset you are alerting on is very volatile.
Micro Strategy PremiumSince the decision to buy 38,250 Bitcoin under their new treasury policy. Micro Strategy has become an easy and tax efficient way for many investors to gain an exposure to Bitcoin.
This script displays:
- Micro Strategy premium vs price of BTCUSD (CME)
- Micro Strategy premium vs price of BTCUSD (CME) minus Nasdaq 100 (QQQ ETF). A straightforward method to detach Micro Strategy’s share price from the overall performance of the US tech sector. This could potentially give you a more accurate premium.
- Micro Strategy’s 38,250 BTC as a percentage of their Market Cap
This script also acknowledges that Micro Strategy should be renamed “Macro Strategy” and that Michael Saylor is a living legend.
Previous High/Low MTFIndicator to plot higher time frame previous candle highs and lows.
One of the key factor in understanding the trend is to look at higher time-frames chart.
Parameters are explained below:
resolution : Chose resolution of higher timeframe. If set to same as symbol, it will consider next parameter HTFMultiplier for calculation of higher timeframe
HTFMultiplier : Multiply symbol timeframe to by HTFMultiplier to derive higher time-frame
Offset : Number of higher timeframe candles before to be plotted. 1 means - it will show highs/lows of previous higher timeframe candle.
Volume Zone Oscillator [xdecow]Volume Zone Oscillator (VZO) is an indicator that presents a different way of looking at OBV.
VZO is a difference (delta) between OBV and an exponential moving average.
The EMA becomes the baseline 0.
And in this way we can observe the strength of the movements, overbought and oversold (when the OBV is far from the average) and divergences.
BANKNIFTY Auto-Trading Indicator based on Market InternalsNSE:BANKNIFTY
Dear Fellow Traders,
This indicator for BankNifty INTRADAY trading is based on Market Internals - Advance/Decline Volume and TICK
These Market Internals, also known as Breadth Tools helps in identifying the overall market sentiment.
Just doing some technical analysis on Price action doesn't provide good results.
Price action along with Volume gives a meaningful insight and helps in improving the accuracy.
But simple VOLUME information is not sufficient to take a directional view on the markets. A segmentation of POSITIVE and NEGATIVE volume gives a clear picture of the symbol movement.
We can get the volume information FOR ANY STOCKS anywhere. But, VOLUME INFORMATION FOR AN INDEX ALONG WITH POSITIVE AND NEGATIVE VOLUMES are not available in normal trading platforms. And this tool provides the exact feature.
In a nutshell,
1) THIS TOOL PROVIDES BUY/SELL INDICATIONS on the BANKNIFTY based on the underlying stocks' PRICE AND VOLUME
2) THE VOLUME INFORMATION IS BIFURCATED INTO POSITIVE AND NEGATIVE VOLUME , WHICH HELPS IN DECIDING THE MARKET DIRECTION.
P.S: This is an Invite-only indicator. Inbox me for getting access.