Hi
I am looking for posts/topic that can support me in coding the following money management:
- Initial position size in shares is 10 shares bought at 100 to my account size of 10000
- At close of position, the share value is 110, and sales of the 10 gives a new account size of 11000
- At next entry trigger, 11000 vill be exposed. Shares prise is now 90 and i will buy 122 (round down).
- Vise-versa, at losses.
I will appreciate any advice to a code posted that is dealing with this methodology.
Crossing fingers and hoping for any useful directions.
Thanks
Per