Skip to content

How to use backtesting.py for forex trading #10

Closed
@sylver

Description

@sylver

Expected Behavior

Having an example in the documentation on how use this library for Forex trading with lot size, position size, leverage, margin call, multiple positions opening, etc

Actual Behavior

I can't figure out how/if this is possible with this library even if you mention forex and have a sample set of EURUSD.

The methods buy and sell of Strategy mention that they "close any current position and use all available funds" which seems a bit extreme and inflexible when money management recommends to use only 1% of your account on each trade.
Maybe I didn't understand what you mean here but I don't see the point to use all or none of the account and not give a strategy a way to set the account's amount/percent we want per trade and to open several trades on the same pair, moreover for Forex with lots.

If not already coded, would love to help improve that.

Disclaimer: I'm new to trading and forex trading, maybe there's something I didn't understand on this part.

Awesome library btw

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions