Multiple Screeners with AlertsI already published few version of my custom screeners. Unfortunately, because of TradingView's security function call limit you can't use more than 40 stocks in 1 screener.
Fortunately, you can compute multiple values in your function and screen few indicators at once.
In this script I show how you can compute 5 indicators at the same time for 40 instruments. I display then in different labels.
Every label consist of list of instruments satisfying current indicator conditions and a value for it. It can be absolute value as for RSI or -1/1 representing Bullish/Bearish event.
Also you can create 1 alert with result of all screeners inside.
In this example I took 5 indicators with following conditions:
RSI - "RSI < 30" or "RSI > 70"
TSI - "TSI < -30" or "RSI >30"
ADX - "ADX > 40"
MACD - "MACD Bullish Cross" or "MACD Bearish Cross" (1 and -1 in screener)
AO - "AO Crosses 0 UP" or "AO Crosses 0 DOWN" (1 and -1 in screener)
Params
- bars_apart - this parameter define how may bars apart you labels are on your chart. If you see labels overlapping, increase this number.
- Parameters for all used indicators
- 40 symbol inputs for instruments you want to use in this screener
Alerts
You can create an alert from it easily by selecting screener name from the list and then selecting "Any alert() function call".
No additional configuration is required, message and alert on close is generated in the code.
You should better change default name for your alert. Sometimes because of big amount of inputs you might receive an error.
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.
Macd-v
Highlighter Strategy V2// Based on Normalized Smoothed MACD by Dreadblitz
Old one was just an oscillator, I changed a few things
1) It now paints the line green/orange
2) The trigger (green/red) is now based on a signal
3) The signal is basically isUp, but with some additional controls, e.g.
4) (new) There is an embedded stoploss. This is a growth/decay function that decays slower than it grows.
5) Signal is filtered additionally by the stoploss (no green under the decaying line)
Highlighter StrategyOG COINBASE:BTCUSD
Based on Normalized Smoothed MACD by Dreadblitz
Updated slightly the rules about when it'll take a signal, and made it an overlay so that you see "green" and "red" on the price bar.
Things you might want to do when using it.
- Add a stoploss/trailing stop probably a MA of your choosing.
- Check different time frames to confirm a strong entry
rsi and macdRSI and MACD in the chart:
- small circles -> oversold/overbought
- big circles -> oversold/overbought rising/falling
- small diamonds -> macd over/under signal with macd over/under zero
Please comment if you have an idea to improve it ;)
GSO + RSI + MACD + MFI + Bollinger BandsThis script uses a Gann Swing Oscillator , RSI , MACD , MFI and Bollinger Bands to generate long and short signals for cryptocurrencies on the 5 minute chart.
The Gann Swing Oscillator was inspired by HPotter's GSO.
This script is for educational purposes only. This script is NOT to be used as financial advice. I will not accept liability for any losses which may occur as a result of using this script.
MACD oscillator with EMA alert version 4HThis is the study/indicator alert version of the macd + ema strategy.
The strategy details are the following :
Is a simple, yet efficient strategy, which is made from a combination of an oscillator and a moving average.
Its setup for 4h candles with the current settings, however it can be adapted to other different timeframes.
It works nicely ,beating the buy and hold for both BTC and ETH over the last 3 years.
As well with some optimizations and modifications it can be adapted to futures market, indexes(NASDAQ, NIFTY etc), forex( GBPUSD ), stocks and so on.
Components:
MACD
EMA
Time condition
Long/short option
For long/exit short we enter when we are above the ema , histogram is positive and current candle is higher than previous.
For short /exit long , when close below ema , histo negative and current candles smaller than previous
If you have any questions please let me know !
Redbear MACD + RSIHello . I make script that combine MACD and RSI
Green area is BUY SELL signal when rsi >45
you can custom parameter .
Log MACDThis is just a MACD indicator using the log of the closing price rather than the normal closing price. Useful for exponentially growing stocks and cryptocurrency.
MACD Multi-Timeframe IndicatorHello everyone, this is indicator has always been my go-to MACD indicator for many years. It is such a beautiful easy to understand indicator. You can also view different timeframe resolutions which is helpful. When the MACD crosses up the signal line it is green, and when it crosses below the signal line it is red. The signal line is the constant yellow line. MACD histogram is dark green when increasing buying momentum, and you'll see the green get lighter when buy momentum is decreasing. As well, MACD histogram is dark red when increasing sell momentum, and you'll see the red get lighter when sell momentum is decreasing. I hope you guys love this macd design. Happy trading!
The MACD indicator can be used in many ways but my favorite way to use MACD by itself is by going long when macd < 0 & macd crosses above signal line, and going short when macd > 0 & macd crosses below signal line. I added those alerts for anyone interested.
MACD + PSAR SetupThis indicator combines 3 elements:-
1. MACD which will act as a source of potential Buy Signal
2. PSAR which provides the confirmation for buy signal and for potential Buy on Dip Strategy
3. Breakout candles which provides the confirmation signal for Buy on Breakout strategy
4. The direction of the trend is provided by the Exponential Moving Average
The strategy is to have any counters which has triggered the MACD Golden Cross signal. These counters are to be out under watchlist for further confirmation.
The Buy Signal is confirmed when:-
1. Price is above EMA Direction(standard is set at 200)
2. PSAR has given the Buy Signal OR a Breakout Candle occurs.
Buy Signal is shown with a Green Diamond symbol whilst the Sell Signal is shown in Red Diamond Symbol.
The bullish and bearish condition is set via a green and red background
The MACD and PSAR codes are derived from the standard codes which is available in tradingview.
ADX Momentum cross + MacD + HH LL + Buy/Sell Signals and alerts Hello, This is the first indicator I have made and would like to contribute to the community.
This strategy came from trying to replicate a previous ADX Cross Indicator that I loved on MT4 which I used successfully on EUR/USD on high and low time frames. Through the process of trying to replicate it I failed, I decided to take what I had written so far and create my own ADX cross strategy using the combination of 3 ADX's, their lag. Then also using Higher highs and lower lows with the MacD to further filter the signals.
There are two buy and two sell conditions , the difference between these are just the order in which the ADX crossing determines the entry. The MacD and higher highs and lower lows are the same for filtering the signal.
You can change the look back for HH and LL look back range, along with the DI Length & ADX Smoothing for all ADX's. The lag used for either the buy or sell strategy with the Lag_Buy/Lag_Sell inputs. Lag_mid setting will affect all 4 conditions.
From testing and based on the ADX cross logic you should follow this structure when changing the inputs for:
DI Length: Lowest DI value (I.E. 1)
DI Lengtha: Middle DI value (I.E. 2)
DI Lengthb: Highest DI value (I.E. 3)
ADX Smoothing: Lowest Smoothing value (I.E. 1)
ADX Smoothinga: Middle Smoothing value (I.E. 2)
ADX Smoothingb: Highest Smoothing value (I.E. 3)
I tested this on the EUR/USD, but mainly I have been using it on BTC/USDT(binance) and BTC/USDT Perpetual futures(binance) with the 5 minute chart. I suggest playing around with the settings depending on the Symbol and timeframe you use because the default settings are what I last found to be optimal for my self on the 5min BTC/USDT Perpetual futures(binance) chart.
A good starting point I found when using the indicator on other charts is to use the below values:
DI Length: 7
DI Lengtha: 14
DI Lengthb: 21
ADX Smoothing: 7
ADX Smoothinga: 14
ADX Smoothingb: 21
If you have any questions, suggestions, or requests for this indicator feel free contact me. You can either comment on here or Message me
If you like this indicator please like and comment where you found it useful.
Stochastic MTF IICombines Stochastics, RSI and MACD Histogram to give a complete picture of the momentum.
The main two lines are stochastics from the higher time frame(current time frame* 4).
The red columns are stochastic of macd histogram.
The green histogram is the stochastic rsi of price.
The dots at 50 line is the correlation between price and macd+rsi combo.
Awesome Oscillator & MACD Cross TacticOscillator for Tradingview based on MACD and Awesome Oscillator. This oscillator is designed to identify potential local growth or decline in prices as part of a trend movement.
For some ridiculous reason I am not allowed to attach screenshots of graphs and links on TradingView, so I hope that you will find my detailed instructions on my github page: github.com/samgozman/AO-MACD-cross-tradingview
[SK] Double MACDThe Double MACD indicator is precisely two different MACD indicators plotted on the same axis for precise visual correlation between each other.
This correlation provides more information than a single regular MACD by allowing you to compare the signals of a shorter timeframe to the default or longer timeframe,
showing the strength of the change in momentum and the peak of the momentum between both configurations.
The indicator has cloud options by default if you toggle on the MACD / Signal lines for better readability.
The cloud will change color to the line on top of it's set. This is to help you not get lost in the 4 different lines.
Customize the indicator to your preference and make it your own
If you'd like a candle like visualization, change the short MACD plot style to a histogram.
For a beautiful double bars style, select bars on both configurations and set the transparency to 30 - 40
For a dynamic moving average style, go with the line plot style ( default )
All MACD/Signal lines are toggled off by default, toggle them on in the inputs section.
On the styles panel, you can turn off the cloud fills or the lines.
Change all the colors you'd like!
SPY Ninja Oscillator
SPY Ninja Oscillator correlates the true strength index exponential moving averages of SPY (green) and VIX (red) together. In doing so we can determine the start of trend shifts via SPY / VIX convergence in addition to crossover, with potential market entries and exits represented by the vertical green and red bars.
MACD and RSI have been scaled proportionally to the oscillator range ( for rsi: (rsi-50)*. 01 , and for macd: macd /3) and when overlaid and used in conjunction with the market vertical entry and exit signals, potential trend prediction becomes much more apparent.
Stochastic with MACD filter + SL/TP + AlertsLong Arrow : close of the candle is above ema + Stochastic is oversold + MACD is below 0 + Stochastic cross up
Short Arrow : close of candle is below ema + Stochastic is overbought + MACD is above 0 + Stochastic cross down
Also added SL, 1:1 and TP where SL can be varied by ATR value and TP is set to 2:1 RR but it can be varied too.
It is not meant to take every single trade even though that might already be profitable.
For higher winrate look for the higher timeframe trend for example when trading the 15min look if the Daily 8ema is going up or down.
Also only take trades when there is either a hidden divergence on RSI or a smaller normal divergence.
The I take the normal divergenes alo when there is no higher high like an M or lower low for longs like a W these tend to work out pretty good too.
Alerts are in it too.
Have Fun :)
MacD Custom Indicator (updated to version 4)I updated existing script “ MacD Custom Indicator-Multiple Time Frame+All Available Options! ” originally created by ChrisMoody to Pine Script 4. version, so you can use it within your own strategy for algotrading or trading bots.
Customizable Percentage Price Oscillator (PPO)The PPO is basically the MACD but in percentage terms. This is better for comparing momentum across different securities.
This script is a standard PPO but with many options for customization. You can set the moving average type of the signal and the oscillator lines separately. You can also weight any moving average of the PPO by volume.
Supported Types of MA:
SMA
EMA
ALMA
HMA
WMA
Personally, I believe weighting by volume is helpful across markets but especially helpful for equities. I like to use 3,10,16 settings similar to Linda Raschke but with EMA instead of SMA. This indicator is especially useful for signaling trend continuation and generating exit signals. For entries, I believe this indicator should not be blindly followed and works better when combined with a trend or price action signal.
If there are requests for more types of moving average to be used with the PPO, I would be down to implement them, but I believe most moving averages are pretty similar.
MACD BandsThis is MACD indicator on the price chart. You can read the same information as the original MACD but much more.
You can use it the same way as MACD but it won't use any space below your chart. Also you can use signal line and cloud as trend confirmation: e.g. if above them it can be a stronger uptrend.
The signal line (yellow by default) can be used as a support-resistance line.
If teal line is above maroon line, MACD is positive, otherwise it is negative
MACD value is the width of the cloud
Cloud color is green when MACD histogram is positive, red if negative
You can change MA types
MACD and histogram values can be seen in Data Window
Dominant Cycle Adaptive MACDThis Indicator is based on classic MACD but with an exceptional smoothing.
This smoothing eliminates the noise of the classic MACD as you see in the Chart
Adaptive MACD is compiled using with two adaptive moving averages, one adaptive to the dominant cycle and the other adaptive to twice the dominant cycle. As the basic behind the MACD is the difference of two moving averages we cannot find much difference between the conventional MACD (12, 26) and the adaptive MACD. However the adaptive MACD is less prone for less whipsaws and it catches the trends very well at the same time the catches the turning points in time. The Adaptive MACD is definite one notch better than the conventional MACD.
Dominant Cycle Period is calculated using Ehler's Method {Mentioned in the code}
This is how the Adaptiveness Impacts the Price Chart
1. (12, 26 EMA) VS Adaptive Dominant Cycle EMA
2. See how the Adaptive Lengths {both FastLength and SlowLength changes with time!}
Enjoy!
Volume Weighted MACD with Named PlotsLiterally just copied VWMACD but named the plot lines to make setting alerts more clear.