Hi there,
I am new to pro real time and new to the forum. Maybe someone can help me.
How can I invest a sum in the code that
a) corresponds to the proceeds of the last trades
corresponds b) x% of the current value of the portfolio
c) x% corresponds to the current freely available credit?
Gerson
a) There are many examples and/or code snippets for reinvestment strategies, follow these links:
https://www.prorealcode.com/topics-tag/money-management/
https://www.prorealcode.com/topics-tag/position-size/
https://www.prorealcode.com/topics-tag/position-sizing/
b) It is not possible to get the value of the portfolio with code, same for c).