alpacahq/alpaca-backtrader-api

Samples are incorrect

mtucker502 opened this issue · 3 comments

Specifically strategy_sma_crossover.py. The PAPER trading if statements are reversed.

Pull #112 submitted

Hi,
thanks for your input.
the sample code is not wrong. the names might be confusing.
ALPACA_PAPER doesn't mean paper or live trading. it means backtest or forward execution.
the PAPER/LIVE trading is determined by the API keys you provide.
I will modify the name of the variable to IS_BACKTEST to make it more clear.