Swing ComparatorHere I bring you an array of methods to compare the swings and consistency between assets.
This indicator is excellent for swing traders and scalpers looking to maximize their profits by examining which of two closely related pairs provides greater price fluctuation during given period.
This indicator works against two assets, which are to be configured in settings.
This indicator has 5 particular plots for you to examine, each which can be considered for you to contemplate which pair for you to next perform a trade on.
First off, let's start with the blue.
The blue is simply a pearson correlation coefficient, thankfully now included in tradingview. This provides a value of 1 as values show to be close correlation, 0 showing no correlation, and -1 showing negative correlation - meaning an increase in one pair correlates to a decrease in another pair. This will turn green when greater than 0.975, showing a very strong relationship between the two pairs, and red when below -0.975. This is the only plot to be interpreted on a scale from -1 to +1.
Next, we have the purple and yellow background plots, followed by the white and green moving averages. Though similar, these are all slightly different.
For each of these 4 plots, a value greater than 0 indicates greater price swings for your Symbol #1, while a value less than 0 indicates greater price swings for Symbol #2.
These calculations are performed on a per bar basis, meaning you're likely going to be examining bars longer than what you'll normally be trading on. Use confluence, as well as your own judgement for this.
For example, if symbol #1 provides a bar with an open value 1% greater or less than close, providing a 1% swing on a given bar, but symbol #2 provides 2%, the indicator will fall down toward the negative, as Symbol #2 had the greater swing.
First, yellow focuses on only open/close bar values, and thus the body of the candlestick.
Purple, on the other hand, focuses on the wicks of the candle - thus, the high/low values. I've opted to make these two different values as a wick focuses on the embodiment within the time period, and body focuses on the open/close instant.
Next, the green is an extended EMA of the purple - High/Low ratio. This is important to examine trend overtime, and reduce unneeded noise.
Lastly, the white is simply difference in the standard deviation of the particular bars, between the two symbols you have selected. The tends to usually tie up with the green pretty well.
Considering this is going to by nature be very noisy datasets, I have included in settings the option to extend an EMA for everything. They have their default settings, but if you'd like to examine the trend without an EMA, feel free to set it to 1 to eliminate its effects.
I have additionally added the ability to introduce clipping, as well as scale the correlation coefficient to remain visible when examining very short term time scales. In the future, I hope to properly normalize all plots to remain within a -1 to +1 basis. Please be patient as I have multiple projects ongoing.
Suggestions and constructive criticism are very well encouraged.
Anyone is welcome to utilize this in their code, as well, i just ask you provide credit.
As you reduce to time frames less than a day, you will likely have to reduce the coefficient min/max closer to 0.025, or just hide it entirely.
TODO:
Make it look better. Sorry, folks.
Introduce latency between pairs.
Examine significance of a coefficient of determination
Remove static weights and introduce z-score and linear normalization.
Consider adding room for a 3rd pair. This could get ugly, however.
Scalping
Linear Channel - Scalp Strategy 15MSimple way how to use Linear Regression for trading.
What we use:
• Linear Regression
• HMA as a trend filter
Logic:
Firstly we make simple linear regression moving. It is the white line which appears on the chart.
Then we make second line (named: band2) on the chart by multiplying linreg and value difference.
The third step is to ad HMA as a trend filter.
The trade open when price is below band2, but still upper than Hullma. The trade close when price again upper than linreg.
Stochastic + Keltner Channels for ScalpingSimple arrow indicator, indicating the direction go the next slight movement. This indicator will work on any time frame or market.
How does this indicator work?
It will use Stochastic and Keltner Channels to detect potential reversals depending on the frequency you choose in the indicator's settings. The higher the frequency, the fewer candles will be used in the calculation.
When to use this indicator?
It will work better in higher time frames for low volatility indicators. You can mix with other indicators like RSI or ADX. This way, you will be able to check if the time selected frame has enough volatility to move the price enough to cover the spreads and fees of your broker.
When to exit the trade after the signal from this indicator?
A good target would be for 1x ATR value and stop-loss 2x the ATR value. Doing trailing stop will reduce your risk and secure some profits, but make sure to use values for possible fakeouts
Can this indicator be used alone as the main source of entry signal for the trades?
You can use it alone, but I recommend mixing with other trend-based indicators, like Moving Averages, so you get the best results. Since it's for scalping purposes, small moments, and reversals, it doesn't have the trend filter, but it can work trading in favor of a significant trend as well
this is a better version of my other script Scalping Arrows
5min MACD scalp by JoelThis strategy is inspired by a youtuber called Joel on Crypto. He trades this using Ema, MACD indicators and his own experience. For more information, check out his Best Crypto Scalping Strategy for the 5 Min Time Frame video. I have tried to automate this a little.
Long or Short trades are determined with a crossing of the fast Ema over the slow Ema for Long and the opposite for Short. Trades should only happen close to the crossovers. Then for Long we use the MACD indicator with a 1min TF (I had better results using the 5min) where we look for high peaks in negative values for Long and vice versa for Shorts. These should be significantly higher than other peaks (or if you will lower peaks for a Long).
Hence, the key is to detect high peaks on the histogram, which I try to achieve by checking if the last 2 values were higher than X bars back. If you want to make it even more specific, then you can turn on the additional checkbox which compares the current value to the average value of X bars back, and if it is greater than, say, 50% the value of the average (= 1.5x the average), then it's ok for the trade.
I also noticed that the strategy often bought at the top or bottom, so I added a check that compares whether the last evaluated bar is the first rising bar (for Long) or falling bar (for Short). This can be turned on or off.
Target profit 0,5% and stop loss 0,4% are based on his recommendation. The strategy is set to take only 1 trade at a time , and you can have a back tester table on.
I'm still a pine script beginner, so the strategy is certainly not perfect and could be improved. If you have any tips on how to improve it further, please let me know. I will try to update it when I have time.
I would also like to thank Joel on Crypto for sharing the strategy and @ZenAndTheArtOfTrading for his great library and code (thanks to him we have a back tester table in here), but especially his educational videos on youtube, which taught me a lot about pine script.
Scalping IchimokuBased on the Ichimoku Cloud indicator, the Scalping Ichimoku is a strategy applied in a simple form.
How the strategy works?
The indicator will watch two filters from the Ichimoku Cloud indicator. The first one is when the price crosses the cloud (over or under). The second filter is when the conversion line crosses the baseline (over or under). When both filters happen, no matter the order or when the indicator will print an arrow signal.
Buy Signal
A buy signal, or arrow up, will appear when the price crosses over the cloud and when the conversion line crosses over the baseline.
Sell Signal
A sell signal, or arrow down, will appear when the price crosses under the cloud and the conversion line crosses under the baseline.
Exit Points
Show Exit Spots enabled. The indicator will print possible exit spots for the last entry, based on the cross from conversion with baseline. In case the cross is against the latest entry signal, it will show an "X"
One Signal At Time
The indicator will print only one signal in a single direction. It will never print the same signal as the last signal
Exit and Entry Spot At The Same Candle
In the chart, when the entry spot and an exit spot appear in the same candle, the exit spot will appear with a different color. This means that the entry spot is more accurate.
This strategy was designed for scalping, no matter the time frame or market, but it may work for swing traders as well.
Reversal zone finderThis script would find potential reversal price zones according to RSI over bought or sell condition and big reversal candle.
It works better in range markets and lower time frames like 5M and especially in Support/Resistance zones.
Suit for scalping in forex or crypto markets.
* Use it as a trade assistant not a trade signal!
LA_Crpyto_Pirate Modifie VuManChu B Script with Scalping FiltersI added the following filters for entry signals to the VuManChu B with divergences for use as a scalping indicator. You will need to load the 50 EMA and this indicator to trade this per the rules below
The rules for trading this are as follows; You can only take a long or short entry when all of these requirements match
The wave cross is under the zero line (long) or over the zero line (short)
The money flow indicator is green (long) or red (short)
The closing price is above the 200 EMA (long) or below the 200 EMA (short)
price has pulled back to the 50 EMA
Here are the filters I employed in the script to help you trade this
Zero Line Filter: Only signal longs under the zero line and shorts over the zero line will fire off a signal
Money Flow Indicator Filter: Only signal longs when money flow is green and only shorts when money flow is red
200 MA filter: Only longs when price is closing above the 200 EMA and only shorts when price is closing below the 200 EMA
When you get an alert, simply check to see that price has pulled back to the 50 EMA before entering. Place long and short orders when the indicator signals and you confirm price has pulled back to the 50 ema before entering the long or short. Set your Stop Loss above or below the pervious pullback and set a reward ratio of your choice. Good luck!
Tendency EMA + RSI [Alorse]A very simple and highly effective strategy LONG & SHORT that combines only 2 indicators:
RSI
3 Moving Average Exponential (EMA)
LONG Entry conditions are:
EMA 20 cross over EMA 10
EMA 10 is above EMA 100
LONG Exit conditions are:
RSI greater than 70
Or when X number of candles have passed and the trade is in profit. (Check Settings)
SHORT Entry conditions are:
EMA 20 cross under EMA 10
EMA 10 is below EMA 100
SHORT Exit conditions are:
RSI is less than 30
Or when X number of candles have passed and the trade is in profit. (Check Settings)
Rolling VWAP - Vhunt Scalper botBINANCE:ADAUSDTPERP
Modified VWAP to use scalping in lower timeframe.
Use 1minute TF for best results but can also use up to 30min.
This indicator is made for crypto but may also work for other assets.
The bands serve as support and resistance and used for opening quick profit position if conditions below are met:
Indicators:
Blue - modified rolling vwap
Orange - Band1
Green - Band2
Opening position Conditions:
Long:
Band2 < Band1
Price < Band2
Short:
Band2 > Band1
Price > Band2
Security. Scalp Adviser by Antony SavacheGreat script for quick deals. Buy and after 5 minutes sell with a target yield of 0.3%
Works on the principle of getting out of the pit. The pit is determined thanks to the rsi on the 15-minute time frame, the exit is determined by the rsi on the 1-minute timeframe. You can play with the rci values in the settings
Volatility Adjusted Grid [Gann]█ OVERVIEW
Gann Square of 9 is one of the many brilliant concepts from W.D.Gann himself where it revolves around the idea that price is moving in a certain geometrical pattern. Numbers on the Square of 9 spiral tables, especially those lie in every 45degree in the chart act as key vibration levels where prices have tendency to react to (more on the table below).
There are few square of 9 related scripts here in Tradingview and while there's nothing wrong with them, it doesn't address 1 particular issue that i have: The numbers can be too rigid even when scaled based on current price because the levels are fixed, which makes them not tradable on certain timeframes depending on where the price currently sitting.
Heres 5min and 1hour Bitcoin chart to illustrate what i mean: Grey line on the left is based on Volatility Adjusted levels, while red/blue on the right are the standard Gann levels.
You can see that on 1hour chart, it provides a good levels (both Volatility Adjusted and the standard one happened to share the same multiplier in this case),
1Hour Chart:
On 5 min chart tells a different story as the range between blue/red levels can be deemed as to big for a short term trade, while the grey line is adjusted to suit that particular timeframe (You can still adjust to make it bigger/smaller from the settings, more on this below)
5Min Chart:
█ Little bit on Gann Square of 9 table
This is the square of nine table, the numbers highlighted in Red are known as Cardinal Cross and considered to be a major Support/Resistance while those in Blue color are known as Ordinal Cross considered as minor (but still important) Support/Resistance levels
Similarly, this script use these numbers (and certain multipliers) to print out the levels, with Cardinal numbers represented by solid lines and Ordinal numbers by dotted lines.
█ How it Works and Limitations
The Volatility Adjusted grid will go through several iterations of different multipliers to find the Gann number range that is at least bigger than times ATR. Because it's using ATR to determine the range, occasionally you'll notice that the line become smaller as ATR contracting (and vice versa). To overcome this, you can change the size range multiplier from the settings to retrieve the previous range size.
Use the size guide at the bottom left to find the multiplier that suits your need:
1st Row -> Previous Range -- Change Range Size to number lower than this to get a smaller range
2nd Row -> Next Range -- Change Range Size to number higher than this to get a larger range
Example:
Before:
After:
As you'll soon realise, the key here is to find the range that fits the historical structure and suits your own strategy. Enjoy :)
█ Disclaimer
Past performance is not an indicator of future results.
My opinions and research are my own and do not constitute financial advice in any way whatsoever.
Nothing published by me constitutes an investment recommendation, nor should any data or Content published by me be relied upon for any investment/trading activities.
I strongly recommends that you perform your own independent research and/or speak with a qualified investment professional before making any financial decisions.
Any ideas to further improve this indicator are welcome :)
Swing/Scalper HULL + T3 avg Crypto StrategyThis is a both a swing and a scalper strategy(depends on the timeframe that you use), that works with all timeframes, however I noticed that with swing 3h works the best on most crypto pairs, such as ETH, BTC and so on.
Its main components are:
Hull moving average
T3 moving average
Risk management
With them I make an average and use it as the main moving average.
Rules for entry
For long: Average moving average is bigger than previous average moving average value.
For short:Average moving average is lower than previous average moving average value.
Rules for exit
We exit when either the TP/SL has been hit, or when we get a different condition than previous one(both for long and short).
If you have any questions, let me know !
TradePro Parabolic SAR BackgroundTradePro Parabolic SAR Background
This indicator is a small tribute to youtuber TradePro
The operation is simple. It is the same Parabolic SAR indicator with its default configuration, but in background format. It is a new way to visualize the same information, more understandably. It is in itself a complete trading system, it can be used in conjunction with the traditional Parabolic SAR to locate the stop loss.
Parabolic SAR
In stock and securities market technical analysis, parabolic SAR (parabolic stop and reverse) is a method devised by J. Welles Wilder, Jr., to find potential reversals in the market price direction of traded goods such as securities or currency exchanges such as forex. It is a trend-following (lagging) indicator and may be used to set a trailing stop loss or determine entry or exit points based on prices tending to stay within a parabolic curve during a strong trend.
Similar to option theory's concept of time decay, the concept draws on the idea that "time is the enemy". Thus, unless a security can continue to generate more profits over time, it should be liquidated. The indicator generally works only in trending markets, and creates "whipsaws" during ranging or, sideways phases. Therefore, Wilder recommends first establishing the direction or change in direction of the trend through the use of parabolic SAR, and then using a different indicator such as the Average Directional Index to determine the strength of the trend.
A parabola below the price is generally bullish, while a parabola above is generally bearish. A parabola below the price may be used as support, whereas a parabola above the price may represent resistance.
Scalp ProScalp Pro is a scalping tool that uses the MACD mechanism. MACD lines are smoothed using fibonacci numbers and pi numbers. In this way, the noise on the signal is reduced. A " BUY " signal is generated when the lines cross upwards. If the lines cross down, a " SELL " signal is generated. The logic is very simple and the Indicator is very useful.
I wish you many profitable trades.
Scalping Screener - 15minSCALPING SCREENER - 15 mins (Indicator Tool)
TIME FRAME to use - 15 mins
DURATION OF TRADE - Using this indicator, Trade must be taken only during market hours and must be closed before market close (must not be carried forrward for next day).
SCALPING - This is a scalping strategy that is intended to make small profits in intraday trading
ENTRY CONCEPT -
- There must be 2 bulish candles and the 2nd candle's high should be greater than first candle's high.
- And If the latest candle high breaks high of the 2nd candle (prev candle), BUY signal is generated.
- Additional filters are added to reduce non-performaing trades.
- visa versa for SHORT signal
EXIT CONCEPT -
- 2nd candles low is the stop loss.
- Difference between 2nd candle high and 2nd candle low is target.
- The script will indicate when to BUY / SHORT and when to EXIT the trade.
INSTRUMENTS TO TRADE -
- High volatility instruments are best to be traded
- Nifty 50 stocks have been added to this indicator for the sake of screener. User can change these stocks with high volatility ones
- There is a limitation to add upto 40 scripts.
SCREENER FUNCTION -
- Right side of the chart has screener section which shows the list of stocks that qualify as per the BUY / SELL signal
NOTE -
The purpose of the scipt is for self learning / improvement and analysis.
Trading is a risky business and a trader must take any trade at their own RISK.
The author shall not be held responsible for Losses / Profits
Moving Average and PerformanceThis indicator combines several tools that are used daily for analysis:
The performance of the action we are seeing.
The percentage of retracement the stock has made from its all time high.
Possibility of using up to four exponential or simple moving averages in the length we want.
It allows to see or not the levels of four moving averages in daily temporality.
This indicator is unique since it allows you to see in real time the performance of the Stock or ETF that is being analyzed, which allows you to make a timely decision for short, medium or long-term investments.
If you are doing scalping, swing, or intraday trading, you can see the retracement it has made from the ATH (3, 5, 10 or 13%) which can become Supports or Resistances where the price can rebound, Likewise, the levels of the moving averages in 1D temporality can be observed at the same time, which are usually dynamic supports or resistances and it can also be observed in the same temporality of the chart four moving averages that the trader can configure in the length that you deem convenient to improve your analysis and make decisions as quickly as possible.
Este indicador es único ya que permite ver en tiempo real el rendimiento de la Acción o ETF que se está analizando, lo cual permite tomar una decisión oportuna para las inversiones a corto, mediano o largo plazo.
Si se está haciendo trading tipo scalping, swing, o intradía, se puede observar el retroceso que ha hecho desde el ATH (3, 5, 10 o 13%) el cual puede convertirse en Soportes o Resistencias en donde el precio puede hacer rebotes, así mismo se pueden estar observando al mismo tiempo los niveles de las medias móviles en temporalidad de 1D, los cuales usualmente son Soportes o resistencias dinámicas y también se puede observar en la misma temporalidad del gráfico cuatro medias móviles que el trader puede configurar en la longitud que crea conveniente para mejorar su análisis y tomar decisiones lo más rápido posible.
Maximized Scalping On Trend (by Coinrule)" The trend is your friend. " This is one of the most famous and valuable teachings that experienced traders can give to newbies. There is a reason for that.
No matter your views about where the price moves, what matters is where the price heads to . The market is always right, and ultimately it decides who gets the profit and who has to take a loss.
The purpose of this strategy is to spot when it's the most suitable time to buy an asset profiting from a potential short-term price increase. The strategy tends to open trades frequently, closing them on average in one and a half days.
ENTRY
The buy order is placed on assets that present strong momentum when it's more likely that it is about to increase further in the short term.
To capture momentum on the asset, the rule strategy requires:
the MA50 greater than the MA100
the RSI greater than 50
The rule, then, places the order when
The price crosses above the MA9.
EXIT
This strategy comes with a stop loss and a take profit which adapt dynamically to market conditions.
The trade is closed in profit when the RSI is greater than 70 , as the trend could experience a pull-back.
Alternatively, the trade is closed when the RSI is lower than 30 , being this a sign of weakening of the trend.
Pro tip : The 1-hour time frame has proven to return the best results on average. The strategy can also work well in the 15-min time frame if you want to increase the trades' frequency.
The strategy assumes each order to trade 30% of the available capital and opens a trade at a time. A trading fee of 0.1% is taken into account.
Eliza Ellis Improved FractalsA little side project of mine. may enhance further in the future. Used best for scalping. The longer you're in the market the more the news is waiting to eat you so I'd recommend using high volume and getting in and out quickly
VWMACDV2 w/Intraday Intensity Index Histogram & VBCB Hello traders! In this script i tried to combine Kıvanç Özbilgiç's Volume Based Coloured Bars, Volume Weighted Macd V2 and Intraday Intensity Index developed by Dave Bostian and added to Tradingview by Kıvanç Özbilgiç. Let's see what we got here;
VBCB, Paints candlestick bars according to the volume of that bar. Period is 30 by default. If you're trading stocks, 21 should be better.
Volume Weighted Macd V2, "Here in this version; Exponential Moving Averages used and Weighted by Volume instead of using only vwma (Volume Weighted Moving Averages)." Says, Kıvanç Özbilgiç.
III, "A technical indicator that approximates the volume of trading for a specified security in a given day. It is designed to help track the activity of institutional block traders and is calculated by subtracting the day's high and low from double the closing price, divided by the volume and multiplied by the difference between the high and the low."
*Histogram of vwmacd changes color according to the value of III. (Green if positive, yellow if negative value)*
VWMACD also comes with the values of 21,13,3... Which are fibonacci numbers and that's how i use it. You can always go back to the good old 26,12,9.
Other options according to the fibonacci numbers might be= 21,13,5-13,8,3-13,8,5... (For shorter terms of trading)
Trading combined with the bollinger bands is strongly advised for both VWMACD and III. VBCB is just the candy on top :)
Enjoy!
DRSI DMA Scalping Strategy No RepaintThis strategy compares the slope of a Moving Average (of your choosing) to the slope of a Momentum Indicator (of your choosing). Zero is the center line because 0 slope means sideways movement. When both lines cross your buy threshold, it buys. When both lines cross your Sell threshold, it sells. The lines may look choppy, but that is probably because it is referencing a different timeframe than what the chart is set to. I left as many settings adjustable by the user as possible so you can tune this strategy to the relative behavior of whatever you are trading.
This also includes a No Repaint function so the backtest should be as close to live trading as possible.
CCI45/SMA50 indy for 30 min SP500SPCFD:SPX
The script determines entry points using 45 period CCI and 50 period SMA.
Long condition: When CCI crosses up 150 treshold while price above 50 period SMA
Short condition: When CCI crosses down -150 treshold while price below 50 period SMA
Trades are executed above/below 1 point of high/low for long/short positions. Stops are just 1 point below/above of SMA. After 4 points of profit stops should be tightened. If you do not plan to hold the position for a long time, it can produce quick profit within 5-6 bars namely 2.5-3 hour. Otherwise you can manage the trade using SMA as trailing stop. This can be treated as a strategy of scalping which turns out a trend trading eventually if conditions good.
Have a nice trading
Momentum Strategy (BTC/USDT; 1h) - MACD (with source code)Good morning traders.
It's been a while from my last publication of a strategy and today I want to share with you this small piece of script that showed quite interesting result across bitcoin and other altcoins.
The macd indicator is an indicator built on the difference between a fast moving average and a slow moving average: this difference is generally plottted with a blue line while the orange line is simply a moving average computed on this difference.
Usually this indicator is used in technical analysis for getting signals of buy and sell respectively when the macd crosses above or under its moving average: it means that the distance of the fast moving average (the most responsive one) from the slower one is getting lower than what it-used-to-be in the period considered: this could anticipate a cross of the two moving averages and you want to anticipate this potential trend reversal by opening a long position
Of course the workflow is specularly the same for opening short positions (or closing long positions)
What this strategy does is simply considering the moving average computed on macd and applying a linear regression on it: in this way, even though the signal can be sligthly delayed, you reduce noise plotting a smooth curve.
Then, it simply checks the maximums and the minimums of this curve detecting whenever the changes of the values start to be negative or positive, so it opens a short position (closes long) on the maximum on this curve and it opens a long position (closes short) on the minimum.
Of course, I set an option for using this strategy in a conventional way working on the crosses between macd and its moving average. Alternatively you can use this workflow if you prefer.
In conclusion, you can use a tons of moving averages: I made a function in pine in order to allw you to use any moving average you want for the two moving averages on which the macd is based or for the moving average computed on the macd
PLEASE, BE AWARE THAT THIS TRADING STRATEGY DOES NOT GUARANTEE ANY KIND OF SUCCESS IN ADVANCE. YOU ARE THE ONE AND ONLY RESPONSIBLE OF YOUR OWN DECISIONS, I DON'T TAKE ANY RESPONSIBILITY ASSOCIATED WITH THEM. IF YOU RUN THIS STRATEGY YOU ACCEPT THE POSSIBILITY OF LOOSING MONEY, ALL OF MY PUBBLICATIONS ARE SUPPOSED TO BE JUST FOR EDUCATIONAL PURPOSES.
IT IS AT YOUR OWN RISK WHETHER TO USE IT OR NOT
But if you make money out of this, please consider to buy me a beer 😜
Happy Trading!