C# Class Forex_Strategy_Builder.Scanner

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

Public Methods

Method Description
Scanner ( ) : 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.

OnShown ( EventArgs e ) : void

Loads data and recalculates.

Private Methods

Method Description
AddTickData ( int bar, double bid ) : void

Adds tick data to Data

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.

ChbAutoscan_CheckedChanged ( object sender, EventArgs e ) : void

Autoscan checkbox.

ChbTickScan_CheckedChanged ( object sender, EventArgs e ) : void

Tick scan checkbox.

CheckIntrabarData ( ) : void

Checks the intrabar data.

CheckTickDataFile ( ) : bool

Determines whether a tick data file exists.

ExportTickToCSV ( ) : void

Export tick data to a .CSV file.

LoadData ( BackgroundWorker worker, DoWorkEventArgs e ) : void

Loads the data.

LoadIntrabarData ( DataPeriods period ) : int

Loads the Intrabar data.

LoadTickData ( ) : void

Loads available tick data.

PnlInfo_Paint ( object sender, PaintEventArgs e ) : void

Repaint the panel Info

RepairIntrabarData ( ) : void

Repairs the intrabar data.

Scanner_FormClosing ( object sender, FormClosingEventArgs e ) : void

Stops the background worker.

SetLabelProgressText ( string text ) : void

Sets the lblProgress.Text.

ShowScanningResult ( ) : void

Updates the Generator interface.

StartLoading ( ) : void

Starts intrabar data loading.

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

OnShown() protected method

Loads data and recalculates.
protected OnShown ( EventArgs e ) : void
e System.EventArgs
return void

Scanner() public method

Constructor
public Scanner ( ) : System
return System