Vertical Lines 2A vertical line plotting function is missing in Pinescript. This is another method to plot vertical line on a chart, and an improvement on my previous script "vertical lines" .
The script hacks the plotcandle function to display just the wicks without the body. This hack simulates a vertical line. The body of the candle is non-existing since the open and close are the same and its color is set to null. The wicks are abutting resulting in a continuous vertical line.
Drawbacks include inability to set width and transparency of the lines. The plotcandle function does not allow setting the width and transparency of the wicks. This feature would be desirable.
The crossing of the RSI of overbought and undersold zones is used as an example in this published script. Any indicator can be used and this script can be executed on any other indicator by using "add indicator" on the desired indicator, and selecting the indicator as the source. I added crossover lines on the plotted RSI as an example.
//////////////////////////////////////////////////////Breakdown of the script////////////////////////////////////////////////////////
The src input determines which price data is used for the highest value calculation. By default, it is set to the close price.
The length input determines the length of the RSI calculation. By default, it is set to 14.
The mult input determines the multiplier of the highest value that is used to determine the height of the vertical lines. By default, it is set to 100%, meaning the lines will reach the highest value in the dataset.
The top and bot inputs determine the overbought and oversold levels for the RSI. By default, they are set to 70 and 30, respectively.
The current_rsi and previous_rsi variables calculate the RSI values for the current bar and the previous bar, respectively.
The hi_value variable finds the highest value in the dataset, and the hi variable calculates the height of the vertical lines based on the highest value and the user-defined multiplier. The lo variable calculates the distance between the highest value and the current price data.
The uph, dnh, upl, and dnl variables determine the height and low of the vertical lines for when the RSI crosses overbought or oversold levels.
The if statements check if the RSI has crossed overbought or oversold levels and set the uph, dnh, upl, and dnl variables accordingly.
Finally, the plotcandle() function is used to plot the vertical lines on the chart. The open and close values are set to the src input, and the high and low values are set to the uph, dnh, upl, and dnl variables. The bordercolor argument is set to na to hide the borders of the lines, and the wickcolor argument is set to green or red, depending on whether the line is an overbought or oversold crossover.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Bänder und Kanäle
Reverse Double Smoothed Relative Strength Index Bands[CC]The Reverse Double Smoothed Relative Strength Index Bands is a custom script of mine that is another part of my RSI indicator series, which I will be publishing over the next week or so. This takes my Double Smoothed Relative Strength Index script and applies the Reverse RSI formula to create a new Bollinger Bands type indicator. This concept can work for almost any oscillator with some slight tweaking. I have a reverse RSI being calculated for each major RSI level to give you an approximation of what the price would look like if that RSI level was hit. Feel free to tweak the RSI levels of course. I will publish more Reverse indicators since that doesn't seem to be a topic that is touched on very frequently. I have color coded the indicator to show darker colors when it is a strong signal and lighter colors for normal signals. Buy when the lines turn green and sell when they turn red.
This was a custom request from @kerpiciwuasile so let me know if you want to see me publish another custom script!
Blocky's EMA RibbonA classic EMA ribbon setup.
The script uses eight EMAs, with default lengths ranging from 21 to 55 periods, with an additional EMA with a default length of 200 periods.
The lengths of the EMAs can be customized, when customizing, the shortest time frame should be first and the longest time frame last.
The ribbons gradient strength is calculated based on the EMA's sequence, and their separation.
The color and transparency are set based on the calculated strength. The bolder the color, the stronger the strength.
Use the opacity multiplier to increase/decrease the strength of the gradient. BITSTAMP:BTCUSD
Shorting when Bollinger Band Above Price with RSI (by Coinrule)The Bollinger Bands are among the most famous and widely used indicators. A Bollinger Band is a technical analysis tool defined by a set of trendlines plotted two standard deviations (positively and negatively) away from a simple moving average ( SMA ) of a security's price, but which can be adjusted to user preferences. They can suggest when an asset is oversold or overbought in the short term, thus providing the best time for buying and selling it.
The relative strength index ( RSI ) is a momentum indicator used in technical analysis. RSI measures the speed and magnitude of a security's recent price changes to evaluate overvalued or undervalued conditions in the price of that security. The RSI can do more than point to overbought and oversold securities. It can also indicate securities primed for a trend reversal or corrective pullback in price. It can signal when to buy and sell. Traditionally, an RSI reading of 70 or above indicates an overbought situation. A reading of 30 or below indicates an oversold condition.
The short order is placed on assets that present strong momentum when it's more likely that it is about to reverse. The rule strategy places and closes the order when the following conditions are met:
ENTRY
The closing price is greater than the upper standard deviation of the Bollinger Bands
The RSI is less than 70.
EXIT
The trade is closed when the RSI is less than 70
The lower standard deviation of the Bollinger Band is less than the closing price.
This strategy was backtested from the beginning of 2022 to capture how this strategy would perform in a bear market.
The strategy assumes each order to trade 70% of the available capital to make the results more realistic. A trading fee of 0.1% is taken into account. The fee is aligned to the base fee applied on Binance, which is the largest cryptocurrency exchange by volume.
BB Mod + ForecastThis is a combination of two previous indicators; ALMA stdev band with fibs and Vector MACD.
Bollinger Band Mod fits the standard deviation on both sides of the center moving average ( ALMA +/- stdev / 2 ) and calculates Fibonacci ratios from stdev on both sides.
It is more averaging and more responsive at the same time compared to Bollinger Band.
Forecast is calculated from difference between origin ma ( ALMA from hl2 ) and six different period Hull moving averages averaged together and added to the center ma on both sides.
Fibonacci levels for 0.618 1.618 and 2.618 are added.
The dashed lines point towards the trend. Gives you a better idea of the current trend and momentum in the band.
Bollinger Band PW PackageThis script creates a Bollinger Band Package with Bollinger Band Percent and Width displayed on chart. The indicator also prints signals when price closes above or below the Bollinger Bands using shapes (circles by default). Bollinger Bands were created by John Bollinger, and consist of three lines plotted on a chart: the basis line (typically a moving average, 20 sma by default), an upper line (equal to the basis plus a certain number of standard deviations of the price, 2), and a lower line (equal to the basis minus the same number of standard deviations, 2 by default).
The script calculates the Bollinger Bands for a given input parameters by taking the length of the moving average and the number of standard deviations to use for the upper and lower bands. It then calculates the Bollinger Bands using these input parameters.
The script defines two functions: get_bb_percent() and get_bb_width(). The get_bb_percent() function calculates the percentage distance between the closing price and the lower band, as a percentage of the total distance between the upper and lower bands. This value is commonly referred to as the "Bollinger Band Percent". The get_bb_width() function calculates the percentage distance between the upper and lower bands, as a percentage of the basis line. This value is commonly referred to as the "Bollinger Band Width".
The script creates a table at the middle right of the chart, where the Bollinger Band Percent and Width values are displayed. The table is designed with two rows, one for the Bollinger Band Percent value and the other for the Bollinger Band Width value.
The script plots the three Bollinger Bands lines on the chart. The basis line is plotted in blue, the upper band line in red, and the lower band line in green.
The script then plots the shapes that signify closures above and below the bands using plotshape. The shapes and colors are customizable in the settings menu.
This indicator is designed to have all three components and a visual aid to assist Bollinger Band technical analysis in one script which can be helpful in determining potential trading opportunities. We thank John Bollinger for his contribution to technical analysis and trading.
Please give feedback and modify to your liking.
Role Reversal Detection Alert [MsF]Japanese below / 日本語説明は英文の後にあります。
-------------------------
When you draw a horizontal line on the W top or W bottom and be waiting for roll reversal, have you ever missed it when it rebounded at the horizontal line? It is a helpful indicator to prevent such oversight.
After the candle touches the horizontal line (including the touch of the leg), and then the candle body passes the alert judgment horizontal line, it will be alert.
The horizon line and the alert judment horizon line should be entered as parameters.
- Parameter
Input Horizontal Value: Enter the horizontal value
Band Range by pips : Enter the offset from horizontal line by pips
-------------------------
WトップやWボトムに水平線を引いてロールリバーサルを待ってる時に見事水平線で反発したのに見逃すことはありませんか?
そんな見落としを防止するためのお助け的なインジケーターです。
メイン水平線にローソク(ひげ含む)タッチ後、からアラート判定水平線を実体で抜けた場合にアラートを発報します。
メイン水平線とアラート判定水平線はそれぞれパラメータで入力する必要があります。
<パラメータ>
Input Horizontal Value:メイン水平線の価格を入力します
Band Range by pips :メイン水平線からアラート判定水平線のオフセットをpipsで入力します
+ Average Candle Bodies RangeACBR, or, Average Candle Bodies Range is a volatility and momentum indicator designed to indicate periods of increasing volatility and/or momentum. The genesis of the idea formed from my pondering what a trend trader is really looking for in terms of a volatility indicator. Most indicators I've come across haven't, in my opinion, done a satisfactory job of highlighting this. I kept thinking about the ATR (I use it for stops and targets) but I realized I didn't care about highs or lows in regards to a candle's volatility or momentum, nor do I care about their relation to a previous close. What really matters to me is candle body expansion. That is all. So, I created this.
ACBR is extremely simple at its heart. I made it more complicated of course, because why would I want anything for myself to be simple? Originally it was envisaged to be a simple volatility indicator highlighting areas of increasing and decreasing volatility. Then I decided some folks might want an indicator that could show this in a directional manner, i.e., an oscillator, so I spent some more hours tackling that
To start, the original version of the indicator simply subtracts opening price from closing price if the candle closes above the open, and subtracts the close from the open if the candle closes below the open. This way we get a positive number that simply measures candle expansion. We then apply a moving average to these values in order to smooth them (if you want). To get an oscillator we always subtract the close from the open, thus when a candle closes below its open we get a negative number.
I've naturally added an optional signal line as a helpful way of gauging volatility because obviously the values themselves may not tell you much. But I've also added something that I call a baseline. You can use this in a few ways, but first let me explain the two options for how the baseline can be calculated. And what do I mean by 'baseline?' I think of it as an area of the indicator where if the ACBR is below you will not want to enter into any trades, and if the ACBR is above then you are free to enter trades based on your system (or you might want to enter in areas of low volatility if your system calls for that). Waddah Attar Explosion is another indicator that implements something similar. The baseline is calculated in two different ways: one of which is making a Donchian Channel of the ACBR, and then using the basis as the baseline, while the other is applying an RMA to the cb_dif, which is the base unit that makes up the ACBR. Now, the basis of a Donchian Channel typically is the average of the highs and the lows. If we did that here we would have a baseline much too high (but maybe not...), however, I've made the divisor user adjustable. In this way you can adjust the height (or I guess you might say 'width' if it's an oscillator) however you like, thus making the indicator more or less sensitive. In the case of using the ACBR as the baseline we apply a multiplier to the values in order to adjust the height. Apologies if I'm being overly verbose. If you want to skip all of this I have tooltips in the settings for all of the inputs that I think need an explanation.
When using the indicator as an oscillator there are baselines above and below the zero line. One funny thing: if using the ACBR as calculation type for the baselines in oscillator mode, the baselines themselves will oscillate around the zero line. There is no way to fix this due to the calculation. That isn't necessarily bad (based on my eyeball test), but I probably wouldn't use it in such a way. But experiment! They could actually be a very fine entry or confirmation indicator. And while I'm on the topic of confirmation indicators, using this indicator as an oscillator naturally makes it a confirmation indicator. It just happens to have a volatility measurement baked into it. It may also be used as an exit and continuation indicator. And speaking of these things, there are optional shapes for indicating when you might want to exit or take a continuation trade. I've added alerts for these things too.
Lastly, oscillator mode is good for identifying divergences.
Above we have the indicator set to directional, or oscillator, mode. Baselines are Donchian Channels. I changed the default EMA length from 4 to 24 in this case, otherwise all the settings are default, as in the main image for the indicator (which is clearly set to non-directional). The indicator is set to requiring an advancing signal line for background and bar colors. Background color is not on by default. Candle colors, as you can see are aqua when above the top baseline (and only when the signal line is advancing, as per the settings), magenta when below the bottom baseline, and grey for anything else. The red and blue X's are exit signals. There are two types: one, when the signal line weakens and, two, when the ACBR crosses above or below the signal line. There are also arrows. These are continuation signals (ACBR crossing signal line).
Same image as above, but the baselines are set to ACBR rather than Donchian Channels.
Again, the same image, but with everything but the ACBR Baseline turned off. You can see how this might make for an excellent confirmation indicator, but for the areas of chap. Maybe run a second instance of the indicator on your chart as a volatility indicator, as you would not be using it in that way in this instance.
Here I have bar coloring turned off except for signal line crosses NOT requiring the signal line to be advancing. Background coloring is also turned on. You can see that these all line up with continuation signals, or exits for purple candles.
Same image as above but requiring the signal line to be advancing. You can see that continuation signals are not contingent upon the signal line to be advancing. I had it setup that way at first, but of course it still gave false signals, so I thought more signals (not that there are many) is better than fewer. To be sure, just because the indicator shows a continuation signal does not mean you should always take it.
Donchian Trend V1The Donchian Trend strategy is a trend-following approach that uses the Donchian Channels indicator to identify potential entry and exit points in a security. The Donchian Channels are formed by taking the highest high and the lowest low prices over a specified period and plotting them as upper and lower channels around the current price. The width of the channels indicates the level of volatility in the market.
In this strategy, the Donchian Channels are used as a trend filter to determine the direction of the market. When the price is above the upper channel, it suggests an uptrend, and when the price is below the lower channel, it indicates a downtrend. The length of the Donchian Channels is a key parameter in the strategy, as it determines the look-back period for identifying the high and low prices.
Additional Logic: To further refine the entry and exit signals, The script uses two moving averages, a fast one (MA5) and a slow one (MA45), to identify trends and generate trading signals. When the fast moving average crosses above the slow moving average, a buy signal is generated, indicating that the market is trending upwards. Conversely, when the fast moving average crosses below the slow moving average, a sell signal is generated, indicating that the market is trending downwards.
Evaluation: The script was backtested on historical price data for the pair. The backtest results showed that the script was able to generate a net profit of , with a profit factor of and a Sharpe ratio of . The script also includes metrics such as the number of winning and losing trades, the average trade, and the largest winning and losing trades.
The strategy is evaluated based on its net profit, gross profit, gross loss, max run-up, max drawdown, buy & hold return, Sharpe ratio, Sortino ratio, and profit factor. The parameters used in the backtest include a Donchian Channel length of 42, which corresponds to a weekly time with divide of 4h time frame, and a short-term MA of 5 and a long-term MA of 45 for more accurate entry and exit signals.
Disclaimer: This script is for educational and research purposes only and should not be used for trading with real money without further testing and validation. Past performance is not indicative of future results.
Draw Several Horizontal Lines [MsF]Japanese below / 日本語説明は英文の後にあります。
-------------------------
This indicator that automatically draws a horizontal line by copying from the input High/Low. Useful for doing horizon analysis. It's possible to display Fibonacci based on the entered High/Low. You can get the alert of each Fibonacci point.
- Parameter
Input Upper Value: Enter the High value
Input Lower Value: Enter the Low value
Band Range Count : Enter the number of horizontal lines
Fibonacci : visible or invisible
-------------------------
入力したHigh/Lowを起点に水平線を上下にコピーして自動で描画するインジケーターです。水平線分析を行うのに役立ちます。
また、入力したHigh/Lowを元にfibonacciを表示することも可能です。fibonacciについては、各ポイント毎にアラートの設定も可能です。
<パラメータ説明>
Input Upper Value:起点となるHighを入力してください
Input Lower Value:起点となるLowを入力してください
Band Range Count :水平線を上下にコピーする本数を入力してください
Fibonacci :フィボナッチが不要な場合はfalseにしてください
Weighted Deviation Bands [Loxx]What are Weighted Deviation Bands?
Variation of the Bollinger bands but it uses linear weighted average and weighted deviation via Mladen Rakic.
What is Weighted Deviation?
This weighted deviation is a sort of all linear weighted deviation. It uses linear weighting in all the steps calculated (which makes it different from the built in deviation in a case when linear weighted ma is used in the ma method). It is more responsive than the standard deviation
Included
Bar coloring
[Uhokang] Bollinger Band BB EMA SMMA SMA Multy timeframeYou can view indicators from the specified upper timeframe together.
( Bollinger Bands, SMMA, EMA, SMA )
If it is based on a 1-hour bar, you can see indicators for 4-hour bars and 1-day bars at the same time.
=> =>
Minutes
1 => 5 => 30
2 => 10 => 60
3 => 15 => 90
4 => 20 => 120
5 => 30 => 120
6 => 30 => 120
10 => 60 => 240
15 => 60 => 240
30 => 120 => 480
45 => 180 => 450
over Hours
1 => 4 => D
2 => 8 => 2D
3 => 12 => 3D
4 => D => W
D => W => M
W => M => Y
Strongest Supports And ResistancesDraws the best support and resistance lines. How it works:
1) Tries every possible line through lows, highs, opens, closes
2) Finds the total hit counts given the confidence interval as input to the candlesticks
3) Calculates the strength of every line according to hit count, total volumes on hits, and timestamps
4) Eliminates similar lines, confidence interval is set as input
5) Selects the strongest 20(changable as an input) lines and draws them on the graph.
Makes your work way easier!!!
Feel free to adjust the parameters for your own style!
Cheers!!
DR IDR Trading Areas [CHE]Inspired by the indicator DR/IDR V1 from TheMas7er www.tradingview.com I programmed this variant myself. I have observed that the trading times RDR (Regular Daytime), ADR (Afternoon Daytime) and ODR (Overnight Daytime) can be reasonably averaged. This average then serves as a support and resistance line in the subsequent Lines Time. If the Close value falls below this average, the background in this indicator is colored red and if the Close value rises above this average, the background in this indicator is colored green.
This Pine script is an indicator for trading areas that allows the user to define different trading periods for a symbol based on specific times. It plots three lines on the chart representing the average price movements during each of the defined trading periods, RDR (Regular Daytime), ADR (Afternoon Daytime), and ODR (Overnight Daytime). The script also shades the chart to highlight when the current price is above or below each of the three lines, and it draws dotted lines and labels to mark the start of each trading period. The indicator
is customizable, allowing the user to adjust the time periods and the UTC timezone offset.
For more information on TheMas7er Trading Strategy's DR/IDR V1, please refer to the original indicator.
Best regards
Chervolino
QQQ Fair Value BandsThis is similar to the SPX Fair Value Bands indicator, but for QQQ.
It is based on the Net Liquidity model:
Net Liquidity = FED - RRP - TGA
Bollinger Band Alert with RSI Filter IndicatorThis code is for a technical analysis indicator called Bollinger Band Alert with RSI Filter. It uses two tools: Bollinger Bands and Relative Strength Index (RSI) to identify potential trading signals in the market.
Bollinger Bands are lines plotted two standard deviations away from a simple moving average of the price of a stock or asset. They help traders determine whether prices are high or low on a relative basis.
The RSI is a momentum indicator that measures the strength of recent price changes to evaluate whether an asset is overbought or oversold.
The code has some input parameters that a user can change, such as length and multiplier, which are used to calculate the Bollinger Bands, and upper and lower RSI levels to define the overbought and oversold zones.
The code then uses if statements to generate alerts if certain conditions are met. The alert condition is triggered if the close price of an asset crosses above or below the upper or lower Bollinger Bands, and if the RSI is either above or below the overbought or oversold threshold levels.
Finally, the code generates plots to visualize the Bollinger Bands and displays triangles above or below the bars indicating when to enter a long or short position based on the strategy's criteria.
NIFTY 50 5mint StrategyThis is an intraday strategy for NIFTY50 Based First candle High and Low breakout.
The strategy takes user inputs for the start and end dates, start and end months, and start and end years, which define the time range to trade. The user can also specify the maximum number of trades to take during the time range and the length of the Exponential Moving Average ( EMA ) used in the strategy
In this strategy, the First candle's high and low are calculated and used as entry and exit points for trades. If the close price breaks above the First candle's high, a buy signal is generated. Conversely, if the close price breaks below the First candle's low, a sell signal is generated.
The strategy uses the Exponential Moving Average ( EMA ) as a filter to close entered positions either long or short, EMA also acts Target. If the close price falls below the EMA, a long position is closed, and if the close price rises above the EMA, a short position is closed or the PreviousCandleClose is above the First candle's high a short position is closed, When the PreviousCandleClose is below the First candle's low a long position is closed, First candle's high act as Stoploss
The strategy limits the number of trades taken within the specified time range, and if the time range is exceeded, all positions are closed.
Finally, the strategy plots the First candle's high and low, EMAs on the chart for visual reference.
Default settings work best with the 5mint candle, you may tweak settings according to your needs.
backtesting helps in interpreting how the trading strategy would have behaved in the past, and forward testing (paper trading) informs the traders how it would perform now.
[blackcat] L3 Aroon ZoneLevel 3
Background
The Aroon indicator developed by Tushar Chanand indicates whether there is a trend price or is located in a trading area.
Function
Classical Aroon can also show the beginning of a new trend, its strength and expectation of changes from trade areas to trends. However, it produces too much noise when is bull or bear during sideways. In this improved version, I use bars without "blur cross" to classify bull, bear and sideways, which could look better to know the status of current market.
Since Chinese uses red for bull, green for bear, while others use green for bull and red for bear, i try to avoid to use red or green, which may be confusing. I use my style of color for bull and bear:
Yellow --> Bull
Fuchsia --> Bear
Gray --> Sideways
Remarks
Feedbacks are appreciated.
Rekt Edge Reversion BandRekt Edge Reversion band is a technical indicator that utilizes a combination of moving averages and standard deviations to determine optimal entry and exit points in the market. By comparing the current price to its moving average, the indicator identifies potential trends and determines how you can position around them by plotting buy/sell signals and two channels based on user input parameters. The user can choose between Simple Moving Average ( SMA ) or Exponential Moving Average ( EMA ) and select the moving average period, the unit of separation, the multiples of the unit, and other important parameters. The indicator's inputs can be adjusted to suit different trading styles, and it can be used on any time frame. The indicator can be used to identify potential trend reversals or breakouts (or breakdowns) when the price moves outside of the channels. The indicators potential use cases include identifying overbought or oversold conditions. With its ability to provide a clear signal on when to enter and exit a trade, this indicator is a popular tool among traders looking to make more informed and profitable trading decisions. This indicator can also be used in conjunction with other technical analysis tools to confirm or invalidate trading signals.
Smart QQE ModSmart QQE - Chart Overlay
Smart QQE shows QQE Trend and RSI plot on chart to determine the trend direction and eliminate false signals.
QQE is obtained from original code by Glaz and rescaled to fit on chart. RSI 50 level acts as Zero which is plotted as a Bollinger on chart.
This is not a Bollinger band . its an RSI channel with levels 0-100 plotted around the mid band. The RSI Mid Band is calculated based on RSI value.
Trend:
Price above RSI Mid band is uptrend
Price below RSI Mid band is Down Trend
The Green line - Discount Zone - 0-RSI level - Oversold Zone
The Red Line - Premium Zone - 100 - RSI level - Overbought Zone
Buy / Sell signals
QQE Buy and Sell signals are plotted based on crossovers of RSI and Fast RSI crossovers.
QQE trend is colored based on the crossover.
Candle color:
candle color determines the Original QQE Trend.
Blue - QQE line above Threshold level in Buy Zone
Pink - QQE line below Threshold level in Sell Zone
Entries are to be made with proper confirmation.
HULL MA is provided as a MA Ribbon for additional confirmation. This MA can be changed to various forms Like EMA , SMA , WMA , HMA , RMA the open and close of the MA are plotted so it determines the exact Trend reversal of the price.
Credits to @Glaz QQE Threshold
Bollinger Band BreakoutThis strategy buys when price crosses above an upper Bollinger Band and sells when the lower band is breached. What makes this strategy different than others:
Long only with filtering for only showing strong tickers
Filter out trades below a moving average on both the current timeframe and a longer period timeframe to keep you out of bear markets
Optional ability to set a tighter initial stop level to increase exposure and decrease downside risk on freshly opened trades while you wait for the lower Bollinger Band trailing stop to catch up
Take entries/exits on wicks/stops or wait for candle closes before entry
Select which dates to backtest
Customize Bollinger Band parameters including the ability to have different values for the upper and lower band standard deviation
Weighted Bollinger Band (+ Logarithmic)ENG)
Weighted BB is more responsive to price changes than original Bollinger Bands.
the calculation formula uses a weighted method based on the current price.
Instead of using a standard deviation, I used a weighted standard deviation that weights the current price, and instead of a simple moving average, I used a weighted moving average.
Also included is a formula to log the Bollinger Bands for users who view charts on a logarithmic scale.
KOR)
원본 볼밴보다 가격변화에 대한 반응성이 높습니다.
계산식에는 현재가격에 가중을 주는 방식을 사용하였습니다.
표준편차를 사용하는 대신 저는 현재가격에 가중을 두는 가중표준편차를 사용하였고, 단순이동평균 대신 가중이동평균을 사용하였습니다.
또한 로그스케일로 차트를 보는 유저를 위해 볼린저밴드를 log화 하는 수식도 포함하였습니다.
TCG AI ToolsIntroduction:
This script is a result of an AI recommended created trading strategy that is design to offer new traders’ easy access to trend information and oversold/overbought conditions. Here we have combined commonly used indicators into a single unique visualization that quickly identifies trend changes and both RSI and Bollinger Band based overbought and oversold conditions, and allows all three indicators to be used simultaneously while taking up limited space on the chart.
The value in combining these three indicators is found in the harmony and clarity they are able to provide new traders. Trend changes can be difficult to identify based solely on candlestick analysis, therefore using the moving averages allows the trader to simplify the process of establishing bullish or bearish trends. Once a trend is established it can be very attractive for new traders to establish entries at the wrong time. For this reason, it is useful to include two different overbought and oversold indicators. The Bollinger Bands are included as one of the methods for establishing extreme prices that often result in reversals, and the relative strength index is similarly utilized as a second means to warn traders of extreme conditions.
Using the Indicator
1. MA10 MA20 Trend Indicator
The large red/green horizontal bar located at the 0 line on the X axis is the trend direction indicator. This visualization compares the 10 and 20 period moving averages to establish trend. When the MA10 is above the MA20 the trend is considered bullish and supportive of long positions and indicates such by changing the color of the horizontal bar to green. When the MA10 is below MA20 the trend is considered bearish and indicates such by changing the color of the horizontal bar to red. Color changes occur at the moment of a MA crossover/under.
2. Relative Strength Index.
The vertical red and green bars that make up the background of the panel indicate conditions wherein the RSI is considered overbought or oversold. When the vertical bar is red it indicates that RSI is below 30 suggesting that current conditions are oversold and supportive of long entries. When the vertical bar is green it suggests that the current conditions are overbought and are supportive of short entries.
3. Bollinger Band Extremes
Within the horizontal red/green bar there are red and green arrows. These arrows represent periods where the price is exceeding the upper or lower Bollinger bands and indicate overbought/oversold conditions. When a green arrow appears, it indicates that the price has crossed below the lower BB and is supportive of long entries. If a red arrow appears it indicates that the price has crossed above the upper Bollinger band and conditions are supportive of short entries.