Strat IndicatorThe script implements the Strat method of trading.
Script will label the candles as 1,2,3 where 1 = inside candle. 2 = trend candle, 3 = outside candle.
The bullish , bearish and continuation patterns are labelled with the relevant strat combination
and up, down rrows.
Some setups are
2-1-2 Bearish Reversal = 2 green candle, 1 inside candle, 2 red candle
This indicator can be used in all timeframes.
It can be used on Split screen
for Intraday 1 hour & 15 min
For Swing 1 day & 1 hour
For Long term 1 week & 1 day
For 6 continuous 2 candles, the script will mark the candle as PMG "Pivot Machine Gun" this a big reversal.
Trend
Combo Backtest 123 Reversal & Modified Price-Volume Trend This is combo strategies for get a cumulative signal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
The related article is copyrighted material from
Stocks & Commodities.
WARNING:
- For purpose educate only
- This script to change bars colors.
Buy/Sell/Hold/Away? This script based on Simple Moving Average and Exponential Moving Average.
The Red Line is an exponential moving average with small length. It act as a main line.
The Black Line is an average of some past data of exponential moving average. Act as Trend Line
The green circles is an exponential moving average with medium length. It act as a signal line.
The Idea is, when the price move higher from it past,past,past, repeatedly in some duration, it will gain enough energy to fly to the highest.
Buy signal when red line cross down green circle. strong buy when red line cross down black line.
Sell signal when red line cross down green circle. strong buy when red line cross down black line.
Additional 1:
Triangle up(blue) indicate Buy Signal. it happen when the price break resistant with some condition and volume>1m
Triangle down(maroon) indicate Sell Signal. it happen when the price break support with some condition and volume>1m
The more triangle show in series, the strong the trend to move accordingly.
Additional 2:
Support and Resistance line.
Hope Benefit To You All.
MDX Free (PA) Buy/Sell ConfimationThis is a free version of the MDX Crypto trading "bot". Note that this indicator and the MDX version are based on simple code available on trading view or via google search.
This indicator is based on the super trend indicator to provide buy/sell signals at inflection points of uptrends and downtrends. These inflection points are commonly used as entry/exit points for trading. They are represented on the chart as green (buy) or red (sell) arrow.
This also uses two exponential moving averages. One average is set over 21 bars (fast) and the other is set over 55 bars (slow). When the plots intersect it represents a change in momentum. This is shown on the chart as a red (negative change) or green (positive change) diamonds. When a green diamond follows a green arrow it is considered a confirmed buy. When a red diamond follows a red arrow it is a confirmed sell.
Caution:
Caution this indicator is not reliable on its own, especially on low time scales. When looking back in time this indicator will almost always show a "confirmed buy" before a large increase in price, but on many occasions you can have a "confirmed buy" which is followed by a dump in price, that will not trigger sell signal in time. For best results use with 15m to 1h timeframes
Disclaimer:
This indicator is for informational purposes and should be used for educational purposes only. If you rely on this for trading without additional information you will loose money. I am not a financial advisor, or a professional trader. Use at your own risk.
This is an unpolished version. It may be updated and the source code published if it is used.
[co.n.g] - Simple CVD over MAThis Single Volume Delta (SVD), respectively Cumulative Volume Delta (CVD) is a really simple script computing the difference of the volume of the actual in comparison the the volume of the "Calculation Bars Threshold", calculated by smoothing through a simple moving average - the "CVD MA Smoothing".
Therefore, if the "Calculation Bars Threshold" and the "CVD MA Smoothing" are set to 1, the script will display the difference of the actual compared to the previous candle;
furthermore, if the "Calculation Bars Threshold" is set to 3 and the "CVD MA Smoothing" is set to 14, then the indicator will display the the summed difference of the past 3 values, smoothed over a period of 14 candles.
This indicator may also be set to a different time frame, allowing multi time frame analysis; f.e. if you're going to set a lower time frame than the actual, the deltas of the lower time frame will be displayed and will be showing the volume trend of the lower time frame; if you're going to set a higher time frame, this is respectively working as described.
To understand volume and price action, it is - imho - especially helpful to display the volume of higher time frames to visualize the "Where the heck am I and what are the big players doing?"
This indicator is coloring the histogram in green as positive, red as negative and gray as indecisive CVD.
Hopefully, this will be helpful in your VSA and your trading decisions.
Cheers,
Constantine
p.s.: I am also working on a far more sophisticated version of SVD/CVD, so stay tuned!
Simple Hurst Exponent [QuantNomad]This is a simplified version of the Hurst Exponent indicator.
In the meantime, I'm working on the full version. It's computationally intensive, so it's a challenge to squeeze it to PineScript limits. It will require some time to optimize it, so I decided to publish a simplified version for now.
The Hurst exponent is used as a measure of long-term memory of time series. It relates to the autocorrelations of the time series, and the rate at which these decrease as the lag between pairs of values increases
The Hurst exponent is referred to as the "index of dependence" or "index of long-range dependence". It quantifies the relative tendency of a time series either to regress strongly to the mean or to cluster in a direction.
In short depend on value you can spot trending / reversing market.
Values 0.5 to 1 - market trending
Values 0 to 0.5 - market tend to mean revert
####################
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as good as in historical backtesting.
This post and the script don’t provide any financial advice.
Moving Regression Prediction BandsIntroducing the Moving Regression Prediction Bands indicator.
Here I aimed to combine the principles of traditional band indicators (such as Bollinger Bands), regression channel and outlier detection methods. Its upper and lower bands define an interval in which the current price was expected to fall with a prescribed probability, as predicted by the previous-step result of the local polynomial regression (for the original Moving Regression script, see link below).
Algorithm
1. At every time step, the script performs local polynomial regression of the sample data within the lookback window specified by the Length input parameter.
2. The fitted polynomial is used to construct the Moving Regression time series as well as to extrapolate data, that is, to predict the next data point ( MRPrediction ).
3. The accuracy of local interpolation is estimated by means of the root-mean-square error ( RMSE ), that is, the deviation between the fitted polynomial and the observed values.
4. The MRPrediction and RMSE values calculated for the previous bar are then used to build the upper and lower bands , which I define as follows:
Upper Band = MRPrediction_prev + Multiplier *( RMSE_prev )
Lower Band = MRPrediction_prev - Multiplier *( RMSE_prev )
Here the Multiplier is a user-defined parameter that should be interpreted as a quantile in the standard normal distribution (the default value of 2.0 roughly corresponds to the 95% prediction interval).
To visualize the central line , the script offers the following options:
Previous-Period MR Prediction: MRPrediction_prev time series from the above equation.
MR: Conventional Moving Regression time series.
Ribbon: “Previous-Period MR Prediction” and “MR” curves plotted together and colored according to their relative value (green if MR > Previous MR Prediction; red otherwise).
Usage
My original idea was to use the band breakouts as potential trading signals. For example, the price crossing above the upper band is a bullish signal , being a potential sign that price is gaining momentum and is out of a previously predicted trend. The exit signal could be the crossing under the lower band or under the central line.
However, be aware that it is an experimental indicator, so you might fin some better strategies.
Feel free to play around!
Volume Treshold [UTS]Volume Treshold
Helps to identify periods of high and low volume.
This information can be used to evaluate market trends and to determine trade entries and exits.
Note: this only works on charts with volume information available
Treshold line changes color if a candle is more than x percent of the average volume of the last n candles
Treshold line changes color back to gray again if volume falls below the treshold
A lookback period defines how many bars should be taken into consideration
% that causes it to be triggered settable in decimals up to 3.5 where 1.0 equals to 100%
Colour to change the volume bar to can be set via menu
Ability to show the treshold as visualized drawing over the histogram as line or area
Ability to choose smoothing method for treshold calculation (SMA | EMA)
An optional Simple Moving Average of the volume data can be added to the chart.
Donchian Zig-Zag [LuxAlgo]The following indicator returns a line bouncing of the extremities of a Donchian channel, with the aim of replicating a "zig-zag" indicator. The indicator can both be lagging or lagging depending on the settings user uses.
Various extended lines are displayed in order to see if the peaks and troughs made by the Donchian zig-zag can act as potential support/resistance lines.
User Settings
Length : Period of the Donchian channel indicator, higher values will return fewer changes of directions from the zig-zag line
Bounce Speed : Determine the speed of bounces made by the zig-zag line, with higher values making the zig-zag line converge faster toward the extremities of the Donchian channel.
Gradient : Determine whether to use a gradient to color the area between each Donchian channel extremities, "On" by default.
Transparency : Transparency of the area between each Donchian channel extremities.
Usage
It is clear that this is not a very common indicator to see, as such usages can be limited and very hypothetical. Nonetheless, when a bounce speed value of 1 is used, the zig-zag line will have the tendency to lag behind the price, and as such can provides crosses with the prices which can provide potential entries.
The advantage of this approach against most indicators relying on crosses with the price is that the linear nature of the indicator allows avoiding retracements, thus potentially holding a position for the entirety of the trend.
Altho this indicator would not necessarily be the most adapted to this kind of usage.
When using a bounce speed superior to 1, we can see the predictive aspects of the indicator:
We can link the peaks/troughs made by the zig-zag with the precedent ones made to get potential support and resistance lines, while such a method is not necessarily accurate it still allows for an additional to interpret the indicator.
Conclusions
We presented an indicator aiming to replicate the behaviour of a zig-zag indicator. While somehow experimental, it has the benefits of being innovative and might inspire users in one way or another.
[L] MTF SSL ChannelThis indicator plots SSL Channel, ideally from an higher time frame. I couldn't find any SSL Channel script with this feature so I made one, hope that helps others.
Features:
No Repainting
The script does not repaint and follows Pinescripters' guidelines.
Other Time Frame
It is possible to select another (higher) time frame. If a lower one is selected the script warns to change it, since calling a lower time frame leads to unreliable data.
Alerts
It is possible to create alerts for trend changes (cross Up or Down).
It also shows simple labels to see trend status at glance.
Put Call OscillatorThis is a volume-based oscillator used for detecting market sentiment.
This plots two moving averages of the CBOE S&P500 PCR (put call ratio), and a histogram to measure the distance between them. The histogram will generate signals of green (bullish) or red (bearish), depending on whether put volume is decreasing or increasing.
The moving averages are adjustable. They are set at 4 and 16 by default. Increasing the moving averages will generate less signals, while decreasing them will generate more signals.
The background will change color from red to green depending on whether the PCR is above or below 1.
I used capriole_charles script "Put/Call Ratio (PCR)" to help me build this.
New Map For TradersUsing previous principles, This setup plots 60 moving averages on the chart. The averages are colored using a normalized oscillation technique (FFT).
To achieve the same display as above, put the same indicator twice and set the 'osx' parameter of one to 0 and the other to 2.
Feel free to play with the 'mul' parameter in ranges between 1-90. Most useful ranges will be 4-16 in my opinion.
Leave me a message if you'd like to explore the behaviors of the fractal dimension further ;)
ZenTrdr TRENDLong trend starts with a close higher than the previous local high. Short trend, of course, is the contrary. This indicator shows the trend on the Daily, H4 and H1.
Levels are the validation levels of the current trend on the specific time frame.
Bars are colored according to the H4/H1 trend showing the same direction.
Trend MagicTrend Magic is originally a MT platform (MetaTrader) indicator and it can be used with any forex trading systems / strategies for additional confirmation of trading entries or exits. Converted the MT platform code to TradingView Pine version 4. Also you can use Multiple Time Frame.
It also works well with Crypto and Stock Markets.
Trend Magic consists of two main calculation parts as momentum and volatility:
First part is ATR based (like ATR Trailing Stop) logic, second part is all about CCI which also determines the color of Trend Magic.
Blue: when CCI is positive
Red: when CCI is negative
Also added alert condition regarding price crosses :
when LOW CrossesAbove TM
and HIGH CrossesBelow TM
Enjoy
Kıvanç Özbilgiç
Bollinger Band with Fib Golden Ratio (0.618)This startegy uses Fib level (0.618) of Bollinger Band for long entry. I find this is the only strategy which gives similar results on the different time frames. I have tested QQQ for 1H, 2H , 3H and 4H charts , all showed over 70% winning rate.
BB settings 50 , mult 1.5 (or you can use 2.5 or 3 )
Note: for the basis I have used VWMA instead of SMA .
BUY
=========
ema 50 is above ema 200
when the price close or low touches BB50(Fib0.615) lower band
Exit
=========
when the price crossover BB50(Fib0.615) upper band
Stop Loss
=========
Stop oss set to 5% , configurable
Strategy works similar to mean reversion style. When it touches the lower bans (which 0.615 level of the BB50) , it bounces from there.
Warning
=========
This strategy is for educational purposes only. Please do your own reserach for trading decissions.
LordPepe Stochastic SignalsThis is the Lord Pepe. Howdy. Basic buy/sell indicator to accumulate along a downtrend and release your stack during the uptrend and oversold levels of the stochastic. The buys should be used to stack, and sells indicate levels of profit taking, they do not signal a long term reversal, only < 25% of stack should be released on "OB" signals.
OB - overbought (sell)
OS - oversold (buy)
Ravih Pro Trend BreakoutThis is a Trend Breakout Strategy on “DAILY Time-frame”
This Strategy is designed keeping in mind with Medium to Long Term traders. The strategy works only on Daily Time-frame and on Closing Price.
The concept here is to identify assets with potential change in trend. Primary focus is to position for the big move. There are times... trying to catch every trend, many of which can be unprofitable especially in side-way market. However, the primary purpose of this strategy is to catch all the major trend movements, which are much more profitable than minor market losses in all the side-way market.
I’ve simplified it to make it user-friendly.
How to use?
Set it to Daily Time-frame.
Buy, Take Profit 1,2,3 and Exit signals are included on chart based on the current Trend direction. The system shows an Exit signal if the system’s exit conditions are met. It works only on Daily Time-frame and on Closing Price.
Dark Blue Up Triangle denotes Buy at the Closing Price. Entry Price is Closing Price or with + or – 2% tolerance of the Closing Price for the following market day.
Purple Down Triangle denotes Exit to close any remaining position to free up capital.
Little Green Up Triangles denote the Bulls are in Control and Overpowering the Bears and represents minor Buying opportunities with strong probability of continuing up-moves.
Setting Up Alerts
The user has the option to Setup Alerts for all chart signals that is…
For Buy, for Exit, for Take Profit 1 set at 24%, for Take Profit 2 set at 48% and for Take Profit 3 set at 72%
The user also has the option to adjust the Take Profit as per their desire. However, the predetermined Take Profit set for this strategy does work reasonably well.
Remember...
This strategy is only built for stocks. It is Not for Indices neither for any other financial instruments.
No SHORT signals in this strategy.
Donchian Channels Strategy by KrisWatersDoncian Channels is a trend tracking indicator developed by Richard Doncian. The upper line of the channel is determined by the highest value seen by the price in the defined period, the lower line of the channel is determined by the lowest value seen by the price in the defined period. The middle line takes the average value of the lower and upper channels.
Strategy Settings:
- Can apply only LONG positions.
- Can apply only SHORT positions.
- Use LONG/SHORT both.
- You can use ATR as a second exit condition. If ATR stop disabled, Donchian upper or lower channel value is use for the exit rule to long and short positions.
Strategy can be able to optimize by changing channel lengths and timeframe.
Statistical and Financial MetricsGood morning traders!
This time I want to share with you a little script that, thanks to the use of arrays, allows you to have interesting statistical and financial insights taken from the symbol on chart and compared to those of another symbol you desire (in this case the metrics taken from the perpetual future ETHUSDT are compared to those taken from the perpetual future BTCUSDT, used as a proxy for the direction of cryptocurrency market)
By enabling "prevent repainting", the data retrieved from the compared symbol won't be on real time but they will static since they will belong to the previous closed candle
Here are the metrics you can have by storing data from a variable period of candles (by default 51):
✓ Variance (of the symbol on chart in GREEN; of the compared symbol in WHITE)
✓ Standard Deviation (of the symbol on chart in OLIVE; of the compared symbol in SILVER)
✓ Yelds (of the symbol on chart in LIME; of the compared symbol in GRAY) → yelds are referred to the previous close, so they would be calculated as the the difference between the current close and the previous one all divided by the previous close
✓ Covariance of the two datasets (in BLUE)
✓ Correlation coefficient of the two datasets (in AQUA)
✓ β (in RED) → this insight is calculated in three alternative ways for educational purpose (don't worry, the output would be the same).
WHAT IS BETA (β)?
The BETA of an asset can be interpretated as the representation (in relative terms) of the systematic risk of an asset: in other terms, it allows you to understand how big is the risk (not eliminable with portfolio diversification) of an asset based on the volatilty of its yelds.
We say that this representation is made in relative terms since it is expressed according to the market portfolio: this portfolio is hypothetically the portfolio which maximizes the diversification effects in order to kill all the specific risk of that portfolio; in this way the standard deviation calculated from the yelds of this portfolio will represent just the not-eliminable risk (the systematic risk), without including the eliminable risk (the specific risk).
The BETA of an asset is calculated as the volatilty of this asset around the volatilty of the market portfolio: being more precise, it is the covariance between the yelds of the current asset and those of the market portfolio all divided by the variance of the yelds of market portfolio.
Covariance is calculated as the product between correlation coefficient, standard deviation of the first dataset and standard deviation of the second asset.
So, as the correlation coefficient and the standard deviation of the yelds of our asset increase (it means that the yelds of our asset are very similiar to those of th market portfolio in terms of sign and intensity and that the volatility of these yelds is quite high), the value of BETA increases as well
According to the Capital Asset Pricing Model (CAPM) promoted by William Sharpe (the guy of the "Sharpe Ratio") and Harry Markowitz, in efficient markets the yeld of an asset can be calculated as the sum between the risk-free interest rate and the risk premium. The risk premium of the specific asset would be the risk premium of the market portfolio multiplied with the value of beta. It is simple: if the volatility of the yelds of an asset around the yelds of market protfolio are particularly high, investors would ask for a higher risk premium that would be translated in a higher yeld.
In this way the expected yeld of an asset would be calculated from the linear expression of the "Security Market Line": r_i = r_f + β*(r_m-r_f)
where:
r_i = expected yeld of the asset
r_f = risk free interest rate
β = beta
r_m = yeld of market portfolio
I know that considering Bitcoin as a proxy of the market portfolio involved in the calculation of Beta would be an inaccuracy since it doesn't have the property of maximum diversification (since it is a single asset), but there's no doubt that it's tying the prices of altcoins (upward and downward) thanks to the relevance of its dominance in the capitalization of cryptocurrency market. So, in the lack of a good index of cryptocurrencies (as the FTSE MIB for the italian stock market), and as long the dominance of Bitcoin will persist with this intensity, we can use Bitcoin as a proxy of the market portfolio
Rainbow Trend IndicatorThis is an indicator based on the MA rainbow concept. It is possible to choose between 15 or 20 MA's and if all 15 MA's is picked, the calculation will be calculated on 15 MA's and if 20 is picked the calculation is calculated on 20 MA's. The indicator will then be a line which is assigned a value from the calculation based on the MA's. If the line is above the dashed zero line, meaning the line's last value is a positive value, the price is in a uptrend and if the line is below the dashed zero line, meaning the line's last value is a negative value, the price is in a downtrend.
In short
If the line is green, the price is in a uptrend. If the line is red, the price is in a downtrend.
[astropark] Trend Skywalker V1 [strategy]Dear Followers,
today another awesome Swing and Scalping Trading Strategy indicator: Trend Skywalker !
It shows a trend cloud that reacts very fast to price action, so it's perfect for trending markets: it helps a lot to find out
when a trend is going to end and a new is going to start
when to enter again within a trending market
where to put your stoploss
In this example below you can see the three points above:
In fact in a trending market it will highlight that:
price consolidation within the could is a trend weakening signal , so you can easily spot when a trend is going to end and a new is going to start
bullish/bearish trend cloud retests are nice opportunity to re-enter within a trending market, especially if cloud is thick
where to put your stoploss ( below the cloud and/or recent low in a buy scenario , above the cloud and/or recent high in a sell scenario )
This strategy/indicator has the following options:
change analysis window (the lower, the more reactive; the higher, the less reactive)
enable/disable signals on chart
enable/disable "more confirmations" signals filter
enable/disable bars and background coloring based on trend
enable/disable an automatic Trailing Stop strategy option (Automatic Stops)
enable/disable a peak profit tracker (the max percentage profit labels)
enable/disable highlights of trend cloud retests
enable/disable highlights of trend cloud price breakouts
Here below some examples how the indicator works on many markets and timeframe.
ETH/USD 4h
EUR/USD 15m
LTC/BTC 1h
This strategy only trigger 1 buy (where to start a long trade) or 1 sell (for short trade).
Keep in mind that proper risk management and money management strategies are very important to manage your trades (DM me if you need any clarification on these points).
This script will let you backtest the strategy performance over the backtesting period you set in input (it may be a lower period, depending on tradingview candles limitation related to your account).
The one for setting alarms can be found by searching for the astropark's "Trend Skywalker" and then choosing the indicator with "alarms" suffix in the name.
Strategy results are calculated on the time window from February 2018 to now, so about 3 years, using 10000$ as initial capital and working at 1x leverage (so no leverage at all! If you like to use leverage, be sure to use a safe option, like 2x or 3x at most in order to have liquidation price very far).
This is not the "Holy Grail", so use proper money and risk management strategies.
This is a premium indicator , so send me a private message in order to get access to this script.
[TS] Trend MeterHOW IT WORKS
The meter consists of 5 Different Trend Indicators: Gann HILO Activator, ParabolicSAR, our custom TS Oscillator, our non-repainting/non-lagging Higher Timeframe Trend Indicator, plus our Market Sentiment Indicator
HOW TO USE
1. When the majority of the meters turn green, it is a sign the market is heading up.
2. When the majority of the meters turn red, it is a sign the market is going down.
- The user has the option to select how many meters must allign for a signal to show
- The indicator also has the ability to setup Alerts when the selected number of meters turn green or red. This feature is also signaled by the red or green vertical lines.
Linear Correlation OscillatorYou don't need loops to get the rolling correlation between an input series and a linear sequence of values, this can be obtained from the normalized difference between a WMA and an SMA of the input series.
The closed-form solutions for the moving average and standard deviation of a linear sequence can be easily calculated, while the same rolling statistics for the input series can be computed using cumulative sums. All these concepts were introduced in previous indicators posts long ago.
This approach can allow to efficiently compute the rolling R-Squared of a linear regression, as well as its SSE.
Using the rolling correlation as a trend indicator is often attributed to John Ehlers with the correlation trend indicator (Correlation As A Trend Indicator), but the applications of this precise method can be traced back quite a while ago by a wide variety of users, in fact, the LSMA can be computed using this precise indicator. You can see an example where the correlation oscillator appears below: