You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am a newbie to the backtest. So, could you please give the link to the materials that describes the backtest formulas you implemented? I really appreciate that.
My main question, I see the requirement for the param size of the function Strategy.buy: size must be a positive fraction of equity, or a positive whole number of units. Why cannot we input the size as a positive real number, such as 4.5, 7.2, ...? I also see that size is later forced to be an integer size = copysign(int((self.margin_available * self._leverage * abs(size)) // adjusted_price), size).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am a newbie to the backtest. So, could you please give the link to the materials that describes the backtest formulas you implemented? I really appreciate that.
My main question, I see the requirement for the param
size
of the functionStrategy.buy
:size must be a positive fraction of equity, or a positive whole number of units
. Why cannot we input the size as a positive real number, such as 4.5, 7.2, ...? I also see thatsize
is later forced to be an integersize = copysign(int((self.margin_available * self._leverage * abs(size)) // adjusted_price), size)
.Beta Was this translation helpful? Give feedback.
All reactions