Closed fengkiej closed 4 years ago
Hey. This strategy is good. I have a suggestion to make it more beginner friendly:
instead of:
sma(self.candles, self.vars["slow_sma_period"], "close")
write it as:
sma(self.candles, 200)
Also instead of from jesse.indicators import sma
, write import jesse.indicators as ta
and then use it as ta.sma
. Of course you way is correct, but this way is the default import when generating strategy files, and I think beginners might get confused by it.
@saleh-mir thank you! I has been updated your suggestions
Thank you. One more thing, could you please not use should_long /should_short
inside update_position
? In this case It works just fine, but I want to keep should_long /should_short
known as the entry method only.
I've found it causing issues in certain strategies.
Sorry I didn't see it before
@saleh-mir changes updated 👍
Thank you so much
This strategy can be considered as Hello World in world of algorithmic trading, it may help new user to familiarize themselves to Jesse structure and syntax.