Open hom-bahrani opened 10 months ago
This seems like correct behavior, I dont't know the value of your account of course so I can't really explain why it's only trading one share, maybe by default you have slightly more cash than 1 share and its getting trunced to an int? I would have to see the numbers to get a better idea.
Description
I am running the basic RSI example from your documentation and observed some strange behaviour
I get a nice html plot at the end of backtesting, I noticed that the code above is using all the cash in my account
[state.interface.cash](http://state.interface.cash)
and that number is being used to determine buy size. But say I want a stake of e.g. $1000 rather than use all the cash in my account, when I change the code to calculate the buy size using the stake it has a bizarre effect on the BCO (crude oil) plot - the y axis is completely different? (I’ve attached the plots)Any idea why this might be case? everything else is the same in both cases so I would expect the BCO plot to remain the same. The same thing happens if I manually set the size e.g. to 1
state.interface.market_order(symbol, side="buy", size=1)
In this case I see the BCO plot bars are all set to 1?