bullbuy

Newton theory (Bollinger Band Breakout)

Initial capital 1000 USD
Order size 10%
Commission 0.3% with slippage
Timeframe 4h
This is Simple Bollinger Band Trend find out strategy.
I'm using the usual trailing offset as an exit for this strategy.
using 1x leverage to go long short within 3years backtest result more then 200% for all usd pair.
in next version i will try to find out more optimize sma ,std,sl,tp parameter by using freqtrade hyperparameter optimization.

Happy Trading :)
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Comments

Good Job!
Reply
strategy.exit("short tsl", "short", loss = close*0.075 / syminfo.mintick, trail_points = close*0.05 / syminfo.mintick, trail_offset = close*0.005 / syminfo.mintick)

traill_points and traill_offset must be bugging.

you‘d better use this

longStop = strategy.position_avg_price -(close*0.075 / syminfo.mintick)
shortStop = strategy.position_avg_price + (close*0.075 / syminfo.mintick)
shortTake = strategy.position_avg_price -(close*0.05 / syminfo.mintick)
longTake = strategy.position_avg_price +(close*0.05 / syminfo.mintick)

if strategy.position_size > 0
strategy.exit("long tsl", "long", stop=longStop, limit=longTake)
if strategy.position_size < 0
strategy.exit("short tsl", "short", stop=shortStop, limit=shortTake)
Reply