Class OverviewTemplate

java.lang.Object
com.strategyquant.tradinglib.debug.Debugger
com.strategyquant.tradinglib.OverviewTemplate
Direct Known Subclasses:
ReportGenerator

public abstract class OverviewTemplate extends com.strategyquant.tradinglib.debug.Debugger
The Class OverviewTemplate.
  • Field Details

    • Log

      public static final org.slf4j.Logger Log
      The Constant Log.
  • Constructor Details

    • OverviewTemplate

      public OverviewTemplate()
  • Method Details

    • getName

      public String getName()
      Gets the name.
      Returns:
      the name
    • setName

      public void setName(String name)
      Sets the name.
      Parameters:
      name - the new name
    • getScreenshotName

      public String getScreenshotName()
      Gets the screenshot name.
      Returns:
      the screenshot name
    • setScreenshotName

      public void setScreenshotName(String screenshotName)
      Sets the screenshot name.
      Parameters:
      screenshotName - the new screenshot name
    • getHtmlTemplateName

      public String getHtmlTemplateName()
      Gets the html template name.
      Returns:
      the html template name
    • setHtmlTemplateName

      public void setHtmlTemplateName(String htmlTemplateName)
      Sets the html template name.
      Parameters:
      htmlTemplateName - the new html template name
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object
      Returns:
      the string
    • drawValues

      public abstract String drawValues(ResultsGroup strategyResult, String resultKey, StatsTypeCombination combination) throws Exception
      Draw values.
      Parameters:
      strategyResult - the strategy result
      resultKey - the resultKey
      combination - the combination
      Returns:
      the string
      Throws:
      Exception - the exception
    • loadTemplate

      public void loadTemplate() throws Exception
      Load template.
      Throws:
      Exception - the exception
    • reset

      public void reset()
      Reset template.
    • print

      public String print()
      Print template.
      Returns:
      the string
    • d2WithPlType

      public String d2WithPlType(Double value, byte plType)
      D2 with pl type.
      Parameters:
      value - the value
      plType - the pl type
      Returns:
      the string
    • d2

      public String d2(Double value)
      D2.
      Parameters:
      value - the value
      Returns:
      the string