# 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
For backtest command:
Error: No such option: --execution-type
AttributeError: pancakeswap_basic. Did you mean: 'pancakeswap_busd'?