Zeta Sector ScannerPeople say trend is friend till it bends.
A proven strategy to get better than broader index returns is to find out what are the best performing sectors in rising market and
what are the worst performing sectors in falling market.
Then buy top stocks of Best Performing Sector (in rising market) or short sell worst performing stocks in falling market.
This strategy, known as 'top-down investment strategy' determines the overall health of the economy of a country first (by evaluating the broader index of that country first).
And then it picks up specific sectors where money is entering or exiting.
Zeta Sector Scanner tracks Nifty50, which is broader index for Indian Market and then picks up best or worst performing sector of the day and displays the info in real time on your chart.
Once you know which sector to target on a given time of the day, pick up the stocks of that sector and the probability of trade going in your favor will increase many fold.
With little modifications, this indicator can be adapted to any world market but currently it caters to Indian Market only.
Индикаторы ширины рынка
Volume Info from Lower Time FramesHello Traders,
We are now able to get info from lower time frames, Many Thanks to Pine Team .This script gets volume info from lower time frames and give alert if there is extreme volumes on last X lower time frame candles (if last X volumes are higher than volume moving average). so that if you set alerts on different securities then you will be able get alert if there is extreme volume moves and you can check the chart immediately.
The options:
Timeframe in Seconds : you can set lower time frames in seconds. by default it's 5 seconds. if you set it 60 then it will show 1min volumes, if you set it 1 then it will show 1 seconds volumes
MA Length : The script draws simple moving average using this length info. by default it's 20.
Number of Bars to Check for Alert : by default it's 5. meaning that if last 5 candles is greater than moving average and if you set alert then you get the alert "Extreme Volume"
Other options are for colors and line width.
As you can see in following example, chart time frame is 1 hour and the script shows volume info of 5 seconds candles:
Enjoy!
Monte Carlo Simulation - Random WalkHello All,
Monte Carlo Simulation is a model used to predict the probability of different outcomes when the intervention of random variables is present. it is used by professionals in such widely disparate fields as finance, project management etc. You can find many articles about Monte Carlo Simulation on the net.
In this script I tried to make Monte Carlo Simulation and "Random Walk". it calculates results over and over, each time using a different set of random values that is created using historical data (500 times by default) and show min-max and some random paths. number of "random walks" is calculated by using number of bars to predict, so if you change "Number of Bars to Predict" then number of random walks may change. Total number of the lines must be less than 500.
"Number of Simulations " is 500 by default, more simulation better results. but if you increase it a lot then you may get "loop takes too long error"
"Number of Bars to Predict" can be between 10-100
"Number of Bars to use as Data Source" is the number of historical bars to use in simulations
Thanks to Ricardo Santos (@RicardoSantos) for letting me use his Random Number Generator Function.
P.S. I am not mathematician and I tried to make it as far as I understood the method. so if you see any issue let me know please.
Some examples:
Number of Bars to Predict = 100:
Number of Bars to Predict = 10:
if you enable "Keep Past Min-Max Levels" option then min-max levels will stay on the chart
Enjoy!
On Balance Volume + Trend + DivergencesModification of original OBV indicator, with addition of Divergences identification & coloring OBV Line based on line (OBV either above or below EMA20 applied to OBV). Indicator works great in correlation with Volume, Stochastic and DMI and shows potential reversals earlier.
DMI with Oversold/Overbought markingModification of original DMI indicator, simply marking background in case of finding Overbought or Oversold levels - this happens when ADX is above both DI+ and DI- values.
MicroStrategy Software Business Share PriceSimilar to the MicroStrategy Premium script. This indicator derives MSTR's core software business value by calculating its Bitcoin holdings as a percentage of market cap. Thus you can do, (1 - Bitcoin holdings as a % of market cap) * current share price = Core business share price
RSI, Range, and Key Level Support Tool v2.1This indicator is actually 3 different indicators combined to be able to watch key levels such as daily/weekly/monthly opens, previous days and week range highs and lows, as well as see Oversold and Overbought conditions relating to the Relative Strength Index (RSI).
- RSI DOTS SYSTEM
The first part is a custom Relative Strength Index indicator that shows RSI dots above in Red and Below in Green of the bars.
As the RSI Dots go from dark and barely visible to bright and Red For Oversold or Green for Overbought it gives a direct representation above the bar chart of Overbought or Oversold conditions. The brighter the color, the closer to 100 (Overbought and Red) or 0 (Oversold and Green) the current RSI is.
As the Overbought and Oversold conditions reverse this will show a bright Yellow Dot over the bar if it crosses a value from Overbought conditions to not Overbought conditions and the same if it crosses from Oversold conditions to not oversold conditions. To put it simply, it shows RSI reversal.
- KEY LEVELS OPENS - Daily, Weekly, Monthly Opens
This is a simple line indicator that shows 3 key levels: Daily Open, Weekly Open, and Monthly Open.
These higher time frame key levels show precisely at what price that time frame opened based on 0 UTC.
- PREVIOUS HIGHS/LOWS
This part of the indicator will show the previous day and even week highs and lows. This will help the user establish a functional range of the previous days and weeks.
The highs and lows for the daily are rows of circles above and below the high and low for that specific day and the previous weekly range are rows of crosses above and below the high and low for the past week.
How to Best use the indicator:
The RSI dots will help the user find the tops and bottoms where the Key Levels Opens and Previous Highs and Lows will help the user establish the range.
Knowing where the local top/bottom is in correlation to the potential range tops and bottoms allows the user to effectively time trend reversals and potential tops/bottoms.
Volume Correlation Indicator [Fournier-Eaton]This script combines two correlation indicators into one:
Volume Oscillator Correlation
Price Correlation
Rationale : This script is predicated on the following premise: we rely often on price correlation. However, we overlook volume-volume correlation too often. The volumetric correlative decoupling of an equity and index or equity - equity can yield important information (and produce it as early or earlier than price-correlation).
Mechanism :
The primary component of this chart is the Volume Correlation Indicator (as red histogram). This is the correlation between the Volume Oscillator of current chart's symbol and the VO of your chosen comparison.
Secondarily, the standard price correlation is also charted for added information in line format.
Example : In the chart attached to this publication, note the following cases:
Case 1: The price correlation with QQQ was increasing as earnings approached. However, the volume correlation with QQQ was clearly decoupled as earnings approached.
Case 2: Contrastingly, other dips in price correlation can be found were volume correlations were behaving in tandem.
Note1: This is the first in a series of volume correlation indicators. Please let me know if you find this useful.
Cumulative Pivot HighLowThis indicator counts number of higher highs/lows and number of lower highs/lows and calculates trend based on that.
Indicator line shows (sum of higher highs/lows - sum of lower highs/lows) derived from last loopback periods. Indicator is green if last two consecutive highs/lows formed are on higher side. Red if on lower side. (Consecutive numbers can be controlled by parameter direction_threshold )
combineHighsAndLows if unselected shows not cumulative version but last consecutive highs and lows marked in red or green according to the trend.
Shares Risk (Long)Ever struggle to know how many shares you should be placing your order with? Risk is different for every person and every stock. This can help.
In the example above, I've added this indicator the the chart.
I then specified:
Risk Amount ($) = $500. (The max amount I'm willing to risk.)
Risk Source = (another indicator) Lower Limit 3 . (See Lower Limits for more details)
Source Risk (%) = 0.0 (The default is 5.0 expecting the Risk Source to be the close.**)
Based upon how much I'm willing to risk, and the price difference between the close and Risk Source , this indicator will show the number of shares to purchase such that if the price drops to the stop level specified, my value loss should be limited to the Risk Amount .
333 shares is the value calculated for this example (latest bar). You can easily see how many shares you need to purchase for the lastest bar as well as track the previous values on the chart and the indicator cursor data.
---
** WARNING: There's no magic here. It's just math. So if you specify another indicator as the source, the values could get a bit strange and if the price is very close to the stop level, the number of shares could be unreasonably high. To help avoid this you can increase the minimum percent.
Multi Time Frame Candles with Volume Info / 3DHello Traders,
This is my second Multi Time Frame Candles script but with this new one, you will have some new features such volume info, remaining time to close of higher time frame candle and also developed using new features of Pine such array of lines. also I tried to make it 3D for better visualization ;) also it shows new highs/lows / breakouts.
I tried to make many things optional, so you can change almost everything using options.
What you can change using options:
- Higher time frame
- Number of Candles
- Candle Colors Up/Down
- Wick Color
- Volume colors Up/Down
- Text color of Remaining Time
- Shadow Color
- Background color
- Start bar of the candles (so you can see many higher times frame candles in same window)
- 3D effect, by default it's enables but you can disable 3D view
Lets see some examples:
Remaining time:
Breakouts:
You can combine different higher time frames:
if you don't want 3D view then combining different higher time frames:
You can change background color:
Enjoy!
Daily High & Low BoundaryDisplays the day's progressive high and low of the day colorized by the day of the week.
US10Y / DXY - 10 Yield correlated This oscillator tracks the US and US10Y , Script is based in SPX/US oscillator by @someguy
Local LimitsDisplays recent higher highs, lower highs, lower lows, and higher lows as a collection of local limit indicators.
In its 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 and resistance levels.
Makes current trends more visible.
Excellent for use as a trailing stop algorithm.
Parameters
Single Bar Sensitivity: True (default) reacts to individual bars. False only responds to the alignment of 2 bars.
Margin (1-5): Adds extra distance from higher lows and lower highs to reduce the sensitivity of broken trends.
Single indicators with configurable sources:
Local Limit Higher
Local Limit Lower
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
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