com.optstack.api

SecurityT

trait SecurityT extends ComparisonOperationsT with MathOperationsT with ComparatorMathOperationsT

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SecurityT
  2. ComparatorMathOperationsT
  3. MathOperationsT
  4. ComparisonOperationsT
  5. ComputationableT
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def addLastComputationResult(o: QuoteT): Unit

    Definition Classes
    ComputationableT
    Annotations
    @FunctionInfo()
  2. abstract def getLastComputationResult(): QuoteT

    Definition Classes
    ComputationableT
    Annotations
    @FunctionInfo()
  3. abstract def getPriorComputationResult(nPeriodsBack: Int): QuoteT

    Definition Classes
    ComputationableT
    Annotations
    @FunctionInfo()
  4. abstract def getValue(): Double

    Definition Classes
    ComputationableT
    Annotations
    @FunctionInfo()
  5. abstract def instrumentType: InstrumentType

    Annotations
    @FunctionInfo()
  6. abstract def symbol: String

    Annotations
    @FunctionInfo()

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. def !==(d: Any): Boolean

    Is NOT equal To

    Is NOT equal To

    Definition Classes
    ComparisonOperationsT
    Annotations
    @FunctionInfo()
  4. final def ##(): Int

    Definition Classes
    AnyRef → Any
  5. def *(that: Any)(implicit scriptExecContext: <error> = null): StudiesT

    Multiply operation

    Multiply operation

    Definition Classes
    MathOperationsT
    Annotations
    @FunctionInfo()
  6. def +(that: Any)(implicit scriptExecContext: <error> = null): StudiesT

    Add

    Add

    Definition Classes
    MathOperationsT
    Annotations
    @FunctionInfo()
  7. def -(that: Any)(implicit scriptExecContext: <error> = null): StudiesT

    Subtract

    Subtract

    Definition Classes
    MathOperationsT
    Annotations
    @FunctionInfo()
  8. def /(that: Any)(implicit scriptExecContext: <error> = null): StudiesT

    Divide

    Divide

    Definition Classes
    MathOperationsT
    Annotations
    @FunctionInfo()
  9. def <(d: Any): Boolean

    Is less than

    Is less than

    Definition Classes
    ComparisonOperationsT
    Annotations
    @FunctionInfo()
  10. def <=(d: Double): Boolean

    Definition Classes
    ComparisonOperationsT
  11. def <=(d: Any): Boolean

    Is less than or equal to

    Is less than or equal to

    Definition Classes
    ComparisonOperationsT
    Annotations
    @FunctionInfo()
  12. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  14. def ===(d: Any): Boolean

    Is equal To

    Is equal To

    Definition Classes
    ComparisonOperationsT
    Annotations
    @FunctionInfo()
  15. def >(d: Any): Boolean

    Is greater than

    Is greater than

    Definition Classes
    ComparisonOperationsT
    Annotations
    @FunctionInfo()
  16. def >=(d: Double): Boolean

    Definition Classes
    ComparisonOperationsT
  17. def >=(d: Any): Boolean

    Is greater than or equal to

    Is greater than or equal to

    Definition Classes
    ComparisonOperationsT
    Annotations
    @FunctionInfo()
  18. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  19. final def buy(orderID: String, comments: String)(implicit scriptCtx: <error>): StockOnlyT

    Buy the specified instrument.

    Buy the specified instrument. Set the orderID so the position can be referenced later.

    var ndx = this.getSecurity("^NDX")
    ndx.buy(orderID="MyOrder", comments="MyComments").sizeBy.risk(targetRisk=10000)
    
    var order= this.selectPosition(orderID="MyOrder")
    Annotations
    @FunctionInfo()
  20. final def buy()(implicit scriptCtx: <error>): StockOnlyT

    Buy the specified instrument.

    Buy the specified instrument. To set the quantity, use the sizeBy () method

    var ndx = this.getSecurity("^NDX")
    	ndx.buy().sizeBy.risk(targetRisk=10000)
    Annotations
    @FunctionInfo()
  21. def checkWithinRange(d: Double, operationName: String): Boolean

    Definition Classes
    ComparisonOperationsTComputationableT
    Annotations
    @FunctionInfo()
  22. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. def crosses(d: Any): Boolean

    X crosses above or crosses below D

    X crosses above or crosses below D

    Definition Classes
    ComparisonOperationsT
    Annotations
    @FunctionInfo()
  24. def crossesAbove(d: Any): Boolean

    X crosses above D

    X crosses above D

    Definition Classes
    ComparisonOperationsT
    Annotations
    @FunctionInfo()
  25. def crossesBelow(d: Any): Boolean

    X crosses below D

    X crosses below D

    Definition Classes
    ComparisonOperationsT
    Annotations
    @FunctionInfo()
  26. def d: Double

    Definition Classes
    ComparatorMathOperationsT
  27. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  29. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  30. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  31. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  32. def isBetween(d1: Any, d2: Any): Boolean

    Is Between X and Y inclusive

    Is Between X and Y inclusive

    Definition Classes
    ComparisonOperationsT
    Annotations
    @FunctionInfo()
  33. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  34. def isNotBetween(d1: Any, d2: Any): Boolean

    Is NOT Between X and Y inclusive

    Is NOT Between X and Y inclusive

    Definition Classes
    ComparisonOperationsT
    Annotations
    @FunctionInfo()
  35. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  38. final def quote(implicit scriptCtx: <error>): QuoteT

    Annotations
    @FunctionInfo()
  39. final def sell(orderID: String, comments: String)(implicit scriptCtx: <error>): StockOnlyT

    Sell the specified instrument.

    Sell the specified instrument. Sets the orderID so the position can be referenced later

    var ndx = this.getSecurity("^NDX")
    ndx.sell(orderID="MyOrder", comments="MyComments").sizeBy.risk(targetRisk=10000)
    
    var order= this.selectPosition(orderID="MyOrder")
    Annotations
    @FunctionInfo()
  40. final def sell()(implicit scriptCtx: <error>): StockOnlyT

    Sell the specified instrument.

    Sell the specified instrument. To set the quantity, use the sizeBy () method

    var ndx = this.getSecurity("^NDX")
    ndx.sell().sizeBy.risk(targetRisk=10000)
    Annotations
    @FunctionInfo()
  41. final def strategies: <error>

    Annotations
    @FunctionInfo()
  42. final def studies(implicit scriptCtx: <error>): StudiesT

    Annotations
    @FunctionInfo()
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  44. def toString(): String

    Definition Classes
    AnyRef → Any
  45. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def crossesOver(d: Any): Boolean

    X crosses above or below D

    X crosses above or below D

    Definition Classes
    ComparisonOperationsT
    Annotations
    @FunctionInfo() @deprecated
    Deprecated
  2. final def spreadOrders: <error>

    Annotations
    @FunctionInfo() @deprecated
    Deprecated

Inherited from ComparatorMathOperationsT

Inherited from MathOperationsT

Inherited from ComparisonOperationsT

Inherited from ComputationableT

Inherited from AnyRef

Inherited from Any

Ungrouped