Class SwapMethod

java.lang.Object
com.strategyquant.tradinglib.SwapMethod
All Implemented Interfaces:
com.strategyquant.lib.settings.IXMLAble, Serializable

public class SwapMethod extends Object implements com.strategyquant.lib.settings.IXMLAble, Serializable
See Also:
Serialized Form
  • Constructor Details

    • SwapMethod

      public SwapMethod()
    • SwapMethod

      public SwapMethod(boolean use, String type, double longSwap, double shortSwap, String tripleSwapOn)
  • Method Details

    • getXML

      public org.jdom2.Element getXML()
      Specified by:
      getXML in interface com.strategyquant.lib.settings.IXMLAble
    • setFromXML

      public void setFromXML(org.jdom2.Element element) throws Exception
      Specified by:
      setFromXML in interface com.strategyquant.lib.settings.IXMLAble
      Throws:
      Exception
    • isUsed

      public boolean isUsed()
    • getType

      public String getType()
    • getLongSwap

      public double getLongSwap()
    • getShortSwap

      public double getShortSwap()
    • getTripleSwapOn

      public String getTripleSwapOn()
    • clone

      public SwapMethod clone()
    • getTypeSymbol

      public String getTypeSymbol()
    • printFormatedName

      public String printFormatedName()