datsana V.1datsana ;
script uses analysis of :
- directional price movements ,
- strength / weakness of market,
- volatility
based on these indicators :
- DMI
- RSI & RSI div.
- Bollinger Bands
- Ehlers fisher transform
- DM
in order to find possible bullish / bearish reversals .
this script also uses a ‘deceleration’ system to filter reversal signals :
when a market is considered as too much volatile , then this ´deceleration system’ filters out all signals . ( you can turn off deceleration in the script settings )
you can also manage the ´deceleration density’ : the lower the deceleration density is , the more the filter be strict ( it will filter out more signals )
this indicators prints :
- RSI div. based support / resistance levels .
- bollinger bands
- ema199 / ema299 difference cloud
- liquidity gaps candles pattern ( ‘tkps’)
- possible reversal signals ( small arrows )
- filtered possible reversal signals ( triangles + ‘T’ or ‘B’ letters )
this script works better on low timeframes ( I recommend 15m to 1h TFs )
相対力指数 (RSI)
RSI v4 with Bands
Script is extended version of usual RSI script
This script plots VWMA(RSI7) vs EMA(RSI7) under pre-set time frame.
Strategy is to make sure both points remain in the Green zone while entering into BUY position
Use it as indicator not as financial advice.
~ @imbharat
MA Bollinger Bands + RSI (Study)This study/indicator script is meant to allow users to set alerts based on my MA Bollinger Bands + RSI (Strategy).
Both Study and Strategy scripts reflect the exact same user inputs, parameters and trading signals.
6 different alerts available:
- MABB+RSI Long (or Short) Signal (all): activates for every single Long (or Short) signals
- MABB+RSI Long (or Short) Signal: activates when trade direction changes from Short to Long (or from Long to Short)
- MABB+RSI Long (or Short) Re-Entry Signal: after a stop loss was hit, activates upon same trade direction if new signal
(“Enable SL” & “Allow re-entry” must be switched on)
Chart legend:
- Red arrow = Short Signal
- Blue arrow = Long Signal
- Red square = Stop loss (when trade entry)
- Purple square = Stop loss (when hit)
NB1: Be sure to set both Study and Strategy script settings to the same values if you want to achieve similar results in both scripts.
NB2: When setting up your alerts, preferably use option “Once per bar close” to get proper confirmations.
Enjoy!
Relative Strength Index TOP and Bottom Circles with AlertsFind the top and bottom using the RSI, the red circle means overbought > 70 and the green circle means oversold < 30
Relative Strength Exponential Moving Average [CC]The Relative Strength Exponential Moving Average was created by Vitali Apirine (Stocks and Commodities Jan 2022 pgs 22-25) and this is a handy moving average that combines a typical overbought/oversold mechanic with an overall trend indicator. Even though the typical length is so large it reacts extremely quickly when the stock becomes overbought or oversold. Because of this the indicator by itself doesn't work as well during choppy periods so Vitali recommends using a moving average crossover system during choppy so do one indicator with the default length of 50 and use a different length of 10 so when the shorter length crosses over the longer length then buy and vice versa you would sell. Generally speaking buy when the line turns green and sell when it turns red. I have used strong buy and sell signals in addition to normal signals so strong signals are darker in color and normal signals are lighter in color.
Let me know if there are any other scripts or indicators you would like me to publish!
Buy / Sell alert indicator [Crypto_BCT]Hello everyone!
I bring to your attention a indicator to determine the point of buy and sell purchase.
It is based on oscillators and a moving average.
It can be used to work with bots, for example 3COMMAS DCA bot.
Signal Condition Settings:
ATR
The current candle is larger than the ATR for this period
EMA
The signal is necessarily below (for buy) and above (for sell) the EMA of the specified period
(Buy) RSI low
The RSI index is below this value
(Sell) RSI High
The RSI index is higher than this value
(Buy) MFI low
The MFI index is below this value
(Sell) MFI High
The MFI index is higher than this value
(Buy) CCI low
CCI index is below this value
(Sell) CCI High
The CCI index is higher than this value
(Buy) Lowest bar from
The closing of the current bar is lower than the closing of the bars back in this range
(Sell) Highest bar from
The closing of the current bar is higher than the closing of bars in this range
(Buy) Lowest EMA bar ago
During a given distance back, the EMA value only decreased
(Sell) Highest EMA bar ago
At a given distance back, the EMA value only increased
I hope it will be useful!
RSI StrategyThis RSI strategy will allow you to go long when RSI is overbought and go short when RSI is oversold. You can also change the checked boxes to reverse this. Uncheck "Overbought Go Long & Oversold Go Short" and check "Overbought Go Short & Oversold Go Long" to use this reversed option.
You can also choose to use an ema filter as an additional qualifier for entry. Uncheck "No EMA Filter" and check "Use EMA Filter" if you want to use it.
Be sure to enter slippage and commission into the properties to give you realistic results.
I've also built in backtesting date ranges and the ability to trade only within certain times of day and have it close all trades at the end of that time frame. This is especially useful for day trading stocks. To specify a time from use the format 0930-1100 or whatever your trading hours will be. Check off "Enable Close Trade At End Of Time Frame" to close the trade at the end of your trading hours.
You can also specify a % based take profit and stop loss. Also keep in mind that the way this code is designed if you use the stop loss and/or take profit and it reaches either target and closes, then it will immediately re-enter if the condition for long or short entry is true.
Finally there's custom alert fields so you can send custom alert messages for strategy entry and exit for use with automated trading services. Simply enter your messages in the fields within the strategy properties and then put {{strategy.order.alert_message}} in your alert message body and it will dynamically pull in the appropriate message.
Buy alert [Crypto_BCT]Hello everyone!
I bring to your attention a simple indicator to determine the point of purchase.
It is based on oscillators and a moving average.
It can be used to work with bots, for example 3COMMAS DCA bot.
Signal Condition Settings:
ATR
The current candle is larger than the ATR for this period
EMA
The signal is necessarily below the EMA of the specified period
MFI low
The MFI index is below this value
CCI low
CCI index is below this value
RSI low
The RSI index is below this value
Lowest bar from
The closing of the current bar is lower than the closing of the bars back in this range
Lowest EMA bar ago
During a given distance back, the EMA value only decreased
I hope it will be useful!
RSI true swingsRelative Strength Index (RSI) is being used by majority of the traders to get benefitted based on the swings. But these swings are hard to Identify.
This Indicator uses 4 major factors for finding the potential reversal points:
RSI Crossover or crossunder
Relative volume
Overall volume against the moving average volume
Relative closing of the candles
Size of the bars
Please read Instructions carefully before using this indicator
Recommended entry is the OHLC4 of the signal bars.
If signal bar is too large, try to enter in the retracement when another signal comes either through indicator or through types of bars
when signals comes opposite to the trend, then try to wait for the next signal of same type. This creates a RSI-price divergence in confirmation by volume price action
Timeframe can be of your choice
Recommended stoploss should be swing highs or lows
NPMA Relative Strength IndexRecently been amased by the potential of percentile nearest rank. You can apply this to almost any indicator to find extremes, this script might the simplest form of using it while being very powerful. The background will color green when the rsi is in the top percentage ranges of last X amount of bars. I'm currently searching optimal settings to apply this to a simple 3commas bot. Feel free to comment good settings and help the community out making profitable bots.
RSI Triple Time FrameThis indicator / study script can display the RSI for current chart timeframe along with the RSI of 1 to 3 other timeframes.
When all 3 additional RSI are at extreme levels (overbought/sold) or crossing the neutral line (50%) at the same moment, background chart color will change accordingly.
This indicates a strong momentum convergence between all selected timeframes, hence producing a stronger signal!
Go to settings to display/modify additional timeframes and/or to enable background colors:
Green = Overbought
Red = Oversold
Yellow = crossover neutral
Orange = crossunder neutral
NB1: For a simple and easy read of the RSI, set all additional TF to current chart TF and switch on desired colors.
NB2: Please note that current chart TF is not taken into consideration to change background color. But you can always set one of the 3 additional TF to the same TF as current chart.
Bonus: If you are also a user of my “MA Bollinger Bands + RSI” strategy script, this is particularly useful to visually detect crossover and crossunder of the RSI neutral line 😉
As always, enjoy!
RSI Divergences + Bollinger Bands█ OVERVIEW
Here's the RSI divergences with Bollingers bands.
█ CONCEPTS
5 features
1 — RSI
2 — Bollinger bands
3 — RSI signal is in another color when above 70 or below 30
4 — Looking for previous Divergences, Bullish, Bearish and Hidden Bullish and Bearish but I don't like Hidden divergences
5 — Color fill when overbuy or oversold
█ OTHER SECTIONS
I like to see it like a moutain, with snow on top and lake on bottom. I think you don't want to start walking at the top, nor sink to the bottom of the lake for ever and ever.
It is an idea of sjoerd , tip him if you like it.
An oscillator is good to know where we are in the trends, but it's not enough to run a small business of trading, you need to learn how to use it.
What is a divergence ?
Thanks to The rational investor for teaching me how to use this indicator.
MA Bollinger Bands + RSI This script uses the standard deviation of a given moving average along with an RSI direction.
When: rsi crossover neutral line + price crossover lower deviation boundary => long
When: rsi crossunder neutral line + price crossunder upper deviation boundary => short
Donchian Range, RSI, and Levels SystemThe Donchian average is defined as average(highest, lowest) for a given period length. By plotting many different lengths, clustering of the lines seems to form natural support/resistance levels. A Donchian Channel and RSI rainbow colors are also provided to define the range and trend.
RSI Multi Length [LuxAlgo]The following indicator aims to return information over RSIs using multiple periods, including the percentage of RSIs of different periods being overbought/oversold, as well as the average between these multiple RSIs.
The percentage of RSIs of different periods being overbought/oversold is additionally used to return adaptive overbought/oversold levels.
Settings
Maximum Length: Maximum period of the RSI used for the indicator calculation
Minimum Length: Minimum period value of the RSI used for the indicator calculation
Overbought: Value of the overbought level
Oversold: Value of the oversold level
Src: Input source of the indicator
Usage
The main element of the indicator is given by the multi-length RSI average, returning an oscillator similar to a fixed-length RSI. Because of its multiple length nature, the indicator can reflect shorter to longer-term price variations depending on the Maximum/Minimum length range defined by the user.
The green area indicates the percentage of RSIs over the user-defined overbought level. The red area indicates the percentage of RSIs under the user-defined oversold level, this percentage is inverted for ease of visualization. Additionally, a dashboard at the top right of the indicator pane indicates these percentages for the most recent bar.
A lower percentage of overbought/oversold RSIs can indicate a potential shorter-term retracement.
These percentages are used to construct adaptive overbought/oversold levels for the average multi-length RSI. The overbought level will be easier to reach if the percentage of overbought RSI's is high, the same logic applies to the adaptive oversold level.
DCA RSI Add funds exit simulatorThis script helps with planning on how to exit DCA deals that are in the negative.
The following deal information is required
- Current average position price
- Funds invested
- Required take profit
Additional indicator settings are
- The date/time on which to start the simulator
- Minimum deviation % to start adding funds
- Expected bounceback from when funds are added
The RSI trigger
Adding funds is triggered when the selected RSI settings yield a value that is at or beyond the selected threshold.
How it works
The amount of funds needed are calculated based on the supplied settings, such that the new average price matches the expected bounceback.
It will also show if the exit strategy has failed to hit the TP (this happens when the RSI threshold is hit again)
Nifty50 Participants - Top 25Nifty50 Index is calculated based on the movements of its participants. Every time you think of why is Index going up/down, who is actively dragging the index either ways, this Indicator gives you answer for the same in realtime!
This indicator will help you in pre-planning your trades based on the movements shown by different stocks of various sectors in Index calculation.
RSI column is an add-on to the participation table which will help you in getting RSI values of different stocks of Nifty 50 at a glance. You will see values getting updated in realtime in live market.
Checkout for customisations in indicator settings.
Note:
1. Participants present in this indicator and their participation percentage is taken from the official NSE website.
2. Table shows Top 25 participants by default. If you want to see less than 25 rows, you can update the input via indicator settings.
Feel free to contribute/comment changes if any! Comment in case of any suggestions :)
- Published by Soham Dixit
5min Williams Fractals scalping (3commas)Another strategy I'm learning Pine Script on. It is inspired by a MoneyZG youtube strategy called "Easy 5 Minute Scalping Strategy (Simple to Follow Scalping Trading Strategy)".
Again this is a one order per trade strategy compatible with the 3commas bot (works also with the free 3commas subscription). This strategy is based on the signals from Williams Fractals, taking the signals in reverse - red triangle indicates a bottom and hence we go long. The green triangle indicates a top so we go short. By default these signals are only accepted if they occur between the two Emas. However, you can also turn this off and when a WF signal comes in, only the current price has to be between the Emas. Stop loss is set to the current Ema slow and the take profit is a multiple of the distance to the slow ema.
Like previously I have added different filters as well as the ability to view essential things like the WF signal and Emas. I hope the script will help you to be more successful and if so it would be great if you could share here your setups, or tips on what would be good to refine to make it an even a more profitable strategy. Kind of a community approach so that we help each other out :).
Instructions for the 3commas connector:
1. First, you need to prepare 3commas Long/Short bots that will only listen to custom TV signals.
2. Inputs for the 3commas bot can be found at the end of the user inputs.
3. Once you have entered the required details into the inputs, turn on 3commas comments. They should appear on the chart (looks messy).
4. Now you can add the alert where you should paste the 3commas Webhook URL: 3commas.io
5. For the alert message text insert the placeholder {{strategy.order.comment}} and delete the rest.
6. Once the alert is saved, you can turn off those 3commas comments to have a clearer chart.
7. With a new alert, the bot and trade should launch.
In the near future I would like to publish more scripts that will carry similar elements as the first two, incl. compatibility with 3commas (I don't have access to another bot system). I will choose some strategies myself, but I will also be glad for some tips on what strategy would be good to do and is still missing here on Tradingview (short youtube videos or brief strategy manuals would be great).
Thanks and keep it up
PS: My screen values starting at Long Target Profit and ending at Pullback NOT greater than: 1.5; 1.5; 0; ON; 1; 2; OFF; 17; 36; ON; 0.05; ON; Chart; 14; 46; 50; 48.5; 51; OFF; 1; ON; 4; 2.
R950S- MehmetAltun
hello, it allows you to see both rsi and ma and ema values on the same screen. You can set the levels you want in the Aarlar section. You can make the coloring you want.
Chimpanzee V2.5 part A by joylay83Hi everyone, I am an amateur pinecoder. I would like to share my script which is coded with the intention of generating signals to send to 3commas webhook. It is still in development and revision.
This collection of indicators use:
Chart: 15m.
Inverse Fisher Transformation of the RSI to detect dips in the 15m timeframe.
Bollinger band (4H) to filter out false signals.
Triple EMA 21: to mimic price action for easier coding alerts. Currently not involved in generating signals. will be incorporated in the future.
StochRSI: As a visual filter. Currently not involved in generating signals. will be incorporated in the future.
Background will be green if stochRSI is low and red if stockRSI is high.
Candlesticks will be marked with a flag is TEMA breached BB.
One would need to play around with timeframes, BB settings and IFTRSI threshold for different signals.
There are 2 Signal Modes (with regards to IFTRSI):
Threshold: When price action falls below BB and IFTRSI hits buy threshold, a buy/sell signal is generated. Eg if IFTRSI buy threshold is set to -0.9, the buy signal will remain continuously positive as long as IFTRSI is < 0.9.
Cross: When price action falls below BB and IFTRSI hits threshold, nothing happens. It will wait until the IFTRSI cross back over the threshold before firing a signal.
There is another identical set of indicators running on a higher time frame (IFTRSI: 4H, BB: D or 3D, TEMA 21 4H) but on the same chart. This tend to generate less signals but are more reliable. A usage example would be to send a larger buy order if the signal comes from this higher time frame, or execute a sell order after multiple buys from the lower time frame.
It comes in 2 parts:
Part A: Contains overlay display. This displays BB, Triple EMA, buy/sell and StochRSI in labels. the labels are self explanatory.
Part B (please search for it): which is actually the same code but contain non-overlay display. You may also put part B overlay=true but scale to LEFT. The advantage of using overlay=true is that you can move the signal right over the candlesticks (mainly for troubleshooting/debugging). This part contains Inverse Fisher RSI, %B, Signal Line. %B is supposedly idential to Bollinger Bands in Part A.
By default, when there is a buy/sell signal:
lower time frame 15m: Signal Line in Part B will turn blue with a value 1 or -1 which corresponds to a buy or sell label in Part A
higher time frame 4H: Signal Line in Part B will turn red with a value 2 or -2 which corresponds to a HTF buy or sell label in Part A
Part A or B may be used to send signal to the webhook. You have to make sure that the settings of Part A and B are identical.
You may choose to un-display some items to reduce clutter.
Current problems:
1. Still too many buy signals
Although many times it will generate excellent buy signal at many swing lows, but there are many buy signals prior to a major swing low. This can be observed in the picture above. It also generate a couple of buy signals prior to the swing lows. I am currently experimenting with 20m and hourly timeframe to address this issue. More filters are needed eg an oscillator or detecting candlestick patterns.
2. Premature sell signals.
The sell signal is often generated at the beginning of a major bull run. My idea to solve this problem is to move to a higher timeframe and sell only when TEMA crossunder the upper bollinger band.
3. Lack of a backtester that can test multiple concurrent deals.
Buy -> Buy (average down) -> Buy (average down) -> Buy (average down) -> Sell
4. Lack of the ability to calculate average purchase price
Probably have to code it as a strategy
5. Display lag
As the browser is running 2 copies of the idential script, it tends to lag when you drag your chart around. So far there are no timeouts or delay in firing alerts to 3commas.
I do welcome any suggestion for improvement and constructive criticism. tqvm.
Credits : Thank you for doing an awesome job. I learnt a lot from your codes and tutorials.
Credits not listed in any order. If your code is used here and did not receive due credit, kindly drop me a note. tq.
Blessing 3 by JTA Today
@ZenAndTheArtOfTrading (extremely-easy-to-understand tutorials eg fixing repainting)
@LazyBear (various codes)
@Galactus-B Argo I
@TheTradingParrot (Inverse Fisher RSI and Gavin's backtester)
@zendog123 (backtester and various codes)
@ydeniz2000 (Bollinger Bands)
TradingView built-in scripts
Relative Volume Strength Index (MZ RVSI)INTRODUCTION
Volume always plays a role of key indication for price movements and momentum and I always found the same problem with all available volume oscillators and indicators which is that their data is always in compounded form that can’t be easily used in raw form as a parameter in many strategies.
This indicator uses raw volume data from one of following oscillators:
TFS Volume Oscillator
On Balance Volume
Klinger Volume Oscillator
Cumulative Volume Oscillator
Volume Zone Oscillator
Then this data goes through the following process of noise filtration:
Hull Moving Average of input data to reduce noise
Relative Strength Index of HMA
Hull Moving Average of RSI to reduce noise for finalized RVSI
ADDITIONAL FEATURES
Heiken-Ashi: Heiken-Ashi values are optional to use in calculations and I’ve set them to default as I found good results with them.
Slope for Trend Detection: Slope of finalized RVSI is calculated in order to check volume trend direction. Another additional feature of Volume breakouts is also added which is used in dynamic coloring of RVSI. Dynamic color indications are as follows.
Green Color:
Strong Volume Uptrend above volume breakout point
Fuchsia Color:
Weak Volume Uptrend below volume breakout point but slope supported
Red Color:
Strong Volume Downtrend below volume breakout point
Gray Color:
Weak Volume Downtrend above volume breakout point but slope supported
Yellow Color:
Possible trend reversal as slope is flat.
DEFAULTS SETTINGS
Volume length is 30 (Better for timeframes higher than 1H)
Hull Moving Average and RSI length is set to 14
ADDITIONAL APPLICATIONS
This indicator can be used as divergence detection tool for volume same way as RSI is used for price divergence. I’ll soon add divergence signals inside the code and this code can be used in multiple ways as volume breakout indication in strategies for better results.
Signal Table - AutoFib - SMA - EMA - RSI - ATR - VolWith this indicator you can add a table on top of your chart.
What's in this table?
On which graph you open this table, the indicator data at the selected time of that graph are written. In the image below, you can see the table in the upper right.
You can also see two EMAs above the chart in this indicator. You can adjust their length.
You can add automatic fibonacci retracement levels to the top of the chart. In this way, you can see the Fibonacci levels on the chart and determine the support resistance. If the price is above the Fibonacci level, it will appear green on the chart, and red if below. You will understand as you use it.
It turns red if the RSI is below 30 and green if it is above 70.
Likewise, if the price is above the moving averages you have set, it appears as green, and if it is below it, it appears as red.
You can hide and activate the EMA and Fibonacci levels above the chart.
For example, you can get the ETH chart while the BTC chart is open in front of you. I think you will understand everything clearly from the settings tab below. Please support me. I hope you will be satisfied using it.
Williams %R & RSI with Multiple PeriodsDESCRIPTION
1. Calculates %R and RSI with multiple period lengths.
1 period length value is defined by User.
8 period length values follow User's selection of classic number sequences, e.g. Fibonacci, Leonardo, Lucas, Narayana, etc.
2. User selects which indicator and periods to display or hide.
DEFAULTS
%R default custom period: 10.
RSI default custom period: 14.
%R & RSI default number sequence periods: Lucas numbers 11, 18, 29, 47, 76, 123, 199, 322.
CALCULATIONS
%R = (period high - most recent period's close price)/(period high - period low)
RSI = 100 - 1 / (100 + RS), where RS = SMMA(up, period) / SMMA(down, period)
PURPOSE
1. Identify price trends.
CREDITS
1. Williams %R technical analysis momentum oscillator by Larry Williams.
2. Wilder's Relative Strength Index technical analysis momentum oscillator by J. Welles Wilder.
3. "Solarized" color scheme by Ethan Schoonover.