Class PlTypes

java.lang.Object
com.strategyquant.tradinglib.PlTypes

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

    Fields
    Modifier and Type
    Field
    Description
    static byte
    The Constant Money.
    static byte
    The Constant Pips.
    static byte
    The Constant Pips.
    static byte
    The Constant Percent.
    static byte
    The Constant Pips.
    static byte
    The Constant Ticks.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isValid​(byte type)
    Checks if is valid.
    static String
    print​(byte plType)
    Prints the.
    static String
    printPL​(double value, byte plType)
    Prints the PL.
    static String
    typeToString​(byte type)
    Type to string.

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • PlTypes

      public PlTypes()
  • Method Details

    • print

      public static String print(byte plType)
      Prints the.
      Parameters:
      plType - the pl type
      Returns:
      the string
    • printPL

      public static String printPL(double value, byte plType)
      Prints the PL.
      Parameters:
      value - the value
      plType - the pl type
      Returns:
      the string
    • isValid

      public static boolean isValid(byte type)
      Checks if is valid.
      Parameters:
      type - the type
      Returns:
      true, if is valid
    • typeToString

      public static String typeToString(byte type)
      Type to string.
      Parameters:
      type - the type
      Returns:
      the string