C# Класс Forex_Strategy_Builder.Strategy

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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