Samples are incorrect
mtucker502 opened this issue · 3 comments
mtucker502 commented
Specifically strategy_sma_crossover.py. The PAPER trading if statements are reversed.
mtucker502 commented
Pull #112 submitted
shlomikushchi commented
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.
shlomikushchi commented