Offline
Hi Alex
thank you for your answer. Yes, I mean the Position class from OpenQuant.API.
What I want to do is something like this:
public class MyPosition : OpenQuant.API.Position
// inheret everything from OpenQuant.API.Position
// implement additional public properties and methods
In the strategy code, I could access then for example Position.Qty as MyPosition.Qty but also new properties which I implemented, for example, MyPosition.StopPrice.
Is that possible to do?
Regards,
Boris
Offline
Hi
I would like to enhance and customize the Position class adding new public properties and methods. However, the Position class is a static class and I cannot write a new class lets say MyPosition class which inherits from the Position class.
Is there a way to write a new static MyPosition class which has all the members of the Position class and where I can add new members?
Regards,
Boris
Offline
You have class war from conservatives too, but I think the worst class war is the war to get rid of communitys and thats left wing its Political correctness its multicultural all things of the left