Package com.strategyquant.tradinglib
Class OrderCloseTypes
java.lang.Object
com.strategyquant.tradinglib.OrderCloseTypes
The Class OrderCloseTypes.
-
Field Summary
Modifier and TypeFieldDescriptionstatic byte
The Constant Commission.static byte
The Constant Deleted.static byte
The Constant Delisted.static byte
The Constant EndTest.static byte
The Constant EOD.static byte
The Constant EOD_NEXT_OPEN.static byte
The Constant EOD_TIME.static byte
The Constant EOF.static byte
The Constant EOF_TIME.static byte
The Constant EOR.static byte
The Constant ExitAfterXBars.static byte
The Constant ExitSignal.static byte
The Constant Expired.static byte
The Constant Manual.static byte
The Constant MoveSL2BE.static byte
The Constant NETTING_CONTROL_ORDER.static byte
The Constant OCA.static byte
The Constant PT.static byte
The Constant Replaced.static byte
The Constant Reversed.static byte
The Constant SL.static byte
The Constant TrailingStop. -
Constructor Summary
-
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
-