C# 클래스 Forex_Strategy_Builder.Strategy

파일 보기 프로젝트 열기: nuggett11/Forex-Strategy-Builder 1 사용 예제들

공개 메소드들

메소드 설명
AddCloseFilter ( ) : int

Adds a new Close Filter to the strategy.

AddOpenFilter ( ) : int

Adds a new Open Filter to the strategy.

AdjustUsePreviousBarValue ( ) : bool

Sets Use prv bar value automaticaly

Clone ( ) : Strategy

Returns a copy of the current strategy.

DuplicateFilter ( int slotToDuplicate ) : void

Duplicates an logic condition.

GenerateBBCode ( ) : string

Saves the strategy in BBCode format.

GenerateHTMLOverview ( ) : string

Generate Overview in HTML code

GenerateNew ( ) : void

Generates a new strategy.

GetDefaultGroup ( int slot ) : string

Gets the default logical group for the designated slot number.

GetSlotType ( int slot ) : SlotTypes

Gets the type of the slot.

Load ( string filename ) : bool

Loads the strategy from a file in XML format.

MoveFilterDownwards ( int slotToMove ) : void

Moves a filter downwards.

MoveFilterUpwards ( int slotToMove ) : void

Moves a filter upwards.

PrepareUsePrevBarValueCheckBox ( SlotTypes slotType ) : bool

Prepare the checkbox

RemoveAllCloseFilters ( ) : void

Removes all close filters from the strategy.

RemoveFilter ( int slotToRemove ) : void

Removes a filter from the strategy.

Save ( string fileName ) : void

Saves the strategy in XML format.

SetFirstBar ( ) : int

Sets the strategy First Bar. It depends on the indicators periods.

SetUsePrevBarValueCheckBox ( int slot ) : bool

Sets the "Use previous bar value" checkbox

Strategy ( ) : System

The default constructor.

Strategy ( int openFilters, int closeFilters ) : System

Sets a new strattegy.

ToString ( ) : string

Represents the strategy in a readable form.

비공개 메소드들

메소드 설명
AdditionalStatsHTMLReport ( ) : StringBuilder

Generates a HTML report about the additional stats

AveragingHTMLReport ( ) : StringBuilder

Generates a HTML report about the averaging logic.

ClosingLogicHTMLReport ( ) : StringBuilder

Generates a HTML report about the closing logic.

CreateStrategy ( int openFilters, int closeFilters ) : void

Creates a strategy

EnvironmentHTMLReport ( ) : StringBuilder

Generates a HTML report about the trading environment.

OpeningLogicHTMLReport ( ) : StringBuilder

Generates a HTML report about the opening logic.

Plural ( string unit, double number ) : string

Appends "s" when plural

StrategyPropertiesHTMLReport ( ) : StringBuilder

Generates a HTML report about the strategy properties.

StrategySlotsHTMLReport ( ) : StringBuilder

Generates a HTML report about the strategy slots

TradingSizeHTMLReport ( ) : StringBuilder

Generates a HTML report about the trading sizes.

TradingStatsHTMLReport ( ) : StringBuilder

Generates a HTML report about the trading stats

메소드 상세

AddCloseFilter() 공개 메소드

Adds a new Close Filter to the strategy.
public AddCloseFilter ( ) : int
리턴 int

AddOpenFilter() 공개 메소드

Adds a new Open Filter to the strategy.
public AddOpenFilter ( ) : int
리턴 int

AdjustUsePreviousBarValue() 공개 메소드

Sets Use prv bar value automaticaly
public AdjustUsePreviousBarValue ( ) : bool
리턴 bool

Clone() 공개 메소드

Returns a copy of the current strategy.
public Clone ( ) : Strategy
리턴 Strategy

DuplicateFilter() 공개 메소드

Duplicates an logic condition.
public DuplicateFilter ( int slotToDuplicate ) : void
slotToDuplicate int
리턴 void

GenerateBBCode() 공개 메소드

Saves the strategy in BBCode format.
public GenerateBBCode ( ) : string
리턴 string

GenerateHTMLOverview() 공개 메소드

Generate Overview in HTML code
public GenerateHTMLOverview ( ) : string
리턴 string

GenerateNew() 공개 정적인 메소드

Generates a new strategy.
public static GenerateNew ( ) : void
리턴 void

GetDefaultGroup() 공개 메소드

Gets the default logical group for the designated slot number.
public GetDefaultGroup ( int slot ) : string
slot int
리턴 string

GetSlotType() 공개 메소드

Gets the type of the slot.
public GetSlotType ( int slot ) : SlotTypes
slot int
리턴 SlotTypes

Load() 공개 정적인 메소드

Loads the strategy from a file in XML format.
public static Load ( string filename ) : bool
filename string
리턴 bool

MoveFilterDownwards() 공개 메소드

Moves a filter downwards.
public MoveFilterDownwards ( int slotToMove ) : void
slotToMove int
리턴 void

MoveFilterUpwards() 공개 메소드

Moves a filter upwards.
public MoveFilterUpwards ( int slotToMove ) : void
slotToMove int
리턴 void

PrepareUsePrevBarValueCheckBox() 공개 메소드

Prepare the checkbox
public PrepareUsePrevBarValueCheckBox ( SlotTypes slotType ) : bool
slotType SlotTypes
리턴 bool

RemoveAllCloseFilters() 공개 메소드

Removes all close filters from the strategy.
public RemoveAllCloseFilters ( ) : void
리턴 void

RemoveFilter() 공개 메소드

Removes a filter from the strategy.
public RemoveFilter ( int slotToRemove ) : void
slotToRemove int
리턴 void

Save() 공개 메소드

Saves the strategy in XML format.
public Save ( string fileName ) : void
fileName string
리턴 void

SetFirstBar() 공개 메소드

Sets the strategy First Bar. It depends on the indicators periods.
public SetFirstBar ( ) : int
리턴 int

SetUsePrevBarValueCheckBox() 공개 메소드

Sets the "Use previous bar value" checkbox
public SetUsePrevBarValueCheckBox ( int slot ) : bool
slot int
리턴 bool

Strategy() 공개 메소드

The default constructor.
public Strategy ( ) : System
리턴 System

Strategy() 공개 메소드

Sets a new strattegy.
public Strategy ( int openFilters, int closeFilters ) : System
openFilters int
closeFilters int
리턴 System

ToString() 공개 메소드

Represents the strategy in a readable form.
public ToString ( ) : string
리턴 string