com.optstack.api

SecurityT

trait SecurityT extends ComparisonOperationsT with MathOperationsT

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SecurityT
  2. MathOperationsT
  3. ComparisonOperationsT
  4. ComputationableT
  5. AnyRef
  6. 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

    Multiply

    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 clone(): AnyRef

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

    X crosses above or crosses below D

    X crosses above or crosses below D

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

    X crosses above D

    X crosses above D

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

    X crosses below D

    X crosses below D

    Definition Classes
    ComparisonOperationsT
    Annotations
    @FunctionInfo()
  25. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Definition Classes
    AnyRef → Any
  30. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  31. final def ne(arg0: AnyRef): Boolean

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

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

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

    Annotations
    @FunctionInfo()
  35. 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()
  36. 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()
  37. final def strategies: <error>

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

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

    Definition Classes
    AnyRef
  40. def toString(): String

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. 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 MathOperationsT

Inherited from ComparisonOperationsT

Inherited from ComputationableT

Inherited from AnyRef

Inherited from Any

Ungrouped