Profile Picture

Enhancement to PositionType

Posted By Omega1 6 Years Ago
Posted Saturday February 18 2012

Currently PositionType can be set to Long or Short. I like to maintain a PositionSettings object ready for order submission and would like to set PositionType in my code so that the system logic can set whether it is allowed to go long, short or flat.

So can you please extend it so it can also be set to None please?


Posted Monday May 21 2012
This should be in the next build.

You could also use a Nullable PositionType value, which would let you set the value to null. In C# you do this by putting a question mark after the type name, ie:

PositionType? _direction = null;


Similar Topics

Reading This Topic

2005-2018 © RightEdge Systems