Hello. Nice to meet you and thank you for your backtester application. I've looked into your documentation but unfortunately I still have several questions. I hope you can help me with it.
-
As I understood, when calculating "weights" I should operate by positive and negative numbers as an order of position size. Everytime in your examples you use 1 or -1, and as I understood, it means we will buy 1 contract or sell 1 contract, am I right? If I'd like to buy 10 contracts, I should mark "10"?
-
If I need to close a current open position, should I mark 0 in a "weights"?
-
How do you calculate close position price? Can I send to backtester my close price? As I understood, you just use a candle close price?
-
How do you calculate open position price? Is it an open candle price? Can I mark my open price? For example, it can be the price inside the current candle - breaking through the price level.
-
In my strategies I use a stop loss. To calculate it I need to know the balance. How can I get info about balance using your framework or how should I correctly init it? It's also needed to calculate an order position size.
Thank you for your attention.