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
I am new to the world of backtesting and python and delighted to find this useful library.
As far as I understand, if the equity is negative, the error OutOfMoneyError will be raised and the simulation will be stopped. Is it possible to bypass that?
What I am trying to do is to simulate use of fixed amount to execute the orders (referred to discussion #401) but the issues I am having are:
If I set the order amount the same as the initial cash, I may run out of cash and the simulation stops.
If I set the initial cash much larger than order amount to ensure there is sufficient cash, the return% seems to be calculated based on the initial cash value so the return will be smaller.
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
-
I am new to the world of backtesting and python and delighted to find this useful library.
As far as I understand, if the equity is negative, the error OutOfMoneyError will be raised and the simulation will be stopped. Is it possible to bypass that?
What I am trying to do is to simulate use of fixed amount to execute the orders (referred to discussion #401) but the issues I am having are:
Thanks a lot for your help in advance!
Beta Was this translation helpful? Give feedback.
All reactions