RicardoSantos

[RS]Bollinger Bands Breakout Candles V0

1911 11 339
EXPERIMENTAL: a experiment using bollingers and directional momentum, Breakout detector.
Remove from Favorite Scripts Add to Favorite Scripts
study(title="[RS]Bollinger Bands Breakout Candles V0", shorttitle="[RS]BBBc.V0", overlay=true)
length = input(8)
src = input(hl2)
deviations = input(2)
ma = sma(src, length)
oma = ma > ma[1] ? valuewhen(ma < ma[1], ma[1], 0) : ma < ma[1] ? valuewhen(ma > ma[1], ma[1], 0) : nz(oma[1])
upper = oma + stdev(src, length) * deviations
lower = oma - stdev(src, length) * deviations

plotcandle(oma, upper, lower, ma, color=ma>=upper?#9ce0b2:ma<=lower?#e0b29c:ma>=ma[1]?green:maroon)
Richardo - this might be your best yet. Do you like any of your other indicators combined with this one? Thanks for all you are sharing with us.
+1 Reply
RicardoSantos PRO Alphaoptions
didnt have time yet to play with it much, so atm it looks as closed system, let me know if you find nice combos :D
+1 Reply
Looks very good.
Try pairing it with my range expansion bar signals and you have a straight winner.
Now, an auto strategy with these would be interesting, but would need extra specific variables.

snapshot
+1 Reply
IvanLabrie PRO IvanLabrie
snapshot
+3 Reply
Ricardo this is interesting. I'll take a look further
Reply
Looks interesting will investigate further
Reply
Have you found this indicator to be effective on any particular timescale?
Reply
Nice work, Always great when Someone completes your planned indicator. I will see, how it compares to my version, if needed I will post.
Reply
currently busy with work stuff, so cant do much testing, thx for comments
Reply
very interesting work and concept. qq, did this indicator come from a body of work or previous analyst?
if so, i'd love to further read about it.
Reply
Hi Ricardo. Do you know how to convert your code to amibroker (AFL) code?
Reply
United States
United Kingdom
India
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
日本
한국
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Account and Billing Sign Out