Skip to content

Generating new strategy file ​

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

new-strategy-menu-button

Then, give it a name. For example:

new-strategy-form

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

py
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):
        pass

    def go_short(self):
        pass

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!