C# Class Forex_Strategy_Builder.Data

Base class containing the data.
Mostra file Open project: nuggett11/Forex-Strategy-Builder Class Usage Examples

Public Methods

Method Description
CloseLogFile ( ) : void

Closes the log file.

DataPeriodToString ( DataPeriods dataPeriod ) : string

Converts a data period from DataPeriods type to string.

GenerateMarketStats ( ) : void

Generate the Market Statistics

GetGradientColor ( Color baseColor, int depth ) : Color

Color change

GradientPaint ( Graphics g, RectangleF rect, Color color, int depth ) : void

Paints a rectangle with gradient

IsStrDescriptionRelevant ( ) : bool

It tells if the strategy description is relevant.

Log ( string logLine ) : void

Saves a text line in the log file.

SetStrategyIndicators ( ) : void

Sets the indicator names

Start ( ) : void

Initial settings.

Private Methods

Method Description
Data ( ) : System

The default constructor.

InitMarketStatistic ( ) : void

Initializes the stats names

Method Details

CloseLogFile() public static method

Closes the log file.
public static CloseLogFile ( ) : void
return void

DataPeriodToString() public static method

Converts a data period from DataPeriods type to string.
public static DataPeriodToString ( DataPeriods dataPeriod ) : string
dataPeriod DataPeriods
return string

GenerateMarketStats() public static method

Generate the Market Statistics
public static GenerateMarketStats ( ) : void
return void

GetGradientColor() public static method

Color change
public static GetGradientColor ( Color baseColor, int depth ) : Color
baseColor Color
depth int
return Color

GradientPaint() public static method

Paints a rectangle with gradient
public static GradientPaint ( Graphics g, RectangleF rect, Color color, int depth ) : void
g System.Drawing.Graphics
rect System.Drawing.RectangleF
color Color
depth int
return void

IsStrDescriptionRelevant() public static method

It tells if the strategy description is relevant.
public static IsStrDescriptionRelevant ( ) : bool
return bool

Log() public static method

Saves a text line in the log file.
public static Log ( string logLine ) : void
logLine string
return void

SetStrategyIndicators() public static method

Sets the indicator names
public static SetStrategyIndicators ( ) : void
return void

Start() public static method

Initial settings.
public static Start ( ) : void
return void