Example: Monte Carlo SimulationExperimental:
Example execution of Monte Carlo Simulation applied to the markets(this is my interpretation of the algo so inconsistencys may appear).
note:
the algorithm is very demanding so performance is limited.
Breitenindikatoren
High - Low Trend TunnelHigh - Low Trend Tunnel Experiment.
Using latest pinescript Array support!
Plotting Highest highs and Lowest lows for specific length (can be defined in settings).
The blue line is whom determinate the direction.
Blue line is the average of the highest highs and lowest lows smoothed by EMA.
Green - Up Trending.
Red - Down Trending.
Yellow - Squeeze, a reversal might be coming.
Any suggestions/comments are welcome as this is an experiment.
TMSignal Trend Channel V1.0TMSignal Trend Channel V1.0: Automatically calculates bullish , bearish or lateral channels. %Pearson's R is added for better trend analysis.
Deviations can be configured and adjusted for greater precision in the marked channels.
We hope you like it! Contact us any question or improvement suggestions.
High/Low meterUsing the new 'pinescript' array support to build an High/Low tunnel meter.
Using the Array to save only X HIGHEST HIGHS and Y LOWEST LOWS.
By the X and Y i build a tunnel - X is the top line (highs) and Y bottom line (lows)
Green - Up Trending
Red - Down Trending
Yellow - Reversal / drawback might occur.
Rain On Me PRO 3/3This is the part 3 of Rain On Me PRO. It follow my two other indicators "Rain On Me" and "Rain On Me V2". This version is called "PRO" because it is less "user-friendly" than the two previous versions. But it is more faster, and cleaner than ever!
This indicator is separated into 3 parts. You can find all parts into my profile in the « Scripts » section. Once the 3 parts together, the indicator is complete.
Here are the features for this part:
-MTF Fibonacci on 10 levels with level 0 in the middle and an "info panel" to indicate you the key levels. You can set an alert for each level cross.
-MTF High/Low (Red dots is last low and green dots is last high).
-Bollinger.
-Ichimoku Cloud with baseline (red) and alerts (SenkouA and SenkouB Cross or Tenkan and Kijun Cross).
Everything is fully customizable in settings.
To place an alert, always choose the "Once per bar" option.
Many functions are still to come. So don't hesitate to report bugs, suggestions and follow me to always be kept informed of the next updates to come!
//ALWAYS DELETE INDICATOR AND ALERTS AND RESET THEM AFTER AN UPDATE!
Thank again everyone for your support!
A BIG THANKS TO QUANTNOMAD FOR GIVING ME ITS AUTHORIZATION TO USE, MODIFY AND REPUBLIC ITS "Ultimate Pivot Points Alerts" script indicator:
Good trade everyone! And remember, money management is the most important!
Rain On Me PRO 2/3This is the part 2 of Rain On Me PRO. It follow my two other indicators "Rain On Me" and "Rain On Me V2". This version is called "PRO" because it is less "user-friendly" than the two previous versions. But it is more faster, and cleaner than ever!
This indicator is separated into 3 parts. You can find all parts into my profile in the « Scripts » section. Once the 3 parts together, the indicator is complete.
Here are the features for this part:
-Support/Resistance and Range lines (Red is Resistance, Yellow is Range, Green is Support).
-MTF Trend Line following the trend with red color for bearish trend and green color for bullish trend (Based on volume so it work only where the volume information flux is available).
-MTF Fractals with alerts. (Zigzag based on high and low).
Everything is fully customizable in settings.
To place an alert, always choose the "Once per bar" option.
Many functions are still to come. So don't hesitate to report bugs, suggestions and follow me to always be kept informed of the next updates to come!
//ALWAYS DELETE INDICATOR AND ALERTS AND RESET THEM AFTER AN UPDATE!
Thank again for your support!
Good trade everyone! And remember, money management is the most important!
TMsignal - Auto Fibonacci V1.0TMSignal Auto Fibonacci V1.0: Automatically calculates the Fibonacci Retracement + Extension of 161.8% in order to always have it plotted in a "millimeter" way.
At the same time, it allows viewing or removing the different levels, so that each one can be configured as desired.
We hope you like it! Contact us any question or improvement suggestions.
BANKNIFTY Adv/Dec1) BANKNIFTY Index Advance-Decline count
2) Each session, it reads the number of stock are +Ve or -Ve
3) Whichever the side +Ve or -Ve side moving stock is more than count will be plotted
4) at +/- 7 drawn a dotted line if Count is > = +/-7 Nifty is moving in a strong army
Eg:-
in the current session, 7 Stock is moving in +Ve direction & 6 are in -Ve direction
7 count will be plotted in the chart
Fama-French 3 Factor ModelFama-French 3 Factor Model
Extension of the Capital Asset Pricing Model (CAPM)
CAPM
Ra = Rfr +
where,
Ra = Return of the Asset
Rfr = Risk-Free Rate
βa = Beta Coefficient of the Asset
Rm - Rfr = Market Risk Premium
Fama-French 3 Factor
r = rf + β1*(rm - rf) + β2(smh) +β3(hml)
r = Expected rate of return
rf = Risk-free rate
ß = Factor’s coefficient (sensitivity)
(rm – rf) = Market risk premium
SMB (Small Minus Big) = Historic excess returns of small-cap companies over large-cap companies
HML (High Minus Low) = Historic excess returns of value stocks (high book-to-price ratio) over growth stocks (low book-to-price ratio)
Small is set to $EWSC
Invesco S&P SmallCap 600® Equal Weight ETF
Big is set to $EQLW
Invesco S&P 100 Equal Weight ETF
High is set to $IUSV
iShares Core S&P US Value ETF
Low is set to $IUSG
iShares Core S&P US Growth ETF
returns selections
'returns'
'logarithmic returns' (use for realized (historical) returns)
'geometric returns' (compounded returns)
risk-free rate selections:
$DTB3
$DGS2
$DGS5
$DGS10
$DGS30
tf = primary time-frame
rtf = reference time-frame
Kal's MTF OBV Haar Version 3Kal’s Multi-Time-Frame On-Balance-Volume Haar, also known as Kal’s MTF OBV Haar is a method/study for finding trending volume levels on stocks, indexes and cryptocurrencies using OBV, CMF and CCI over different time-frames (10Min, 1H, 4H, 1D, 1W, 1Month).
Upon adding to the 10Min chart, the sample Image in Tradingview looks as follows:
Note: Always check your time-frame(TF). Compare current TF to a row’s(bead row’s) time-frame. Ensure current TF is lower than a row’s time-frame when looking at it and higher time-frame rows above it. For instance, if you choose your chart’s time-frame at 1D, the lower time-frame rows(i.e. 10Min, 1H, 4H) don’t make sense.
For cryptocurrencies, one week is 7 periods, two weeks is 14 periods
For stocks, one week is 5 periods, two weeks is 10 periods
For the study of stocks, I used
9-period EMA over OBV for time-frames (10Min, 1H, 4H, D)
4-period EMA over OBV for time-frames (W, M)
For the study of cryptocurrencies, I would update EMAs as follows:
13-period EMA over OBV for time-frames (10Min, 1H, 4H, D)
6-period EMA over OBV for time-frames (W, M)
These days I'm finding the following parameters have better fitting
19-period EMA over OBV for time-frames (10Min, 1H, 4H, D)
9-period EMA over OBV for time-frames (W, M)
Description:
---------------
In the study plot, the lowest row is 10Min, the row above 10Min is 1H, then 4H, then 1D, then 1W and the highest row is 1M
Note: Always check your time-frame(TF). Compare current TF to a row’s(bead row’s) time-frame. Ensure current TF is lower than a row’s time-frame when looking at it and higher time-frame rows above it. For instance, if you choose your chart’s time-frame at 1D, the lower time-frame rows(i.e. 10Min, 1H, 4H) don’t make sense.
Lime( Bright Green) dot implies Trending Uptrend for that time-frame
Red dot implies Trending Downward for that time-frame
It’s best to wait and research for possibility of Trend Reversal during the following dots/bricks:
Silver dot implies indecisive up
Orange dot implies indecisive downtrend
Lime Brick implies CCI is near Zero line( between 15 and 0)
Red Brick implies CCI is near Zero line( between -15 and 0)
Purple dot implies CCI zero rejection to possibly/probably continue trend UP
Yellow dot implies CCI zero rejection to possibly/probably continue trend Down
Aqua dot implies that trend is overbought or oversold. This dot usually happens between red dots or green dots. Therefore, it’s best to wait for pull-back especially in lower time frames.
Safe Trading!
Kal Gandikota
Legal Disclaimer: This script is published here so I get replies from fellow viewers to educate myself. Hence, if anyone uses this script for making their financial decisions, I am not responsible for any failures incurred. If you have questions or improvements related to this script, please feel free to leave comments and as time permits, will respond to those comments.
Previous Candle High and LowThis Indicator add's a label over and below the previous candle which show's it's high and low values.
NIFTY Adv/Dec Live Count1) NIFTY Index Advance-Decline count
2) Each session, it reads the number of stock are +Ve or -Ve
3) Whichever the side +Ve or -Ve side moving stock is more than count will be plotted
4) at +/- 25 drawn a dotted line if Count is > = +/-25 Nifty is moving in a strong army
Eg:-
in the current session, 30 Stock is moving in +Ve direction & 10 are in -Ve direction
30 count will be plotted in the chart
Stoch X, an Indicator of Indicators by DGTStochastic refers to a randomly determined process and financial markets use stochastic models to represent the seemingly random behaviour of assets and then used by quantitative analysts to value options on asset prices
The stochastic oscillator, developed by George Lane, presents the location of the closing price of a stock in relation to the high and low range of the price of a stock over a period of time. Lane has said that the stochastic oscillator does not follow price or volume or anything similar. He indicates that the oscillator follows the speed or momentum of price.
Traditionally, readings over 80 are considered in the overbought range, and readings under 20 are considered oversold. Please note that, very strong trends can maintain overbought or oversold conditions for an extended period and traders should look to changes in the stochastic oscillator for clues about future trend shifts. It is advised to check the higher timeframe of your trading timeframe and see where you are in the “big picture”
Signal crosses , intersection of stochastic and its signal line is considered to be a signal that a reversal may be in the works
Divergence between the stochastic oscillator and trending price action is also seen as an important reversal signal
Lane also reveals in interviews that, as a rule, the momentum or speed of the price of a stock changes before the price changes itself . In this way, the stochastic oscillator can be used to foreshadow reversals when the indicator reveals bullish or bearish divergences. This signal is the first, and arguably the most important, trading signal Lane identified.
What is Stochastic X ?
Stochastic X , is essentially an indicator of an indicator, providing stochastic calculation to some of well known indicators, such as RSI, MFI, OBV, etc. This means that it is a measure of selected specific indicator relative to its own high/low range over a user defined period of time.
Features of Stoch X
1- Displays Stoch of and indicator plus a companion indicator (companion display can be disabled from user dialog box)
Available options
Stoch Source plus PM A, where Source is close price and PMA refers to Price Distance to its Moving Average (for further details you may check my study of Price Distance to its MA by DGT, and different application of distance concept available with “MACD-X, More Than MACD" And “P-MACD”)
Stoch RSI plus RSI , Stoch RSI, developed by Tushar Chande and Stanley Kroll, is a build-in indicator available on Trading View, where Stoch X adds RSI as a companion indicator to Stoch RSI
Stoch MFI and MFI , where MFI is Money Flow Index, measures buying and selling pressure through analyzing both price and volume
Stoch OBV + VO , Where OBV is On Balance Volume, is a momentum indicator that measures positive and negative volume flow. VO stands for Volume Oscillator which aims to confirm a market turnaround or trend reversal
Stoch EWO + EWO , EWO stands for Elliott Wave Oscillator
By default the threshold levels are indicated and are displayed differently for the regular Stoch or Stoch RSI. Overbought band (70-80), oversold band (20-30) and middle line (0) are emphasized
Warning : Centered Oscillators base line is moved from 0 to 50 to better suit with Stoch X, which is applied to PMA, VO and EWO
2- Can be plotted along with Stoch in the same window using the same scaling
To avoid misinterpreting the area between Stoch X and its Signal Line is highlighted automatically in case Stoch is selected to be plotted
3- Squeeze Indicator added as Add-on in the bottom of the Stoch X
During volatile market conditions the stochastic oscillator has been known to produce false signals. One way to help with this is to take the price trend as a filter, or basic chart pattern analysis can help to identify major, underlying trends and increase the Stoch X's accuracy.
This study implements Squeeze Indicator to help and add additional insight for filtering false signals. Blue diamond shapes indicates the squeeze release, that is volatility increased and according to momentum direction the buy/sell possibility can be considered. Orange ones displays consolidation periods, that is low volatility and the market is assumed to be in squeeze and no trade is recommended. in this phase.
Disclaimer: Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely
The script is for informational and educational purposes only. Use of the script does not constitutes professional and/or financial advice. You alone the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script
Simple Market Session by GavThis is a simple script to highlight market sessions.
It highlights Sydney, Tokyo, London, and New York sessions with transparent background colors.
You are able to change session times, color, and transparency.
SMA21+-Delta%A simple script that plots a SMA of "length" periods, plus and minus "Delta %" of SMA value. Many Stocks shows a pattern off bulixh/bearish correction based on a % instead of any numbes of Standard Deviations, like Bollinger Bands do.
Default values:
length = 21
Delta% = 25
Un script simple que permite graficar una SMA de "length" períodos, +- "Delta%", un porcentage fijo respecto a la SMA. Muchos papeles muestran payrones de corrección basados en este tipo de límites, en lugar de una cierta cantidad de desvíos estándar, como es el caso de las Bandas de Bollinger.
Grab Trading SystemHello All,
This is "Grab Trading System" script defined in the book "Trend Following" by Michael W. Covel. also named as "Two-box system". I made small changes and I guess that it can be improved more.
The definition: Far box defines major trend; system trades only in same direction as major trend, meanwhile fading the signals of near box. Last trade in each trend exits at break of far box - at the same time as the trend reverses. All trades, except the last in the trend, use a limit order, as they are fading the near box. The last trade exits on a stop, as the trend changes.
As you can see there is Longterm Period and Shortterm Period in the indicator options. Longterm period is used for major trend and shortterm period is used to take position according to major trend. in my test I got better performance in small time frames. you need to set longterm/shortterm periods by your trading strategies.
Enjoy!
Bollinger Bands BB 1.0The "BB 1.0" strategy is to buy in the upper band and sell in the lower band.
The logic behind the "BB 1.0" strategy is to enter an operation that has room to develop.
MACD-ASHello All,
This the script for Moving Average Convergence Divergence – MACD of Thomas Aspray, and called as MACD-AS and you may get earlier signals than MACD.
As MACD and MACD-AS are trend following indicators, they do not function well in sideway markets.
An example how it gets earlier signals than MACD
Good luck!
[KY]Stocks above MA Percentage(1) What is Percentage of Stocks above Moving Average?
Percentage of Stocks above Moving Average is a breadth indicator and could
be used for both trend-followers and contrarians.
a) Trend-Follow
If 50%-70% of Stocks are above their 200MA, bullish momentum is forming and
rally could last for next several weeks, months. (Confirmation)
b) Contrarian
If only 0-5% of Stocks are above their 200MA, the market should have been horrible
but it's a good opportunity to start building equities long position.
And if you short, you want to consider about dead cat bounce next.
(2) How to use this indicator?
- Add this indicator to your chart.
- Select the market type from options (S&P500, Dow Jones Industrials, Rullsel 2000 etc)
For sector analysis, you can select from S&P500 sectors.
- Select the Days of MA length from options ("200", "150", "100", "50", "20")