Class OrderCloseTypes

java.lang.Object
com.strategyquant.tradinglib.OrderCloseTypes

public class OrderCloseTypes extends Object
The Class OrderCloseTypes.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static byte
    parseMT4​(String type)
    Parses the MT 4.
    static byte
    parseMT5​(String type)
    Parses the MT 5.
    static String
    toString​(byte closeType)
    To string.
    static boolean
    wasRealized​(byte closeType)
    Was realized.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • OrderCloseTypes

      public OrderCloseTypes()
  • Method Details

    • toString

      public static String toString(byte closeType)
      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

      public static byte parseMT4(String type)
      Parses the MT 4.
      Parameters:
      type - the type
      Returns:
      the byte
    • parseMT5

      public static byte parseMT5(String type)
      Parses the MT 5.
      Parameters:
      type - the type
      Returns:
      the byte