Order size 10%
Commission 0.3% with slippage
This is Simple 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 ,std,sl,tp parameter by using freqtrade hyperparameter optimization.
Happy Trading :)
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.
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)