FCMS - Arrays Exercise - High Low with Arrays - StudyThis is just a script to exercise the use of arrays on pine script.
I think we could say that every for loop we had in pine script before the arrays, is eligible to become an array.
Our script will get more efficient and more reliable.
As every "if" case is elegible to became a function
I confess I was addicted to use if, else if, else in my codes, but recently i've been updating my scripts and it's became more efficient
I couldn't find an array function that insert an value removing the oldest one, so I'm using this condition to "shift" the first value.
I'll update as soon as I find a better way to do it.
In any case, for this specific goal, we already have an built in function, as I let on script
Indicateurs d'étendue
Hariz Hazwan 5 line indicatordetermining the risks by looking for the divergence of price from moving averages support line
Financial Statement (Annual)This is an advanced tool to analyze the economic and financial health of a company. The tool uses exactly the same data as built-in annual financial metrics by TradingView.
Provides better visualization and additional indicators (maximum, minimum, average, median, linear regression ) that greatly simplifies the analysis of financial data.
All 222 built-in metrics available
Stay cheeki breeki and don't get sick. Good luck!
All-time high and percentage dropsThis script calculates the ATH of whichever chart you use and plots it in blue
There is also an option to display the following ATH percentages: 90, 80, 70, 60, 50, 40 and 30 in white
Financial Statement (Quarterly)This is an advanced tool to analyze the economic and financial health of a company. The tool uses exactly the same data as built-in quarterly financial metrics by TradingView.
Provides better visualization and additional indicators (maximum, minimum, average, median, linear regression) that greatly simplifies the analysis of financial data. If you have ever used the built-in metrics then you will get what I mean:
214 metrics available except:
Dividends payable
Notes payable
Other short term debt
Float shares outstanding
KZ index
Net income per employee
Number of employees
Revenue per employee
Stay cheeki breeki and don't get sick. Good luck!
1st Hour High and Low ISRDaily Range :
1st Hour High and Low From Market Start Time
ISR = Initial Support Resistance
Local Limit UpperDisplays recent higher and lower highs.
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 resistance levels.
Makes current trends more visible.
Excellent as a trailing stop (short) algorithm.
Can be used with its sibling: Local Limit Lower
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
TraderLion's Relative Strength LineRelative Strength Line
Introduction
The script adds a line/candlestick to your charts that shows how well a stock is acting relative to the Index. We call this Relative Strength Line.
Relative Strength ( RS ) separates leading stocks from laggards. Stocks showing RS during a market correction phase will often be the strongest movers once the general market is ready to cooperate.
Instructions on How To Add this Script to Your TradingView Charting Platform
Step 0: Head over to www.tradingview.com
Step 1: Add “TraderLion's Relative Strength Line” to your Favorites by clicking “Add to Favorite Scripts” near the bottom of the page.
Step 2: Click “Indicators” at the very top on TradingView. Under Favorites click “Relative Strength Line”
Step 3: Hover on the Indicator name ( Relative Strength Line) on your plot under legend and click the three dots at the very right. Under the “Pin To Scale” choose a setting that works best for you (optional).
Step 4: Done. You have now plotted the Relative Strength Line
Features
1) The Pink Dot symbolizes the RS Line reaching new highs before price. RS New Highs Before Price (RSNHBP) is often indicative of a break out emerging.
2) Direction-Based Relative Strength. The RS Line can be customized to color coat depending on its most recent direction. When the line moves up it will be blue, and on the way down pink. Easily glance and see phases of relative strength on the chart.
3) Raw RS Rating - The RS Line Script features an RS Rating from 1-99 with 99 being the strongest rating. The measures the stock’s performance relative to the Index you input.
3) Custom Index Input under Settings - requested feature!
4) Candlestick Relative Strength - A different unique way to view the Relative Strength Line
5) Alerts Conditions - Relative Strength New Highs and Relative Strength New Highs Before Price (RSNHBP)
Captain Jack Ratio IndicatorFiyat kazanç oranı
Fiyat Defteri Oranı
Fiyat Defter Değeri
Oranları Hesaplar ve Kazançları görüntüler.
Kullanacak olan arkadaşlara başarılar dilerim.
Soru ve görüşlerinizi iletebilirsiniz.
BITCOIN AUTO TRADING STRATEGYBITCOIN AUTO TRADING STRATEGY
This strategy shows buy and sell signal. Designed and optimized only for Bitcoin. You can use it spot or futures markets and 30 minutes time frame. Indicator gives trade points when optimized sma trending but filtered choppinnes index. Profit factor over 3 for all time backtest period. Care using when you set leverage. I recommend maximum 5x leverage for auto trading.
Profitable trade count 119
Lost trade count 115
Profit factor 3
For access message me or go to my web link on my profile.
Initial Balance & extensions Custom session time and IB durationThe indicator will plot Initial Balance levels and extensions. The session start and end times are configurable depending on instrument, as well as the Initial Balance end time. The session times must be entered in the underlying instrument's timezone, for example:
ES-futures (Chicago Timezone)
Session Start: 0830
Initial Balance End: 0930
Session End: 1515
US-Stocks (New York Timezone)
Session Start: 0930
Initial Balance End: 1030
Session End: 1600
Europe Futures (Madrid Timezone)
Session Start: 0800
Initial balance End: 0900
Session End: 2200
Colors and linewidths are also customisable.
Better OBVOBV with William C. Garrett's Approximation
In the classical OBV (On-Balance Volume) indicator, it simply takes the idea from traditional tape reading - treat the "up tick" as Buy, "down tick" as Sell, and it assumes no change in price as neutral* (*which is not the case in tape reading).
When it comes to interpret the daily volume as such, errors will add up cumulatively. For example, there are days when a Doji Star with high volume just merely one cent higher than yesterday price and the whole day volume would be taken as a BUY Volume....
Here is a gentlemen, William C. Garrett, attempted to break down the daily volume into two parts in his book - "Torque Analysis of Stock Market Cycle".
Published indicator has two modes: Cumulative and Time Segmented. Time Segmented Volume (TSV) - performs a MACD operation on the Garrett Money Flow.
Note on Divergence:
When using a indicator as Time Segmented Money Flow, divergence would surely occur on and off. This is where Wyckoff 3rd principle comes into play - "Effort vs Result" that is not matching. Meaning that the cumulation of shares goes in one direction while the price goes another direction.
FIN NIFTY Adv/Dec1) FIN NIFTY Index Advance-Decline count
2) Each session, it reads the number of stock is +Ve or -Ve
3) Whichever the side +Ve or -Ve side moving stock is more than count will be plotted
4) at +/- 11 drawn a dotted line if Count is > = +/-11 FIN Nifty is moving in a strong army
Eg:-
in the current session, 11 Stock is moving in +Ve direction & 9 are in -Ve direction
11 count will be plotted in the chart
Previous OHLCThe scripts places horizontal levels on your charts indicating the previous Daily, Weekly or Monthly OHLC values over the current timeframe.
Slightly modified version of Nanda86's "Previous OHLC" script. I corrected a couple of bugs and added more control over colors and labels in general. I also removed the hourly OHLCs.
Pivot OBV Reset [LM]Hi traders,
I woud like to introduce new script of obv indicator that resets on creation of new pivot high or low. Note that it resets when it's known that it is a pivot. On the reset candle adds accumulated value from previous candles defined by i_right input.
It has following settings:
pivot setting - here you can infulence pivot detection
obv setting - here you can influence whether it should be multiplied by price or not, if it should show when the reset happen
Hope you'll enjoy it
Logarithmic Trend lineLogarithmic Trend line is used to model data where growth or decay accelerates rapidly at first and then slows over time.
This model is for the long term series data (such as 10 or 20 years time span).
Technical issues
*The user have to pan over the chart from the beginning to the end of the study range (such as 10 years of bars) so the pine script could generate those lines on the chart.
*If on the chart the number of bar is less than the lookback period, it won't generate any lines as well.
ZigZag Multi Time Frame with Fibonacci RetracementHello Traders,
This is ZigZag Multi Time Frame with Fibonacci Retracement script. It calculates the ZigZag using Higher Time Frame, draw Fibonacci Retracement lines and put labels accordingly. I already published Zigzag with Fibonacci Levels script but this one is Multi Time Frame and I didn't want to change/update it.
You can set ZigZag Period and Resolution as you wish. Zigzag is calculated using higher time frames (ex: 1day) so you better choose small numbers as Zigzag Period, such 2, 3 etc. you should choose higher time frame wisely, meaning that you should not set 1Day while chart resolution is 1min ;)
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.
"Show Zig Zag" is not enabled by default, you can enable it if you want to see ZigZag as well.
You have options to set Text Color, Line Color, Zigzag Up Color and Zigzag Down Color.
You can set the location of the Fibonnaci Levels -> Left or Right
You also have option to enable/disable following Fibonnaci Levels:
---> 0.236
---> 0.382
---> 0.500
---> 0.618
---> 0.786
I added "Colorful Fibonacci Levels" for fun. if you enable it then Fibonacci line colors will be different randomly on each move, see it for yourself :)
Some Screenshots:
if you enable "Show Zigzag Option":
how the script adjust levels automatically:
if you set Label Location as "Right":
if you enable "Colorful Fibonacci Levels" then Line colors will be changed on each move randomly ;)
Enjoy!
BEAM_BAND_wozdux.2021_1[wozdux]The indicator, which tracks the cycles of Bitcoin.
The corridor between the upper and lower levels is marked by the fibonacci levels. Additional fibonacci levels become support or resistance levels as the price moves.
Top level-determines the width of the channel.
Bottom level-defines the main bottom line.
The number of bars is the value of the bitcoin cycle. This is an empirical selected value. for other amount of cryptocoins, it is necessary to pick apart.
The formula for calculating this indicator is taken from the article THE BEAM INDICATOR. In addition, I extended this indicator with fibonacci levels in order to segment the price movement between the levels of the BAEM channel.
///////////////////////////////////////////
Индикатор, отслеживающий циклы Биткоина. Коридор между верхним и нижним уровнем размечен уровнями фибоначчи.
Дополнительные уровни фибоначчи становятся уровнями поддержки или сопротивления в процессе движения цены.
Уровень верха - определяет ширину канала.
Уровень низа - определяет основную нижнюю линию.
Цикл количество баров - это величина цикла биткоина. Это эмпирическая подобранная величина, для других криптомонет её нужно подбирать отдельно.
Формула для вычисления данного индикатора взята из статьи THE BEAM INDICATOR. Кроме того, я расширила этот индикатор уровнями фибоначчи для того, чтобы сегменты движения цены между уровнями канала BAEM.
On Balance Volume FieldsThe On Balance Volume (OBV) indicator was developed by Joseph E. Granville and published first in his book "New key to stock market profits" in 1963. It uses volume to determine momentum of an asset. The base concept of OBV is - in simple terms - you take a running total of the volume and either add or subtract the current timeframe volume if the market goes up or down. The simplest use cases only use the line build that way to confirm direction of price, but the possibilities and applications of OBV go far beyond that and are (at least to my knowledge) not found in existing indicators available on this platform.
If you are interested to get a deeper understanding of OBV, I recommend the lecture of the above mentioned book by Granville. All the features described below are taken directly from the book or are inspired by it (deviations will be marked accordingly). If you have no prior experience with OBV, I recommend to start simple and read an easy introduction (e.g. On-Balance Volume (OBV) Definition from Investopedia) and start applying the basic concepts first before heading into the more advanced analysis of OBV fields and trends.
Markets and Timeframes
As the OBV is "just" a momentum indicator, it should be applicable to any market and timeframe.
As a long term investor, my experience is limited to the longer timeframes (primarily daily), which is also how Granville applies it. But that is most likely due to the time it was developed and the lack of lower timeframe data at that point in time. I don't see why it wouldn't be applicable to any timeframe, but cannot speak from experience here so do your own research and let me know. Likewise, I invest in the crypto markets almost exclusively and hence this is where my experience with this indicator comes from.
Feature List
As a general note before starting into the description of the individual features: I use the colors and values of the default settings of the indicator to describe it. The general look and feel obviously can be customized (and I highly recommend doing so, as this is a very visual representation of volume, and it should suit your way of looking at a chart) and I also tried to make the individual features as customizable as possible.
Also, all additions to the OBV itself can be turned off so that you're left with just the OBV line (although if that's what you want, I recommend a version of the indicator with less overhead).
Fields
Fields are defined as successive UPs or DOWNs on the OBV. An UP is any OBV reading above the last high pivot and subsequently a DOWN is any reading below the last low pivot. An UP-field is the time from the first UP after a DOWN-field to the first DOWN (not including). The same goes for a DOWN field but vice versa.
The field serves the same purpose as the OBV itself. To indicate momentum direction. I haven't found much use for the fields themselves other than serving as a more smoothed view on the current momentum. The real power of the fields emerges when starting to determine larger trends of off them (as you will see soon).
Therefor the fields are displayed on the indicator as background colors (UP = green, DOWN = red), but only very faint to not distract too much from the other parts of the indicator.
Major Volume Trend
The major volume trend - from which Granville says, it's the one that tends to precede price - is determined as the succession of the highest highs and lowest lows of UP and DOWN fields. It is represented by the colors of the numbers printed on the highs and lows of the fields.
The trend to be "Rising" is defined as the highest high of an UP field being higher than the highest high of the last UP field and the lowest low of the last DOWN field being higher than the lowest low of the prior DOWN field. And vice versa for a "Falling" trend. If the trend does not have a rising or falling pattern, it is said to be "Doubtful". The colors are indicated as follows:
Rising = green
Falling = red
Doubtful = blue
ZigZag Swing count
The swing count is determined by counting the number of swings within a trend (as described above) and is represented by the numbers above the highs and lows of the fields. It determines the length and thus strength of a trend.
In general there are two ways to determine the count. The first one is by counting the swings between pivots and the second one by counting the swings between highs and lows of fields. This indicator represents the SECOND one as it represents the longer term trend (which I'm more interested in as it denotes a longer term perspective).
However, the ZigZag count has three applications on the OBV. The "simple ZigZag" is a count of three swings which mainly tells you that the shorter term momentum of the market has changed and the current trend is weakening. This doesn't mean it will reverse. A count of three downs is still healthy if it occurs on a strong uptrend (and vice versa) and it should primarily serve as a sign of caution. If the count increases beyond three, the last trend is weakening considerably, and you should probably take action.
The second count to look out for is five swings - the "compound ZigZag". If this goes hand in hand with breaking a major support/resistance on the OBV it can offer a buying/selling opportunity in the direction of the trend. Otherwise, there's a good chance that this is a reversal signal.
The third count is nine. To quote Granville directly: "there is a very strong tendency FOR MAJOR REVERSAL OF REND AFTER THE NINTH SWING" (emphasis by the author). This is something I look out for and get cautious about, although I have found signal to be weak in an overextended market. I have observed counts of 10 and even 12 which did not result in a major reversal and the market trended further after a short period of time. This is still a major sign of caution and should not be taken lightly.
Moving average
Although Granville talks only briefly about averages and the only mention of a specific one is the 10MA, I found moving averages to be a very valuable addition to my analysis of the OBV movements.
The indicator uses three Exponential Moving Averages. A long term one to determine the general direction and two short term ones to determine the momentum of the trend. Especially for the latter two, keep in mind that those are very indirect as they are indicators of an indicator anyway and I they should not necessarily be used as support or resistance (although that might sometimes be helpful). I recommend paying most attention to the longterm average as I've found it to be very accurate when determining the longterm trend of a market (even better than the same indicator on the price).
If the OBV is above the long term average, the space between OBV and average is filled green and filled red if below. The colors and defaults for the averages are:
long term, 144EMA, green
short term 1, 21EMA, blue
short term 2, 55EMA, red
Divergences
This is a very rudimentary adaption of the standard TradingView "Divergence Indicator". I find it helpful to have these on the radar, but do not actively use them (as in having a strategy based on OBV/price divergence). This is something that I would eventually pick up in a later version of the indicator if there is any demand for it, or I find the time to look into strategies based on this.
Comparison line
A small but very helpful addition to the indicator is a horizontal line that traces the current OBV value in real time, which makes it very easy to compare the current value of the OBV to historic values (which is a study I can highly recommend).
sDEFI Synthetix ExchangeStudy plotting sDEFI per sips.synthetix.io
Scale on the axis is not correct, it will always show whatever the base asset you open and hide. Use this study only for visual charting.