C# Class FastQuant.Component.StrategyComponent

Exibir arquivo Open project: fastquant/fastquant.dll Class Usage Examples

Protected Properties

Property Type Description
framework Framework
strategy ComponentStrategy

Public Methods

Method Description
Buy ( double qty ) : void
Buy ( double qty, string text ) : void
BuyLimit ( double qty, double price ) : void
BuyLimit ( double qty, double price, string text ) : void
BuyStop ( double qty, double stopPx ) : void
BuyStop ( double qty, double stopPx, string text ) : void
HasLongPosition ( ) : bool
HasLongPosition ( double qty ) : bool
HasPosition ( ) : bool
HasPosition ( PositionSide side, double qty ) : bool
HasShortPosition ( ) : bool
HasShortPosition ( double qty ) : bool
Log ( DataObject data, Group group ) : void
Log ( DataObject data, int groupId ) : void
Log ( System.DateTime dateTime, double value, Group group ) : void
Log ( System.DateTime dateTime, double value, int groupId ) : void
Log ( System.DateTime dateTime, string text, Group group ) : void
Log ( System.DateTime dateTime, string text, int groupId ) : void
Log ( double value, Group group ) : void
Log ( double value, int groupId ) : void
Log ( string text, Group group ) : void
Log ( string text, int groupId ) : void
OnReminder ( System.DateTime dateTime, object data ) : void
OnStrategyStart ( ) : void
Sell ( double qty ) : void
Sell ( double qty, string text ) : void
SellLimit ( double qty, double price ) : void
SellLimit ( double qty, double price, string text ) : void
SellStop ( double qty, double stopPx ) : void
SellStop ( double qty, double stopPx, string text ) : void
SetStop ( double level, StopType type = StopType.Fixed, StopMode mode = StopMode.Absolute ) : Stop
Signal ( double value ) : void

Method Details

Buy() public method

public Buy ( double qty ) : void
qty double
return void

Buy() public method

public Buy ( double qty, string text ) : void
qty double
text string
return void

BuyLimit() public method

public BuyLimit ( double qty, double price ) : void
qty double
price double
return void

BuyLimit() public method

public BuyLimit ( double qty, double price, string text ) : void
qty double
price double
text string
return void

BuyStop() public method

public BuyStop ( double qty, double stopPx ) : void
qty double
stopPx double
return void

BuyStop() public method

public BuyStop ( double qty, double stopPx, string text ) : void
qty double
stopPx double
text string
return void

HasLongPosition() public method

public HasLongPosition ( ) : bool
return bool

HasLongPosition() public method

public HasLongPosition ( double qty ) : bool
qty double
return bool

HasPosition() public method

public HasPosition ( ) : bool
return bool

HasPosition() public method

public HasPosition ( PositionSide side, double qty ) : bool
side PositionSide
qty double
return bool

HasShortPosition() public method

public HasShortPosition ( ) : bool
return bool

HasShortPosition() public method

public HasShortPosition ( double qty ) : bool
qty double
return bool

Log() public method

public Log ( DataObject data, Group group ) : void
data DataObject
group Group
return void

Log() public method

public Log ( DataObject data, int groupId ) : void
data DataObject
groupId int
return void

Log() public method

public Log ( System.DateTime dateTime, double value, Group group ) : void
dateTime System.DateTime
value double
group Group
return void

Log() public method

public Log ( System.DateTime dateTime, double value, int groupId ) : void
dateTime System.DateTime
value double
groupId int
return void

Log() public method

public Log ( System.DateTime dateTime, string text, Group group ) : void
dateTime System.DateTime
text string
group Group
return void

Log() public method

public Log ( System.DateTime dateTime, string text, int groupId ) : void
dateTime System.DateTime
text string
groupId int
return void

Log() public method

public Log ( double value, Group group ) : void
value double
group Group
return void

Log() public method

public Log ( double value, int groupId ) : void
value double
groupId int
return void

Log() public method

public Log ( string text, Group group ) : void
text string
group Group
return void

Log() public method

public Log ( string text, int groupId ) : void
text string
groupId int
return void

OnReminder() public method

public OnReminder ( System.DateTime dateTime, object data ) : void
dateTime System.DateTime
data object
return void

OnStrategyStart() public method

public OnStrategyStart ( ) : void
return void

Sell() public method

public Sell ( double qty ) : void
qty double
return void

Sell() public method

public Sell ( double qty, string text ) : void
qty double
text string
return void

SellLimit() public method

public SellLimit ( double qty, double price ) : void
qty double
price double
return void

SellLimit() public method

public SellLimit ( double qty, double price, string text ) : void
qty double
price double
text string
return void

SellStop() public method

public SellStop ( double qty, double stopPx ) : void
qty double
stopPx double
return void

SellStop() public method

public SellStop ( double qty, double stopPx, string text ) : void
qty double
stopPx double
text string
return void

SetStop() public method

public SetStop ( double level, StopType type = StopType.Fixed, StopMode mode = StopMode.Absolute ) : Stop
level double
type StopType
mode StopMode
return Stop

Signal() public method

public Signal ( double value ) : void
value double
return void

Property Details

framework protected_oe property

protected Framework framework
return Framework

strategy protected_oe property

protected ComponentStrategy,FastQuant.Component strategy
return ComponentStrategy