Interface IFormula


public interface IFormula
Formula Interface - has methods to call actions over formula.
  • Method Details

    • evaluateFormula

      double evaluateFormula(StrategyBase strategy, String symbol, double price, int direction) throws TradingException
      Evaluate formula.
      Parameters:
      strategy - the strategy
      symbol - the symbol
      price - the price
      direction - the direction
      Returns:
      the double
      Throws:
      TradingException - the trading exception
    • newFormulaInstance

      IFormula newFormulaInstance(StrategyBase strategy, org.jdom2.Element elFormulaBlock) throws BlockDefinitionException
      New formula instance.
      Parameters:
      strategy - the strategy
      elFormulaBlock - the el formula block
      Returns:
      the i formula
      Throws:
      BlockDefinitionException - the block definition exception
    • isNoneValue

      boolean isNoneValue()
      Checks if is none value.
      Returns:
      true, if is none value
    • isBooleanValue

      boolean isBooleanValue()
      Checks if is boolean value.
      Returns:
      true, if is boolean value