Profile Picture

Enhancement to PositionType

Posted By Omega1 5 Years Ago
Message
Posted Saturday February 18 2012
Hi,

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?

Regards,
Dave

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;

Thanks,
Daniel


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems