C# Class Forex_Strategy_Builder.Optimizer

The Optimizer
Inheritance: System.Windows.Forms.Form
Show file Open project: nuggett11/Forex-Strategy-Builder Class Usage Examples

Public Methods

Method Description
Optimizer ( ) : System

Constructor

Protected Methods

Method Description
OnLoad ( EventArgs e ) : void

Perform initializing

OnResize ( EventArgs e ) : void

Recalculates the sizes and positions of the controls after resizing.

Private Methods

Method Description
ArangeControls ( ) : void

Arranges the controls

BgWorker_DoWork ( object sender, DoWorkEventArgs e ) : void

Does the job

BgWorker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void

This event handler updates the progress bar.

BgWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void

This event handler deals with the results of the background operation.

BtnOptimize_Click ( object sender, EventArgs e ) : void

Optimize.

BtnShowLimitations_Click ( object sender, EventArgs e ) : void

Toggles panels.

BtnShowParams_Click ( object sender, EventArgs e ) : void

Toggles panels.

CalculateIndicator ( int slot ) : void

Calculates the indicator in the designated slot

CalculateLimitations ( ) : bool

Calculates the Limitations Criteria

ChbOutOfSample_CheckedChanged ( object sender, EventArgs e ) : void

Out of Sample

FillInReport ( ) : void

Fills a line to the report.

InitReport ( ) : void

Prepares the report string.

LoadOptions ( ) : void

Loads and parses the generator's options.

NudOutOfSample_ValueChanged ( object sender, EventArgs e ) : void

Out of Sample

OptimizeParams ( BackgroundWorker worker, DoWorkEventArgs e ) : void

Optimize all the checked parameters

Optimizer_CheckedChanged ( object sender, EventArgs e ) : void

Check Box checked changed

Optimizer_FormClosing ( object sender, FormClosingEventArgs e ) : void

Check whether the strategy have been changed.

PnlCaptions_Paint ( object sender, PaintEventArgs e ) : void

Paints pnlCaptions

PnlParamsBase2_Resize ( object sender, EventArgs e ) : void

Arranges the controls into the pnlParams

PnlParamsBase_Paint ( object sender, PaintEventArgs e ) : void

Paints PnlParamsBase

SaveOptions ( ) : void

Saves the generator's options.

SaveReport ( ) : void

Saves the report in a file.

ScrollBar_MouseWheel ( object sender, MouseEventArgs e ) : void
ScrollBar_ValueChanged ( object sender, EventArgs e ) : void
SetIndicatorParams ( ) : void

Sets the parameters

SetNecessaryCycles ( ) : void

Counts the necessary optimization cycles.

SetPanelLimitations ( ) : void

Sets controls in panel Limitations

SetStrategyToGeneratorHistory ( ) : void

Saves the Generator History

ShowParamBestValue ( int param ) : void

Shows the best value of a param during optimization.

Timer_Tick ( object sender, EventArgs e ) : void

Recovers the font of a parameter value label.

Method Details

OnLoad() protected method

Perform initializing
protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

OnResize() protected method

Recalculates the sizes and positions of the controls after resizing.
protected OnResize ( EventArgs e ) : void
e System.EventArgs
return void

Optimizer() public method

Constructor
public Optimizer ( ) : System
return System