Skip to content

Generating new strategy file

To get started, go the menu, and click on the "New Strategy" button:


Then, give it a name. For example:


This will generate AwesomeStrategy class located at jesse/strategies/AwesomeStrategy/ including all the methods that are required to run the strategy:

from jesse.strategies import Strategy
from jesse import utils
import jesse.indicators as ta

class AwesomeStrategy(Strategy):
    def should_long(self):
        return False

    def should_short(self):
        return False

    def should_cancel_entry(self):
        return False

    def go_long(self):

    def go_short(self):

We do NOT guarantee profitable trading results in anyways. USE THE SOFTWARE AT YOUR OWN RISK. THE AUTHORS AND ALL AFFILIATES ASSUME NO RESPONSIBILITY FOR YOUR TRADING RESULTS. Do not risk money which you are afraid to lose. There might be bugs in the code - this software DOES NOT come with ANY warranty. All investments carry risk! Past performance is no guarantee of future results! Be aware of overfitting!