TradingView
bullbuy
22 Jun 2021 pukul 18.38

Newton theory (Bollinger Band Breakout) 

Bitcoin / TetherUS PERPETUAL CONTRACTBinance

Deskripsi

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 :)
Komentar
RamboGanee
strategy.exit repaint
PineScrib
@RamboGanee, agreed
liuqiba
Good Job!
liuqiba
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)
revolvetradetw
@liuqiba, hi! could you show me what the full script looks like with these changes? I will be very grateful to you, please
Lebih lanjut