Indicateurs d'étendue
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.
Advance Decline Line with Divergence Finder
The advance/decline line (A/D) is a breadth indicator used to show how many stocks are participating in a stock market rally or decline.
When major indexes are rallying, a rising A/D line confirms the uptrend showing strong participation.
If major indexes are rallying and the A/D line is falling, it shows that fewer stocks are participating in the rally which means the index could be nearing the end of its rally.
When major indexes are declining, a falling advance/decline line confirms the downtrend.
If major indexes are declining and the A/D line is rising, fewer stocks are declining over time, which means the index may be near the end of its decline.
For more info: www.investopedia.com
Bride Index 4.1Bride Index 4.1 is a update of Bride Index 2.0 version. It now includes non-repaiting function and transparency input for EMAs lines.
This indicator shows possibles prices for the asset in daily or weekly close price with a scale from 3% to 60% (from 0.5% to 10% each line).
Attention for the input fields:
Period - D ou W (Upper case) - This field MUST have upper case letter. If you want to put close in minutes or hours, you must put the amount of minutes of the period (eg. 30 minutes insert 30 or 2 hours insert 120 ).
Variation (0.5% to 10%) - This field changes the gap between the lines in % of the close price.
PIPT | Power Index Pool Token | DeFi indexPowerPool provides a DeFi index that has too many components to be used as a chart ticker.
So here is an indicator to bypass the ticker limit.
From the PowerPool docs : app.powerpool.finance
The chart shows it in comparison to other DeFi indexes, quite a difference as you can see!
DPI | DeFi Pulse IndexTokenSets and DeFi Pulse provide a DeFi index that has too many components to be used as a chart ticker.
So here is an indicator to bypass the ticker limit.
From the TokenSets docs : www.tokensets.com
The chart shows it in comparison to other DeFi indexes, quite a difference as you can see!
sDEFI IndexThe Synthetix Exchange provides a DeFi index that has too many components to be used as a chart ticker.
So here is an indicator to bypass the ticker limit.
From the Synthetics docs : docs.synthetix.io
DeFi Index (sDEFI)
Contract: 0xe1aFe1Fd76Fd88f78cBf599ea1846231B8bA3B6B
Token | Initial Weight
---------------------------
Aave | 15%
Synthetix Network Token | 15%
yearn.finance | 15%
Uniswap | 10%
Compound | 7.50%
Maker | 7.50%
Balancer | 5%
Curve DAO Token | 5%
Kyber Network | 5%
Ren | 5%
UMA | 5%
Wrapped Nexus Mutual | 5%
The chart shows it in comparison to FTX's DeFi index, quite a difference as you can see!
Test: range mappingEXPERIMENTAL:
just a wild experiment..
mapping the average range break points to find natural hubs of support and resistance?!
Bride Index 2.0This indicator shows possibles prices for the asset in daily or weekly close price with a scale from 3% to 60% (from 0.5% to 10% each line).
Attention for the input fields:
Period - D ou W (Upper case) - This field MUST have upper case letter.
Variation (0.5% to 10%) - This field changes the gap between the lines in % of the close price.
Candle Color ChangeSimple code for change in Barcolor if the range (high-low) is bigger than the last 5 candles.
[fikira] - [abcd]Harmonic patterns (only abcd) with variable left side (bars in history) length of pivot points
Leftbars = 1
Leftbars = 3
Leftbars = 5
Added S/R levels
Background to highlight cash/session range [Futures]A simple script which allows the user to highlight the background of a certain session. At the moment there is only one session available, I will work on multiple highlights for numerous sessions at a later date.
Deviation rate of Chinese stock market index// Deviation rate of Chinese stock market index
//The purpose of the indicator is to monitor the Chinese stock market index deviation rate to the 20EMA, so each major index can be observed longitudinally at the same time.
//This indicator give signal of which Index or instrument should you be focused and when should you enter the market to get a long or short position.
//The chart shows the deviation rate between the current price of each major index current price to the 20EMA.
//Also it count a deductive ratio between current price to the previous 20th bar close price to (which lead to the slope of the 20SMA)
//When using, adjust the corresponding period according to the chart period.
//The word DI (divergence) represents the deviation value between the current price and 20EMA, and DE (deduction) represents the deviation value between the current price and the 20 deduction price.
//Attention marker: The marker tells one of the moving average (EMA20 and MA20) is turning towards the opposite direction. When DE and DI one is plus , one is minus attention marker appear on the instrument title.
//Take the bull trend as an example. If the price is higher than ema20, the EMA20 is turning.If the price is higher than the close price of the bar 20 days ago , the sma20 is turning.
//When the ema20 has not turned around to opposite direction , and the ma20 is turning , the deviation rate of the moving average and the deviation rate of the deductible price are different in positive or negative.
//The marker as a reminder will appear on the instrument title.
//How to use this watchlist: You can freely replace the major indices with the instrument you are focused.
Relative Strength Index of EU and US Stock Index Trends quality//Relative Strength Index of European and US Stock Index Trends quality
//This indicator reveals the relative strength of European and US stock index futures.
//take Bull trend as an example , the current closed price>EMA20 value and the current closed price >20th previous bar closed price( deduction price),
//it's defined as a lower level bull trend .If the current price EMA20>EMA60, it's defined as a higher level bull trend .If the EMA20>EMA60>EMA120,it's defined as the highest level bull trend.
//You can choose to draw the curve with the deviation rate of the original major indexes to 20EMA, or draw the deviation rate with the average value (default value is 5 bars).
//In addition, a more technical method is added to analyze the deviation changes of the major indexes.The deviation rate changing velocity value, parameter tan (abbreviated by t) of 1, 2, 5, 10 is introduced.
//You can have the option of calculate the tan using average value of 5 candlesticks or original value.
//Taking tan1 as an example, it indicates how much the deviation rate between the current price and the previous candlestick has changed.
//The indicator of the index color and the description of the trend quality color can be switched off in option.
//In addition, this code color scheme is only suitable for black background (the code color needs to be changed by yourself if you use white background).
HhLl-OscilatorSimple oscillator which checks how many highs and how many lows the price is making. Parameters are as explained below:
lookback - Checks how many highs and lows it is making in these many bars. Sum of all highs and lows are taken for plotting.
periods - Initial period to check high and lows
multiples - Number of multiples on initial period for which highs and lows are checked
colorCandles - CandleColor based on the oscillator
If periods is 20 and multiples is 5 and loopback is 10
Indicator checks for last 10 bars how many highs/lows are made for 20, 40, 60, 80 and 100 periods. Sum of all highs and lows are plotted on the oscillator overlay