jesse-ai / example-strategies

Example trading strategies to get you started with Jesse
https://jesse.trade/
MIT License
161 stars 61 forks source link

add RSI2 strategy #3

Closed fengkiej closed 4 years ago

saleh-old commented 4 years ago

prepare() gets executed on every candle. in your case what you need is the __init__() method: https://docs.jesse-ai.com/docs/strategies/entering-and-exiting.html#init

fengkiej commented 4 years ago

@saleh-mir it is updated, please check again

saleh-old commented 4 years ago

One more thing. Because of the negative balance exception, you now need to pass fee_rate in your position sizing. Read example #2:

https://forum.jesse-ai.com/d/102-v082-is-released-possible-breaking-change-is-included

fengkiej commented 4 years ago

added fee_rate params for SMACrossover too

saleh-old commented 4 years ago

Awesome job