Skip to content

Maximum simultaneous trades? #1130

@dil200

Description

@dil200

find out what is the maximum parallel trades during back testing

class rsibuy(Strategy):
    def init(self):
        
    def next(self):
        signal= self.data.RSI_Cross[-1]
        atr= self.data.ATR[-1]
        price=self.data.Close[-1]
        size=round(10/price)
        if signal:
            self.buy(size=size,tp=price+(atr_mlt* atr))

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions