TradingView
Trendoscope
Oct 31, 2020 12:38 PM

Bollinger %B Candles Strategy 

Bitcoin / United States DollarCoinbase

Description

Strategy built based on earlier published indicator:

tradingview.com/script/fb4TfwrL-Bollinger-B-Candles/

Looks to be doing good for short term swing trades. But, I am not sure if there is repainting. I tried to avoid buy/sell trades on same day - but wasn't successful.

So far back-tested on following:

COINBASE:BTCUSD - works on both long and short
CURRENCYCOM:GOLD and equities - long only.

Some of the failures: ASX:WPL, ASX:WHC, ASX:NHC

As usual for back-testing - using 1000 as initial capital with 100% invested on each trade and no compounding so that it will be easy to compare with buy and hold. Trade with caution :)

Release Notes

Update capital and percentage of capital per trade as this is not long term strategy and hence not required to compare with buy and hold

Release Notes

Added delay in buy and sell signal to avoid buy/sell on same bars.

Release Notes

Fixed error.

Release Notes

Remove calc_on_order_fills
Comments
Timbo_021
Hey mate, hope you don't mind me using your script and upgrading it to run automated bots and pine v5. Seems to be working well although its only in early testing phase. Let me know if you'd like to see it. It's my first ever script so its messy af :')
Trendoscope
@Timbo_021, No problem and please go ahead. If you are intending to republish the updates, just follow the guidelines mentioned in house rules and rules of MPL copyrights.
Timbo_021
@Trendoscope, Cheers! I have read and understand the house rules. I will republish with your name on the script also once I verify it works and fix up a few issues with the code.
douglas_bortoncello
Why does it provide buy and sell signal on the same candle?
Trendoscope
@douglas_bortoncello, Not sure if there is bit of repainting there. I tried to get rid of it. But, so far unsuccessful. Please suggest if you see something in the code which I don't :)
SNW777
@HeWhoMustNotBeNamed, Sir, would you like to update the pine script with version 5?
More