zenbot
zenbot copied to clipboard
Question about strategy
I want to build a custom strategy like below:
- It should sell when the price surges to 15% of the bought price.
- It should sell when the price drops below 5% of the bought price, i.e. stop loss.
- It should buy again if the price surges to 2% of the sold price.
- What should I do if I want to specify a range of profit? Should I enable
profit_stop_enable_pct?
The command I have written is:
zenbot sim --profit_stop_enable_pct=15 --sell_stop_pct=5 --profit_stop_pct=0 --buy_stop_pct=2 --period=1h gdax.BTC-USD
I ran it on gdax.BTC-USD selector with last 10 days data. Results are:
end balance: 1287.17451326 (28.72%)
buy hold: 1244.47925884 (24.45%)
vs. buy hold: 3.43%
9 trades over 11 days (avg 0.82 trades/day)
win/loss: 3/2
error rate: 40.00%
@carlos8f You have written sell_rate parameter in the simulation mentioned in README.md file. I couldn't find it anywhere. Is it renamed?
Closing due to inactivity.