C# Class FastQuant.Stop

Show file Open project: fastquant/fastquant.dll Class Usage Examples

Protected Properties

Property Type Description
completionTime System.DateTime
connected bool
creationTime System.DateTime
currPrice double
fields ObjectTable
fillMode StopFillMode
fillPrice double
filterBarSize long
filterBarType BarType
initPrice double
instrument Instrument
level double
mode StopMode
position Position
qty double
side PositionSide
status StopStatus
stopPrice double
strategy Strategy
traceOnBar bool
traceOnBarOpen bool
traceOnQuote bool
traceOnTrade bool
trailOnHighLow bool
trailOnOpen bool
trailPrice double
type StopType

Public Methods

Method Description
Cancel ( ) : void
Disconnect ( ) : void
Stop ( Strategy strategy, Position position, System.DateTime time ) : System
Stop ( Strategy strategy, Position position, double level, StopType type, StopMode mode ) : System

Protected Methods

Method Description
GetInstrumentPrice ( ) : double
GetPrice ( double price ) : double
GetStopPrice ( ) : double

Private Methods

Method Description
Connect ( ) : void
OnAsk ( Ask ask ) : void
OnBar ( Bar bar ) : void
OnBarOpen ( Bar bar ) : void
OnBid ( Bid bid ) : void
OnConnect ( System.DateTime dateTime, object obj ) : void
OnStopStatusChange ( StopStatus status ) : void
OnTrade ( Trade trade ) : void
Stop ( Strategy strategy, Position position, System.DateTime time, double level, StopType type = StopType.Trailing, StopMode mode = StopMode.Percent ) : System
method_1 ( ) : void
method_8 ( StopStatus status ) : void
method_9 ( System.DateTime dateTime, object obj ) : void

Method Details

Cancel() public method

public Cancel ( ) : void
return void

Disconnect() public method

public Disconnect ( ) : void
return void

GetInstrumentPrice() protected method

protected GetInstrumentPrice ( ) : double
return double

GetPrice() protected method

protected GetPrice ( double price ) : double
price double
return double

GetStopPrice() protected method

protected GetStopPrice ( ) : double
return double

Stop() public method

public Stop ( Strategy strategy, Position position, System.DateTime time ) : System
strategy Strategy
position Position
time System.DateTime
return System

Stop() public method

public Stop ( Strategy strategy, Position position, double level, StopType type, StopMode mode ) : System
strategy Strategy
position Position
level double
type StopType
mode StopMode
return System

Property Details

completionTime protected property

protected DateTime,System completionTime
return System.DateTime

connected protected property

protected bool connected
return bool

creationTime protected property

protected DateTime,System creationTime
return System.DateTime

currPrice protected property

protected double currPrice
return double

fields protected property

protected ObjectTable,FastQuant fields
return ObjectTable

fillMode protected property

protected StopFillMode fillMode
return StopFillMode

fillPrice protected property

protected double fillPrice
return double

filterBarSize protected property

protected long filterBarSize
return long

filterBarType protected property

protected BarType filterBarType
return BarType

initPrice protected property

protected double initPrice
return double

instrument protected property

protected Instrument instrument
return Instrument

level protected property

protected double level
return double

mode protected property

protected StopMode mode
return StopMode

position protected property

protected Position,FastQuant position
return Position

qty protected property

protected double qty
return double

side protected property

protected PositionSide side
return PositionSide

status protected property

protected StopStatus status
return StopStatus

stopPrice protected property

protected double stopPrice
return double

strategy protected property

protected Strategy strategy
return Strategy

traceOnBar protected property

protected bool traceOnBar
return bool

traceOnBarOpen protected property

protected bool traceOnBarOpen
return bool

traceOnQuote protected property

protected bool traceOnQuote
return bool

traceOnTrade protected property

protected bool traceOnTrade
return bool

trailOnHighLow protected property

protected bool trailOnHighLow
return bool

trailOnOpen protected property

protected bool trailOnOpen
return bool

trailPrice protected property

protected double trailPrice
return double

type protected property

protected StopType type
return StopType