Skip to content

Is there a way to config the position size of each trade> #76

Closed
@beasthenry

Description

@beasthenry

Expected Behavior


def next(self):
        if crossover(self.ema1, self.ema12):
           self.buy(position=40%)
        elif crossover(self.ema12, self.ema1):
            self.sell(position=30%)

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions