tradingstrategy-ai / docs

Trading strategy documentaiton
13 stars 9 forks source link

strategy-deployment docs improvement #35

Open AlexTheLion123 opened 1 year ago

AlexTheLion123 commented 1 year ago

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
miohtama commented 1 year ago

Still open