alpacahq/alpaca-backtrader-api

The Default Value for 'stocklike'

tonylegend opened this issue · 0 comments

Hi,

I wonder why the default param value for 'stocklike' is initialized in the comminfo as False. I think that is used for instruments like Futures. The calculation of the position and cash adjustment underlying are different than stocks. If 'margin' is set to None, the actual 'stocklike' value is True, then it is not necessary to declare it explicitly and a little bit confusing.

AlpacaCommInfo(mult=1.0, stocklike=False))