zenbot icon indicating copy to clipboard operation
zenbot copied to clipboard

Question about strategy

Open pushkarnagle opened this issue 9 years ago • 1 comments

I want to build a custom strategy like below:

  1. It should sell when the price surges to 15% of the bought price.
  2. It should sell when the price drops below 5% of the bought price, i.e. stop loss.
  3. It should buy again if the price surges to 2% of the sold price.
  4. 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?

pushkarnagle avatar Jul 25 '17 12:07 pushkarnagle

Closing due to inactivity.

DeviaVir avatar Sep 19 '17 10:09 DeviaVir