Package com.strategyquant.tradinglib
Class OrderCloseTypes
java.lang.Object
com.strategyquant.tradinglib.OrderCloseTypes
The Class OrderCloseTypes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic byteThe Constant Commission.static byteThe Constant Deleted.static byteThe Constant Delisted.static byteThe Constant EndTest.static byteThe Constant EOD.static byteThe Constant EOD_NEXT_OPEN.static byteThe Constant EOD_TIME.static byteThe Constant EOF.static byteThe Constant EOF_TIME.static byteThe Constant EOR.static byteThe Constant ExitAfterXBars.static byteThe Constant ExitSignal.static byteThe Constant Expired.static byteThe Constant Manual.static byteThe Constant MoveSL2BE.static byteThe Constant NETTING_CONTROL_ORDER.static byteThe Constant OCA.static byteThe Constant PT.static byteThe Constant Replaced.static byteThe Constant Reversed.static byteThe Constant SL.static byteThe Constant TrailingStop. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
Manual
public static final byte ManualThe Constant Manual.- See Also:
- Constant Field Values
-
SL
public static final byte SLThe Constant SL.- See Also:
- Constant Field Values
-
PT
public static final byte PTThe Constant PT.- See Also:
- Constant Field Values
-
EndTest
public static final byte EndTestThe Constant EndTest.- See Also:
- Constant Field Values
-
EOD
public static final byte EODThe Constant EOD.- See Also:
- Constant Field Values
-
Expired
public static final byte ExpiredThe Constant Expired.- See Also:
- Constant Field Values
-
Reversed
public static final byte ReversedThe Constant Reversed.- See Also:
- Constant Field Values
-
Deleted
public static final byte DeletedThe Constant Deleted.- See Also:
- Constant Field Values
-
Replaced
public static final byte ReplacedThe Constant Replaced.- See Also:
- Constant Field Values
-
OCA
public static final byte OCAThe Constant OCA.- See Also:
- Constant Field Values
-
Commission
public static final byte CommissionThe Constant Commission.- See Also:
- Constant Field Values
-
EOD_TIME
public static final byte EOD_TIMEThe Constant EOD_TIME.- See Also:
- Constant Field Values
-
EOF
public static final byte EOFThe Constant EOF.- See Also:
- Constant Field Values
-
EOF_TIME
public static final byte EOF_TIMEThe Constant EOF_TIME.- See Also:
- Constant Field Values
-
EOR
public static final byte EORThe Constant EOR.- See Also:
- Constant Field Values
-
NETTING_CONTROL_ORDER
public static final byte NETTING_CONTROL_ORDERThe Constant NETTING_CONTROL_ORDER.- See Also:
- Constant Field Values
-
ExitAfterXBars
public static final byte ExitAfterXBarsThe Constant ExitAfterXBars.- See Also:
- Constant Field Values
-
MoveSL2BE
public static final byte MoveSL2BEThe Constant MoveSL2BE.- See Also:
- Constant Field Values
-
TrailingStop
public static final byte TrailingStopThe Constant TrailingStop.- See Also:
- Constant Field Values
-
ExitSignal
public static final byte ExitSignalThe Constant ExitSignal.- See Also:
- Constant Field Values
-
EOD_NEXT_OPEN
public static final byte EOD_NEXT_OPENThe Constant EOD_NEXT_OPEN.- See Also:
- Constant Field Values
-
Delisted
public static final byte DelistedThe Constant Delisted.- See Also:
- Constant Field Values
-
-
Constructor Details
-
OrderCloseTypes
public OrderCloseTypes()
-
-
Method Details
-
toString
To string.- Parameters:
closeType- the close type- Returns:
- the string
-
wasRealized
public static boolean wasRealized(byte closeType)Was realized.- Parameters:
closeType- the close type- Returns:
- true, if successful
-
parseMT4
Parses the MT 4.- Parameters:
type- the type- Returns:
- the byte
-
parseMT5
Parses the MT 5.- Parameters:
type- the type- Returns:
- the byte
-