This script is for a Bollinger Band type indicator with built-in TradingView strategy including as many features as I can possibly fit into a Bollinger Band type indicator including a wide variety of options to create the most flexible Bollinger Bands strategy possible.
Features: - A single custom moving average serving as the middle band.
- Standard MA inputs. - MA type. - MA period. - MA price. - MA resolution (time frame). - Visibility toggle. - MA Candle Type
- Fancy MA inputs. - Toggle to show only candles included in the MA calculation ("Highlight inclusion") or display entire MA history. - Toggle to show a ghost trail when Highlight inclusion is toggled on. Displays a shaded version of past MA history before the inclusion period (as seen on snapshot). - Toggle to show forecast values for the MA. - Other inputs related to forecasting: - Forecast bias. (Neutral forecasts MA if the current price remains the same.) - Forecast period. - Forecast magnitude. - Toggle showing details on the screen - Toggle the visibility of the fill between the upper and lower bands. - Toggle to use ATR instead of the standard deviation to calculate the location of the upper and lower bands. - Custom input for the ATR period.
Strategy Features -Strategy Window - only test during this window -Take Profit and Stop Loss -Open and Close conditions, including condition counts and any/all requirements -Many conditions to choose from that can either be selected to open, close or open and close a position -Conditions include: -Price crossing above/below the Upper, Middle, or Lower bands -Price being above/below the Upper, Middle, or Lower bands -Bollinger Band width crossing or being above/below custom values -Percent B crossing or being above/below custom values
This script may contain errors, or out of date code. Please be mindful of updates to the script.
*** DISCLAIMER: For educational and entertainment purposes only. Nothing in this content should be interpreted as financial advice or a recommendation to buy or sell any sort of security or investment including all types of crypto. DYOR, TYOB. ***
In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.