3Commas Bollinger StrategyThis strategy is intended for use as a way of backtesting various parameters available on 3commas.io composite bot using a bollinger band type trading strategy. While it's primary intention is to provide users a way of backtesting bot parameters, it can also be used to trigger a deal start by either using the {{strategy.open.alert_message}} field in your alert and providing the bot details in the configuration screen for the strategy or by including the usual deal start message provided by 3commas. You can find more information about how to do this from help.3commas.io
The primary inputs for the strategy are:
// USER INPUTS
Short MA Window - The length of the Short moving average
Long MA Window - The length of the Long moving average
Upper Band Offset - The offset to use for the upper bollinger offset
Lower Band Offset - The offset to use for the lower bollinger offset
Long Stop Loss % - The stop loss percentage to test
Long Take Profit % - The Take profit percentage to test
Initial SO Deviation % - The price deviation percentage required to place to first safety order
Safety Order Vol Step % - The volume scale to test
3Commas Bot ID - (self explanatory)
Bot Email Token - Found in the deal start message for your bot (see link in previous section for details)
3Commas Bot Trading Pair - The pair to include for composite bot start deals (should match format of 3commas, not TradingView IE. USDT_BTC not BTCUSDT)
Start Date, Month, Year and End Date, Month and Year all apply to the backtesting window. By default it will use as much data as it can given the current period select (there is less historical data available for periods below 1H) back as far as 2016 (there appears to be no historical data on Trading view much before this). If you would like to test a different period of time, just change these values accordingly.
Known Issues
Currently there are a couple of issues with this strategy that you should be aware of. I may fix them at some point in the future but they don't really bug me so this is more for informational purposes than a promise that they may one day be fixed.
Does not test trailing take profit
Number of safety orders and Safety Order Step Scale are currently not user configurable (must edit source code)
Using the user configuration to generate deal start message assumes you are triggering a composite bot, not a simple bot.
Ikat Bollinger / Bollinger Bands (BB)
(FireflyTA) BB Pressure HeatmapThis is a simple heatmap based on multi-timeframe Bollinger Bands to find range support & resistance . It makes dynamic confluence zones visible and can be used to add evidence to a thesis or as a basis for a custom range S&R trading strategy.
Colors are optimized for a dark chart layout.
There are currently 3 presets ( LTF , MTF, HTF) available in case you don't know how to customize the BB settings.
You need to add two of these to show support AND resistance at the same time.
Enjoy!
Bollinger Bands + RSI Alerts for 3commas/DCA botHey Folks !
This is in indicator that generates buy alerts combining Bollinger Bands and RSI.
RSI validates the BB signal by confirming we are not in an oversold area.
Interval: 3m to 15m
Recommended settings for 3commas DCA bot
- TP/TTP: 0.3%/0.1%,
- Base Order: Your choice ,
- Safety Order: 1.2 * Your choice of base order
- Safety Order Volume Scale: 1.2,
- Safety Order Step Scale: 1.5,
- Price Deviation to Open Safety Order (% from initial order): 0.25%,
- Max Safety Trades Count: 7
- DO NOT USE STOP LOSS
> Create Alert with Buy Alert and link it to "Message for deal start signal"
6 Bollinger Bands (1.5 thru 4)20 period SMA Bollinger Bands with the following standard deviations: 1.5 2 2.5 3 3.5 4
[KL] BOLL + MACD Strategy v2 (published)This strategy will look for opportunities when price touches the lower Bollinger band, then enters Long when it anticipates a MACD crossover signal.
Setup: on 1-day chart interval
Exits when either (a) hitting trailing stop loss, or (b) meeting risk-to-reward, if defined by user.
BB Width + %B - All-in-One!Simple and effective script for BB-addicted!
Fully customizable. Clean chart, realtime data.
Add "BBW Multiplier " to adjust width & %D through different mkts volatility.
Default value suites actual S&P.
Enjoy!
Risk Reduction Ultimate TemplateThis is a template not actually meant for trading. I picked two random oscillators. This is a template meant to turn into a live trading strategy, however.
It's literally just a specialized take profit/stop loss system. It is to ensure your bot doesn't make any bad moves that you wouldn't have manually. The code should be pretty well annotated. Putting this into my scripts has made them much better. I will work on a Multiple Trigger template next.
Cryto WaveRyder ------ Phat Cryto WaveRyder are envelopes plotted at a standard deviation level above and below a simple moving average of the price. ... Cryto WaveRyder helps determine whether prices are high or low on a relative basis. They are used in pairs, both upper and lower bands and in conjunction with a moving averange.
I create a lot of Buy/Sell entry, therefore tranders can know where it is the best entry to take the place. Let's make some money with this indicator
Bollinger Bands Width with Compression by UJBBollinger Band width % with compression line and color changing area.
Z-Score of RSIA way to see whether RSI is overbought or oversold inside its Bollinger Bands in the form of an oscillator. Z-score tells you how far the data is from the mean in terms of standard deviations. The numbers shown in the indicator are the number of standard deviations away from the average or mean. Like Bollinger Bands, if it is above the standard deviation border lines then it is considered to be outside the distribution or Bollinger Band. If it is above the upper border line then is it is overbought, if it is below the lower border line then is is oversold.
Example of how standard deviation works: 1 standard deviation contains 68% of the data, 2 SD (the default for BB) contains 95% of data, 3 SD for 99%, etc. If the data goes past that, it is considered to be outside the distribution. In statistics, data that is within the distribution is considered to be "significant".
The z-score line is colored green if it is above zero and red if it is below zero. Above zero means that the RSI is above the average line or the middle line of the Bollinger Bands, and vice-versa if it is below. A red vertical bar is shown when the the z-score is above the upper border line to show that it is overbought and a green vertical bar is shown when the z-score is below the lower border line to show that it is oversold. This is the equivalent of when the RSI is above and below its Bollinger Bands.
Flawless Victory Strategy - 15min BTC Machine Learning StrategyHello everyone, I am a heavy Python programmer bringing machine learning to TradingView. This 15 minute Bitcoin Long strategy was created using a machine learning library and 1 year of historical data in Python. Every parameter is hyper optimized to bring you the most profitable buy and sell signals for Bitcoin on the 15min chart. The historical Bitcoin data was gathered from Binance API, in case you want to know the best exchange to use this long strategy. It is a simple Bollinger Band and RSI strategy with two versions included in the tradingview settings. The first version has a Sharpe Ratio of 7.5 which is amazing, and the second version includes the best stop loss and take profit positions with a Sharpe Ratio of 2.5 . Let me talk a little bit more about how the strategy works. The buy signal is triggered when close price is less than lower Bollinger Band at Std Dev 1, and the RSI is greater than a certain value. The sell signal is triggered when close price is greater than upper Bollinger Band at Std Dev 1, and the RSI is greater than a certain value. What makes this strategy interesting is the parameters the Machine Learning library found when backtesting for the best Sharpe Ratio. I left my computer on for about 28 hours to fully backtest 5000 EPOCHS and get the results. I was able to create a great strategy that might be one of TradingView's best strategies out on the website today. I will continue to apply machine learning to all my strategies from here on forward. Please Let me know if you have any questions or certain strategies you would like me to hyper optimize for you. I'm always willing to create profitable strategies!
P.S. You can always pyramid this strategy for more gains! I just don't add pyramiding when creating my strategies because I want to show you the true win/loss ratio based buying one time and one selling one time. I feel like when creating a strategy that includes pyramiding right off the bat falsifies the win rate. This is my way of being transparent with you all. Have fun trading!
Bollinger bubble | Forex editionBollinger bubble is an edition for forex market. Work better en JPY pairs.
We buy when a candle open & close outside the lower bollingers band and we target the last highest point on the last 10 candles.
And we sell when a candle open & close outside the higher bollingers band we the target the last lowest point on the last 10 candles.
Bollinger bubble | Stock EditionBollinger bubble is an edition for market like CAC40, DJ30, ..
The market are uptrend with the inflation, this edition only buy (you have less risk then sell)
We buy when a candle open & close outside the lower bollingers band and we target the last highest point on the last 10 candles.
atr_channelThe original bollinger bands have a fixed deviation of 2%, this channel calculates the ATR % (Atr Percentage) and places the upper and lower bands
Bollinger Band with RSI
Using combination bollinger band and RSI indicator as guide to predict price volatility and the best entry point. The strategy logic is pretty straightforward where we're interested with close price that touches the lower bollinger band ; there are only two scenarios that will happened after the price reaches the lower band; the price might rebound from the lower bollinger band or drop lower and continue downtrend. To confirm the price movement, we use a second indicator which is the RSI to further investigate the price trend. For example, if the price reaches the lower bollinger band but the RSI value is not in the oversold region, we can conclude that the price will go lower and continue downtrend. If the RSI value is in the oversold region, we can use this price area as our entry point.
Stop loss is necessary to avoid losing too much capital if the RSI value lingers too long in the oversold region.
Best take profit area is when the price rebound above the middle bollinger band area/upper bollinger band or when the RSI reaches overbought region; whichever comes first.
Long entry:
RSI < 30 & close price < lower bollinger band
Exit entry:
RSI > 70
Default stop loss: -25%
Cosmic Bands4 Bollinger Band channels with StdDev mult values of 1, 2, 4, and 4.5 (the last value can be changed in the indicator's settings).
Often shows better correlation with the log setting on.
Double BB + Multi Ema Supports 2.0 // by Mochero Use this indicator to identify the market trend, possible dynamic support or resistance, and possible reversals or corrections.
Take the moving averages (50,75,100,200) as a reference to identify whether the market is bullish or bearish.
Use the Parabolic Sar, to identify minor trends.
Take as reference the Moving Averages (5,9,15,25) as possible support or dynamic resistance.
You can also use a DEMA 9.
This indicator marks past Supports and Resistances to have a reference and mark reversal zones.
Take the BB as a reference, to identify possible setbacks or trend changes.
Added a third BB (optional).
-Added 3 types of signals, with RSI, Stoch, DMI. They indicate possible reversals or changes in trends.
Suggested values
-RSI 4
-Stoch 1 (5,1,1)
-Stoch 2 (14,1,1)
-DMI (10, 3)
Squeeze Momentum Indicator v4_pine [By Lazy Bear]This is the famous Squeeze Momentum Indicator made by @LazyBear in v4 version if someone wants to test some strategies, as the original code was in v2 version the code converter couldn't convert to v4.
Bollinger Bands With Squeeze [Nic]Bollinger bands with color indicators to detect two key scenarios :
- The squeeze (yellow) detects a potential breakout (or down) in price volatility.
- The extreme overbought / over sold conditions. This happens during a 'band ride'.
"There is nothing more beautiful than when a stock becomes overbought, and stays overbought" - John Bollinger
Multi Band Channel - Oversold/Overbought OscillatorIf your trading strategy is to sell the RIPs and buy the DIPs, this is an indicator for you.
This is based on the multi band indicator present here:
Code is simplified to generate as many bands as possible and hence divide price into as many states as possible based on these bands. Moving Average Type defines what moving average to be considered for Bollinger Band/Keltner Channel. This is based on
Once we derive price state based on multi bollinger band/keltner channel levels, we then look for highest and lowest levels in LoopbackPeriod .
Overbought level = Highest Level - Offset
Oversold level = Lowest Level + Offset
Blue line indicates current state.
MACD Price Projected Bands [MPPB] Strategy for NIFTY / BTC 2 minMACD Price Projected Bands is an intraday NON REPAINTING Strategy to be used over BTCUSD and NIFTY on 2mins charts for optimum results!!
How the Strategy works
The strategy uses MACD with standard configuration as its main component.
The adaptive Bands are calculated over the MACD lookback, and MACD crosses of the adaptive bands are projected over the Price for creating a decision logic
A cyclic Trend Filter is used to calculate the Optimum Entry and Exit Points for the Strategy,
Levels are also plotted over the price projected bands for better visualisation of the targets!
What is used !
Macd_config : { fast:12 , slow:26 , signal:9 }
Lookback Length : 55
The Strategy has Provision for Alerts
You get Two signals
1. MPPBS Buy Signal
2. MPPBS Sell Signal
How the Visual Target System Works and How to trade Using this Strategy
An Adaptive Projected Band is constructed using MACD for traders to get Visual inputs regarding targets!!
The Trading Methodologies are in below Charts
For Short Trades
For Long Trades
Strategy Configurations for Backtest
For Englishmen!
The Backtesting Rules in the Strategy calculates only when order gets filled, the basic pyramiding in the strategy is set to 1, i.e The maximum number of entries allowed in the same direction is set to 1,
Also we trade only 1 quantity of the security with initial capital of 100000USD, and The commission type used in the strategy is set to 0.05 USD that means we pay 0.05USD as commissions in every trade!
For Coders!
{
calc_on_order_fills=true,
pyramiding=1,
default_qty_type=strategy.fixed,
default_qty_value=1,
initial_capital=100000,
currency=currency.USD,
commission_type= strategy.commission.cash_per_order,
commission_value = 0.05
}
How can you get access
Only do private message to me, donot use comment box for requesting access!
Bollinger Bands - Custom moving averageFormula for bollinger bands is as below:
Mid = sma(20)
Top = sma(20) + 2*StdDev(20)
Bottom = sma(20) - 2*StdDev(20)
While standard bollinger bands allow changing standard deviation and length, there is no option to use different moving average.
This indicator allows you to define bollinger bands based on different moving average types which can be selected from input.