Specifies the action to take when a position is overfilled.

Namespace: RightEdge.Common
Assembly: Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)

Syntax

C#
public PositionAction PositionOverfilledAction { get; set; }
Visual Basic
Public Property PositionOverfilledAction As PositionAction
	Get
	Set
Visual C++
public:
property PositionAction PositionOverfilledAction {
	PositionAction get ();
	void set (PositionAction value);
}
F#
member PositionOverfilledAction : PositionAction with get, set

Property Value

Type: PositionAction

Remarks

A position is considered overfilled when an order is filled which would result in the position reversing direction, or when an order is filled on a closed position. If this occurs, it is probably the result of an exceptional situation or an error in your system. This property lets you control what happens when a position overfill does occur. The position manager can throw an exception, stopping system execution, report an error or warning to the output pane, place a market order to close the position, or do nothing at all. The PositionOverfilled event can also be used to add custom logic.

See Also