Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strategy-deployment docs improvement #35

Open
AlexTheLion123 opened this issue Jun 9, 2023 · 1 comment
Open

strategy-deployment docs improvement #35

AlexTheLion123 opened this issue Jun 9, 2023 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation priority: P1 An important issue that must be fixed before the next release, but does nto require immediate focus

Comments

@AlexTheLion123
Copy link
Contributor

AlexTheLion123 commented Jun 9, 2023

For backtest command:

# Set your API key for your shell environment
export TRADING_STRATEGY_API_KEY=...

# Run the backtest of this module using local trade-executor command
# Tick size and stop loss check frequencies are less from what the strategy
# is expected (1h -> 1d). We call decide_trades less often,
# allowing us to complete the test faster, albeit with incorrect
# results.
docker run \
    --interactive \
    --tty \
    --volume=strategies:/usr/src/trade-executor/strategies \
    --volume=cache:/usr/src/trade-executor/cache \
    ghcr.io/tradingstrategy-ai/trade-executor:$TRADE_EXECUTOR_VERSION \
    start \
    --strategy-file=strategies/pancake-eth-usd-sma.py \
    --execution-type=backtest \
    --trading-strategy-api-key=$TRADING_STRATEGY_API_KEY \
    --backtest-candle-time-frame-override=1d \
    --backtest-stop-loss-time-frame-override=1d \
    --backtest-start=2021-06-01 \
    --backtest-end=2022-09-01
  • Error: No such option: --execution-type
  • Also, default example (shown above) doesn't work AttributeError: pancakeswap_basic. Did you mean: 'pancakeswap_busd'?
  • Also, doesn't mention that the strategy python file needs to be in trade executor version being used by docker
@AlexTheLion123 AlexTheLion123 added priority: P1 An important issue that must be fixed before the next release, but does nto require immediate focus documentation Improvements or additions to documentation labels Jun 9, 2023
@miohtama
Copy link
Contributor

Still open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation priority: P1 An important issue that must be fixed before the next release, but does nto require immediate focus
Projects
None yet
Development

No branches or pull requests

2 participants